Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahPWA-00010g-Cg for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Mar 2016 22:38:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ahPW9-0000GW-K8 for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Mar 2016 22:38:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ahPW8-0000GN-2O for pgsql-bugs@postgresql.org; Sat, 19 Mar 2016 22:38:44 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ahPVz-0000NV-Pt for pgsql-bugs@postgresql.org; Sat, 19 Mar 2016 22:38:42 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.37.112.25]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 5248D400BC7; Sat, 19 Mar 2016 15:38:30 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 95B8758B; Sat, 19 Mar 2016 19:38:26 -0300 (CLT) Date: Sat, 19 Mar 2016 19:38:26 -0300 From: Alvaro Herrera To: Daniel Golle Cc: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: BUG #14033: cross-compilation to ARM fails Message-ID: <20160319223826.GA333151@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160319165321.GB1744@makrotopia.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) 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 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