Re: PostgreSQL cannot be compiled on RISC-V

From: "Richard W(dot)M(dot) Jones" <rjones(at)redhat(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: PostgreSQL cannot be compiled on RISC-V
Date: 2016-11-20 15:09:05
Message-ID: 20161120150905.GO11243@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sat, Nov 19, 2016 at 10:08:07PM -0500, Tom Lane wrote:
> "Richard W.M. Jones" <rjones(at)redhat(dot)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(at)postgresql(dot)org(dot)
>
> 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.html

Attachment Content-Type Size
0001-Add-support-for-RISC-V.patch text/plain 1.4 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Ingbert Jüdt (privat) 2016-11-20 15:40:43 Re: BUG #14425: Installation issues
Previous Message Richard W.M. Jones 2016-11-20 10:36:52 Re: PostgreSQL cannot be compiled on RISC-V