Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8XxW-0006xP-1Z for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Nov 2016 19:39:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c8XxV-0005sV-KR for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Nov 2016 19:39:25 +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 1c8XTk-0003wu-JM for pgsql-bugs@postgresql.org; Sun, 20 Nov 2016 19:08:40 +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 1c8XTb-000128-Jz for pgsql-bugs@postgresql.org; Sun, 20 Nov 2016 19:08:40 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (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 78D9861B9C; Sun, 20 Nov 2016 19:08:29 +0000 (UTC) Received: from localhost (ovpn-204-28.brq.redhat.com [10.40.204.28]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAKJ8SBZ021743; Sun, 20 Nov 2016 14:08:29 -0500 Date: Sun, 20 Nov 2016 19:08:27 +0000 From: "Richard W.M. Jones" To: pierce@hogranch.com Cc: pgsql-bugs@postgresql.org Subject: Re: PostgreSQL cannot be compiled on RISC-V Message-ID: <20161120190827.GA10709@redhat.com> References: <20161119230312.GA8656@redhat.com> <16690.1479611287@sss.pgh.pa.us> <20161120103652.GN11243@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161120103652.GN11243@redhat.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Sun, 20 Nov 2016 19:08:29 +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 (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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs