From: Richard W.M. Jones <rjones@redhat.com>
To: pgsql-bugs@postgresql.org
Subject: PostgreSQL cannot be compiled on RISC-V
Date: Sat, 19 Nov 2016 23:03:12 +0000
Message-ID: <20161119230312.GA8656@redhat.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The full log is here:
https://fedorapeople.org/groups/risc-v/logs/postgresql/9.5.5-1.fc25.0.riscv64/build.log
The extract which fails is:
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DLINUX_OOM_SCORE_ADJ=0 -fpic -I. -I. -I/usr/include/python3.5m -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o plpy_cursorobject.o plpy_cursorobject.c
In file included from ../../../src/include/storage/lwlock.h:18:0,
from ../../../src/include/storage/lock.h:18,
from ../../../src/include/access/genam.h:20,
from ../../../src/include/nodes/execnodes.h:17,
from ../../../src/include/executor/execdesc.h:18,
from ../../../src/include/utils/portal.h:50,
from ../../../src/include/executor/spi.h:18,
from plpy_planobject.h:8,
from plpy_cursorobject.c:18:
../../../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.
#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.
^~~~~
../../../src/include/storage/s_lock.h:962:25: error: unknown type name 'slock_t'
extern int tas(volatile slock_t *lock); /* in port/.../tas.s, or
^~~~~~~
../../../src/include/storage/s_lock.h:972:8: error: unknown type name 'slock_t'
extern slock_t dummy_spinlock;
^~~~~~~
../../../src/include/storage/s_lock.h:977:28: error: unknown type name 'slock_t'
extern int s_lock(volatile slock_t *lock, const char *file, int line);
^~~~~~~
In file included from ../../../src/include/storage/lock.h:18:0,
from ../../../src/include/access/genam.h:20,
from ../../../src/include/nodes/execnodes.h:17,
from ../../../src/include/executor/execdesc.h:18,
from ../../../src/include/utils/portal.h:50,
from ../../../src/include/executor/spi.h:18,
from plpy_planobject.h:8,
from plpy_cursorobject.c:18:
../../../src/include/storage/lwlock.h:50:2: error: unknown type name 'slock_t'
slock_t mutex; /* Protects LWLock and queue of PGPROCs */
^~~~~~~
<builtin>: recipe for target 'plpy_cursorobject.o' failed
make: *** [plpy_cursorobject.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.ZVdDip (%build)
--
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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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
Subject: Re: PostgreSQL cannot be compiled on RISC-V
In-Reply-To: <20161119230312.GA8656@redhat.com>
References: <20161119230312.GA8656@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