From: Richard W.M. Jones <rjones@redhat.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: PostgreSQL cannot be compiled on RISC-V
Date: Sun, 20 Nov 2016 19:54:00 +0000
Message-ID: <20161120195400.GQ11243@redhat.com> (raw)
In-Reply-To: <11046.1479671118@sss.pgh.pa.us>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Sun, Nov 20, 2016 at 02:45:18PM -0500, Tom Lane wrote:
> "Richard W.M. Jones" <rjones@redhat.com> 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
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, tgl@sss.pgh.pa.us
Subject: Re: PostgreSQL cannot be compiled on RISC-V
In-Reply-To: <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> <20161120195400.GQ11243@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