From: Christoph Berg <myon@debian.org>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Daniel Golle <daniel@makrotopia.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14033: cross-compilation to ARM fails
Date: Thu, 14 Apr 2016 11:42:43 +0200
Message-ID: <20160414094243.GC11804@msg.df7cb.de> (raw)
In-Reply-To: <20160319223826.GA333151@alvherre.pgsql>
References: <20160319165321.GB1744@makrotopia.org>
<20160319223826.GA333151@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
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: myon@debian.org, alvherre@2ndquadrant.com, daniel@makrotopia.org, tgl@sss.pgh.pa.us
Subject: Re: BUG #14033: cross-compilation to ARM fails
In-Reply-To: <20160414094243.GC11804@msg.df7cb.de>
References: <20160319165321.GB1744@makrotopia.org> <20160319223826.GA333151@alvherre.pgsql> <20160414094243.GC11804@msg.df7cb.de>
* 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