From: Richard W.M. Jones <rjones@redhat.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: PostgreSQL cannot be compiled on RISC-V
Date: Sun, 20 Nov 2016 15:09:05 +0000
Message-ID: <20161120150905.GO11243@redhat.com> (raw)
In-Reply-To: <16690.1479611287@sss.pgh.pa.us>
References: <20161119230312.GA8656@redhat.com>
<16690.1479611287@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Sat, Nov 19, 2016 at 10:08:07PM -0500, Tom Lane wrote:
> "Richard W.M. Jones" <rjones@redhat.com> writes:
> > ../../../src/include/storage/s_lock.h:890:2: error: #error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org.
>
> Hi Richard,
>
> What's a RISC-V, and can you provide some gcc assembler implementing
> spinlocks for it? See commentary and code for other platforms in
> src/include/storage/s_lock.h.
That attached patch allows PostgreSQL to compile successfully. I'm
still examining the test failures, but I think they are irrelevant to
this.
Please note that you also need to update config/config.{sub,guess} to
the latest versions from upstream
(https://www.gnu.org/software/gettext/manual/html_node/config_002eguess.html)
since your current versions are too old to understand the riscv{32,64}
architectures.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.htmlAttachments:
0001-Add-support-for-RISC-V.patch (text/plain, 0B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: rjones@redhat.com, tgl@sss.pgh.pa.us
Subject: Re: PostgreSQL cannot be compiled on RISC-V
In-Reply-To: <20161120150905.GO11243@redhat.com>
References: <20161119230312.GA8656@redhat.com> <16690.1479611287@sss.pgh.pa.us> <20161120150905.GO11243@redhat.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox