Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8UBE-0006Is-BH for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Nov 2016 15:37:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c8UBD-0004gO-Qt for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Nov 2016 15:37:19 +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 1c8Tk0-0006NR-F9 for pgsql-bugs@postgresql.org; Sun, 20 Nov 2016 15:09:12 +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 1c8Tjw-0005Qk-N1 for pgsql-bugs@postgresql.org; Sun, 20 Nov 2016 15:09:11 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (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 3AFBC13AA1; Sun, 20 Nov 2016 15:09:07 +0000 (UTC) Received: from localhost (ovpn-204-28.brq.redhat.com [10.40.204.28]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAKF96Si012653; Sun, 20 Nov 2016 10:09:06 -0500 Date: Sun, 20 Nov 2016 15:09:05 +0000 From: "Richard W.M. Jones" To: Tom Lane Cc: pgsql-bugs@postgresql.org Subject: Re: PostgreSQL cannot be compiled on RISC-V Message-ID: <20161120150905.GO11243@redhat.com> References: <20161119230312.GA8656@redhat.com> <16690.1479611287@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="EDJsL2R9iCFAt7IV" Content-Disposition: inline In-Reply-To: <16690.1479611287@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Sun, 20 Nov 2016 15:09:07 +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 --EDJsL2R9iCFAt7IV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Nov 19, 2016 at 10:08:07PM -0500, Tom Lane wrote: > "Richard W.M. Jones" 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.html --EDJsL2R9iCFAt7IV Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Add-support-for-RISC-V.patch"