From: Daniel Golle <daniel@makrotopia.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14033: cross-compilation to ARM fails
Date: Mon, 21 Mar 2016 22:38:28 +0100
Message-ID: <20160321213828.GA13681@makrotopia.org> (raw)
In-Reply-To: <22597.1458578361@sss.pgh.pa.us>
References: <20160319223826.GA333151@alvherre.pgsql>
<15650.1458572026@sss.pgh.pa.us>
<20160321155226.GB1831@makrotopia.org>
<22597.1458578361@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Mon, Mar 21, 2016 at 12:39:21PM -0400, Tom Lane wrote:
> Daniel Golle <daniel@makrotopia.org> writes:
> > On Mon, Mar 21, 2016 at 10:53:46AM -0400, Tom Lane wrote:
> >> Specifically, I'd like to see config.log from the second
> >> (cross-compilation) configure run.
>
> > Having a closer look it seems to fail on the first run, see
> > https://github.com/openwrt/packages/blob/master/libs/postgresql/Makefile#L85
> > for the two invocations of configure (build host is x86_64).
>
> Ah, that's something quite different from what we were assuming.
>
> AFAICS, configure is correctly detecting that it can build SSE code on
> that host as long as it uses -msse4.2, and it does show
> CFLAGS_SSE42='-msse4.2' in the "output variables" part of config.log:
>
> ...
> Not only is that missing -msse4.2, but it's missing all of the switches
> that should have been inserted from configure's version of CFLAGS, too.
> So somehow, neither CFLAGS nor CFLAGS_SSE42 are getting propagated from
> configure's decisions to the src/port make run.
>
> (pokes around...) I can replicate that command line if I do this:
>
> make CFLAGS="-I../../libpq"
>
> as that completely overrides the makefile's attempts to set CFLAGS.
> And that's what I see your project script doing, at line 119.
> Don't do that. Quite aside from breaking the intended set of CFLAGS,
> this extra include is completely useless.
In the past we needed to append that include directory for preproc/ecpg
to build stand-alone and neither me nor anyone possibly ever checked if
it was still necessary...
Well, thank you for your help and review of our package build script!
The package now builds when no longer appending the errornous include
path to CFLAGS.
Sorry for bugging you with something actually caused by the packaging.
--
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: daniel@makrotopia.org, tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com
Subject: Re: BUG #14033: cross-compilation to ARM fails
In-Reply-To: <20160321213828.GA13681@makrotopia.org>
References: <20160319223826.GA333151@alvherre.pgsql> <15650.1458572026@sss.pgh.pa.us> <20160321155226.GB1831@makrotopia.org> <22597.1458578361@sss.pgh.pa.us> <20160321213828.GA13681@makrotopia.org>
* 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