From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: 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: Sat, 19 Mar 2016 19:38:26 -0300
Message-ID: <20160319223826.GA333151@alvherre.pgsql> (raw)
In-Reply-To: <20160319165321.GB1744@makrotopia.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Daniel Golle wrote:
> Hi!
>
> On Sat, Mar 19, 2016 at 10:20:35AM -0400, Tom Lane wrote:
> > daniel@makrotopia.org writes:
> > > smmintrin.h is available on x86 targets only. It should be checked by the
> > > configure script and inclusion should be conditional.
> >
> > It is. You'll need to provide more info about exactly how you tried
> > to configure and build.
>
> I'm cross-compiling for ARMv6 using the OpenWrt SDK. I encountered the
> build breakage when trying to move from PostgreSQL 9.4.4 to 9.5.1,
> the build for 9.4.4 works nicely.
We didn't try to use compiler intrinsics in 9.4 -- this is all new in
9.5, so that doesn't tell us anything.
> See
> https://github.com/openwrt/packages/blob/master/libs/postgresql/Makefile
> for more details on configure and make arguments we use.
First thing I notice there is that your mirror list is outdated. You
should use just ftp.postgresql.org now. I think it only works because
ftp-archives.postgresql.org includes one of the hosts used for the CNAME
list.
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 ...
I think the easiest to track this down is to provide a complete build
log. It should not be building src/port/pg_crc32c_sse42.c the second
time around.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
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: alvherre@2ndquadrant.com, daniel@makrotopia.org, tgl@sss.pgh.pa.us
Subject: Re: BUG #14033: cross-compilation to ARM fails
In-Reply-To: <20160319223826.GA333151@alvherre.pgsql>
References: <20160319165321.GB1744@makrotopia.org> <20160319223826.GA333151@alvherre.pgsql>
* 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