Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8Yq5-0000mw-FL for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Nov 2016 20:35:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c8Yq4-0002ID-BB for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Nov 2016 20:35:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c8YBm-0000G3-92 for pgsql-bugs@postgresql.org; Sun, 20 Nov 2016 19:54:10 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c8YBh-0001on-Tu for pgsql-bugs@postgresql.org; Sun, 20 Nov 2016 19:54:09 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (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 7C24F7F7A4; Sun, 20 Nov 2016 19:54:02 +0000 (UTC) Received: from localhost (ovpn-204-28.brq.redhat.com [10.40.204.28]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAKJs1oW012769; Sun, 20 Nov 2016 14:54:02 -0500 Date: Sun, 20 Nov 2016 19:54:00 +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: <20161120195400.GQ11243@redhat.com> References: <20161119230312.GA8656@redhat.com> <16690.1479611287@sss.pgh.pa.us> <20161120150905.GO11243@redhat.com> <20161120173322.GA10475@redhat.com> <21733.1479664971@sss.pgh.pa.us> <20161120184942.GP11243@redhat.com> <11046.1479671118@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11046.1479671118@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Sun, 20 Nov 2016 19:54:02 +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 On Sun, Nov 20, 2016 at 02:45:18PM -0500, Tom Lane wrote: > "Richard W.M. Jones" writes: > > On Sun, Nov 20, 2016 at 01:02:51PM -0500, Tom Lane wrote: > >> Hmm, makes me wonder if the spinlock primitives actually work ... > > > Yes, my thought too. > > > With MAX_CONNECTIONS=1 only 5 tests fail, and reliably too: > > opr_sanity ... FAILED > > test errors ... FAILED > > psql_crosstab ... FAILED > > select_views ... FAILED > > largeobject ... FAILED (test process exited with exit code 2) > > That's a smoking gun then. Your GCC builtins don't work. Interesting .. I will look at this further. In any case it's a problem to be fixed in GCC. > >> Assuming that you've got working core dump support and gdb, > >> getting stack traces from some of the crashes would be useful info. > > > Agreed. Unfortunately there's no gdb yet, and as above no core dumps > > in any case. > > Hm. You could look at the regression.diffs file to get more info > about what's happening. But TBH, if you don't have GDB working > yet, it doesn't seem like making Postgres work is a higher priority > problem than that. > > Once you've got GDB working, I'd be willing to help investigate, > if you can give me ssh access to a RISC-V box with a devel > environment installed. Before that, it seems like a pretty > back-burner problem. No network => no ssh :-( However if you really want to pursue this then we provide a qemu emulator which can run Fedora/RISC-V: https://fedoraproject.org/wiki/Architectures/RISC-V/Disk_images Unfortunately (also because of the lack of networking) you either have to download the whole set of RPMs (27GB [sic]) or resolve RPM dependencies by hand, so it's not especially practical at the moment. We are hoping to have ASICs next year. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs