Re: PostgreSQL cannot be compiled on RISC-V

From: "Richard W(dot)M(dot) Jones" <rjones(at)redhat(dot)com>
To: pierce(at)hogranch(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: PostgreSQL cannot be compiled on RISC-V
Date: 2016-11-20 19:08:27
Message-ID: 20161120190827.GA10709@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

(Sorry about the threading and quoting, I am not subscribed to this list)

> > This is*probably* because our kernel lacks networking support, but
> > I didn't look at this in great detail yet.
>
> wait, what?? postgres can't function at all without basic networking
> support, including at least named pipes and tcp over localhost.

What I said wasn't very precise. The emulators and hardware that we
use for RISC-V lack any external networking. As you can probably
imagine, this makes them very frustrating to use.

In addition, there are bugs in the kernel network stack on RISC-V
which seem to cause problems with localhost connections and Unix
domain sockets in some circumstances. These particularly cause test
failures in our autobuilder when the tests (of any package, not just
PostgreSQL) use the network. I have looked into this, but so far not
been able to narrow it down or make a simple reproducer. It could be
a syscall ABI problem.

The Linux kernel we are using does have networking enabled. If you
are interested in this more, then you can see our CONFIG_* settings
here:

https://github.com/rwmjones/fedora-riscv-kernel

I hope that clears things up.

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Greg Stark 2016-11-20 19:09:40 Re: PostgreSQL cannot be compiled on RISC-V
Previous Message John R Pierce 2016-11-20 18:56:41 Re: PostgreSQL cannot be compiled on RISC-V