Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8Hz1-00025T-O0 for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Nov 2016 02:35:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c8Hz0-0004un-EP for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Nov 2016 02:35:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c8EfG-00067L-Lb for pgsql-bugs@postgresql.org; Sat, 19 Nov 2016 23:03:18 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c8EfD-0005M9-Kz for pgsql-bugs@postgresql.org; Sat, 19 Nov 2016 23:03:17 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CCA3FC0567A1 for ; Sat, 19 Nov 2016 23:03:13 +0000 (UTC) Received: from localhost (ovpn-204-28.brq.redhat.com [10.40.204.28]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAJN3CTw007472 for ; Sat, 19 Nov 2016 18:03:13 -0500 Date: Sat, 19 Nov 2016 23:03:12 +0000 From: "Richard W.M. Jones" To: pgsql-bugs@postgresql.org Subject: PostgreSQL cannot be compiled on RISC-V Message-ID: <20161119230312.GA8656@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Sat, 19 Nov 2016 23:03:13 +0000 (UTC) X-Pg-Spam-Score: -9.8 (---------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 */ ^~~~~~~ : 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