Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqdnV-0003CO-Hm for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Apr 2016 09:42: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 1aqdnV-0005Ok-4l for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Apr 2016 09:42:49 +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 1aqdnU-0005NM-AY for pgsql-bugs@postgresql.org; Thu, 14 Apr 2016 09:42:48 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqdnQ-0001p4-ST for pgsql-bugs@postgresql.org; Thu, 14 Apr 2016 09:42:47 +0000 Received: from msg.df7cb.de (benz.df7cb.de [IPv6:2001:6f8:10ee:e:134::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3qlwh41YGGz3Dyp; Thu, 14 Apr 2016 11:42:44 +0200 (CEST) Date: Thu, 14 Apr 2016 11:42:43 +0200 From: Christoph Berg To: Alvaro Herrera Cc: Daniel Golle , Tom Lane , pgsql-bugs@postgresql.org Subject: Re: BUG #14033: cross-compilation to ARM fails Message-ID: <20160414094243.GC11804@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Alvaro Herrera , Daniel Golle , Tom Lane , pgsql-bugs@postgresql.org References: <20160319165321.GB1744@makrotopia.org> <20160319223826.GA333151@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160319223826.GA333151@alvherre.pgsql> User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.9 (--) 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 Re: Alvaro Herrera 2016-03-19 <20160319223826.GA333151@alvherre.pgsql> > I suppose cross-building is supposed to work, but I'm not surprised if > it actually doesn't; we don't have any cross-test-compile test in our > buildfarm. > > So you first run configure for the host compiler, to build pg_config and > zic, and then run configure again for the target compiler, and there's a > "make distclean" in the middle and you also remove configure's > config.cache. Hmm ... Fwiw, there's a related Debian bug about pg_config: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794103 The problem discussed there is one step down in the dependency chain, namely using pg_config+libpq for compilation of other packages, but the pg_config-cross-compilation problem is probably similar. My idea was to see if pg_config could be rewritten in sh or perl instead so it could run both on the host and the build architecture, but I never got around to actually implementing something. (And there's the obvious problem that pg_config also needs to run on Windows, so sh is probably out, if we'd want to have this included in core. Maybe perl?) Christoph -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs