From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Cross-compiling bootstrap tarballs fails on core-updates Date: Mon, 16 Apr 2018 19:15:16 +0200 Message-ID: <871sffdqe3.fsf@fastmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f87it-0004nX-Ea for guix-devel@gnu.org; Mon, 16 Apr 2018 13:15:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f87iq-0007kW-7e for guix-devel@gnu.org; Mon, 16 Apr 2018 13:15:23 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:58285) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f87iq-0007k1-1y for guix-devel@gnu.org; Mon, 16 Apr 2018 13:15:20 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 74EB220D93 for ; Mon, 16 Apr 2018 13:15:19 -0400 (EDT) Received: from localhost (ti0089a400-2222.bb.online.no [88.89.166.190]) by mail.messagingengine.com (Postfix) with ESMTPA id E159210266 for ; Mon, 16 Apr 2018 13:15:18 -0400 (EDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello! Building 'bootstrap-tarballs' for other architectures fails on core-updates. Here is the comparison to the previous core-updates evaluation in December: https://hydra.gnu.org/eval/109945?compare=3D109875#tabs-now-fail There seems to be a couple of different problems here. 'patch' fails to build due to a conflicting declaration of '__mktime_internal': =2D-8<---------------cut here---------------start------------->8--- CCLD patch /gnu/store/9v09kidvqykyk2kh26q297di3lkjc8vy-glibc-cross-arm-linux-gnueabihf= -2.27-static/lib/libc.a(mktime.o): In function `__mktime_internal': /tmp/guix-build-glibc-cross-arm-linux-gnueabihf-2.27.drv-0/glibc-2.27/time/= mktime.c:353: multiple definition of `__mktime_internal' ../lib/libpatch.a(mktime.o):/tmp/guix-build-patch-2.7.6.drv-0/patch-2.7.6/l= ib/mktime.c:317: first defined here collect2: error: ld returned 1 exit status make[2]: *** [Makefile:1230: patch] Error 1 =2D-8<---------------cut here---------------end--------------->8--- Note that there is a warning about __mktime_internal earlier: =2D-8<---------------cut here---------------start------------->8--- In file included from timegm.c:20:0:=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 timegm.c: In function 'rpl_timegm':=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 ../config.h:1974:25: warning: implicit declaration of function '__mktime_in= ternal' [-Wimplicit-function-declaration] #define mktime_internal __mktime_internal timegm.c:30:28: note: in expansion of macro 'mktime_internal' # define __mktime_internal mktime_internal timegm.c:39:10: note: in expansion of macro '__mktime_internal' return __mktime_internal (tmp, __gmtime_r, &gmtime_offset); =2D-8<---------------cut here---------------end--------------->8--- Then we have 'ncurses' failing in the install phase with: =2D-8<---------------cut here---------------start------------->8--- make[1]: Entering directory '/tmp/guix-build-ncurses-6.1.drv-0/ncurses-6.1/= progs' mkdir -p /gnu/store/553j76738bh6bcr31vsyri0wpxir2wkw-ncurses-6.1/bin /gnu/store/63gkgnixg6xj3m9cgl25ib2zxl51ngw0-coreutils-8.29/bin/install -c -= s tic /gnu/store/553j76738bh6bcr31vsyri0wpxir2wkw-ncurses-6.1/bin/`echo= tic| sed 's/$//'|sed 's,x,x,'|sed 's/$//'` strip: Unable to recognise the format of the input file `/gnu/store/553j767= 38bh6bcr31vsyri0wpxir2wkw-ncurses-6.1/bin/tic' /gnu/store/63gkgnixg6xj3m9cgl25ib2zxl51ngw0-coreutils-8.29/bin/install: str= ip process terminated abnormally make[1]: *** [Makefile:201: install.progs] Error 1 =2D-8<---------------cut here---------------end--------------->8--- The error message here is odd: /gnu/store/.../bin/tic is not installed yet at this point. The built binary looks fine however. Quoth `file`: /dev/shm/guix-build-ncurses-6.1.drv-0/ncurses-6.1/progs/tic: ELF 32-bit LSB= executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /gnu/store/jiw5wrjvcipfxn= pl56572x4bf6gdvypf-glibc-cross-arm-linux-gnueabihf-2.27/lib/ld-linux-armhf.= so.3, for GNU/Linux 2.6.32, with debug_info, not stripped I'm not sure why these failures happen only when cross-compiling. The respective native builds are okay. Thoughts? For those following along at home, you can reproduce these failures by checking out the core-updates branch, and then run: ./pre-inst-env guix build --target=3Darm-linux-gnueabihf bootstrap-tarballs (or any other target triplet, they fail in the same way) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlrU2iUACgkQoqBt8qM6 VPoEKAf9FgY2qO+hVEqqXOmI3KacDwPofRc5bvbJ7VIyoH4/7H9tCoZ17LTwK1/k UQApXB2dtkZsCyBpsFj5Oi37UvATQudoNwsTNpCR0wZqlSy41BDByUyRFcD2PNW4 UlZ3SgjWIq+Uk203AuZJy6ZnVHruAujVYpYpMQk1oNpven1TgMMdiwtnRnhqHce6 IMShOhaT00/3HYCPHTlEfbWXzSo2ViTfZ+/+W81lajEdUWt5afFQw6OhfEu6nnCm 4+PUGeb/HDrk73aNwRF17sgj3LvA8TOMiGGHXCfv3uPSrYfKiCWfD/fNpFkNFjEl nCgzTLIDFgFW8ATCsVwa9iAvF6Luxg== =wYSf -----END PGP SIGNATURE----- --=-=-=--