From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#28243: Guix cross-compilation doesn't work Date: Tue, 29 Aug 2017 01:15:33 +0200 Message-ID: <871snvthbe.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmTGG-0000km-73 for bug-guix@gnu.org; Mon, 28 Aug 2017 19:16:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmTGE-0004mr-PD for bug-guix@gnu.org; Mon, 28 Aug 2017 19:16:04 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51142) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmTGE-0004mn-LA for bug-guix@gnu.org; Mon, 28 Aug 2017 19:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dmTGE-00077C-Ed for bug-guix@gnu.org; Mon, 28 Aug 2017 19:16:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Manolis Ragkousis's message of "Sat, 26 Aug 2017 18:58:31 +0300") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Manolis Ragkousis Cc: 28243@debbugs.gnu.org Hi Manolis, Manolis Ragkousis skribis: > In current master (72e2815d18ad688b0a16ce3b3efba1172423cec4) > cross-compilation doesn't work. I think that=E2=80=99s an overstatement. :-) --8<---------------cut here---------------start------------->8--- ludo@ribbon ~/src/guix$ git describe v0.13.0-2618-g7f090203d ludo@ribbon ~/src/guix$ ./pre-inst-env guix build --target=3Dpowerpc-linux-= gnu coreutils -n substitute: updating list of substitutes from 'https://bayfront.guixsd.org'= ... 100.0% substitute: updating list of substitutes from 'https://berlin.guixsd.org'..= . 100.0% substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org= '... 100.0% 107.3 MB would be downloaded: /gnu/store/pz3hpnyhx81k8sqxfrng632qfir5l5xd-coreutils-8.27-debug /gnu/store/dq4hvwqianbhjm2s4prpmcjlw956wlh2-coreutils-8.27 /gnu/store/6dnnh0037rcam3qhz6ign3wi2wygcfpq-gcc-cross-powerpc-linux-gnu-= 5.4.0 /gnu/store/czxzd2xcgjq40v9q02r0138716zwwj9c-acl-2.2.52 /gnu/store/fc9qv46jrw3fr5bp9ll4rdhp4rl6963l-linux-libre-headers-cross-po= werpc-linux-gnu-4.4.47 /gnu/store/pgj7r7pcf1d051ccikl5bcpjq6dljkbw-glibc-cross-powerpc-linux-gn= u-2.25 /gnu/store/ssmm19p3bz215d604zkpkr4f3indjmds-gcc-cross-sans-libc-powerpc-= linux-gnu-5.4.0 /gnu/store/xw4hp3znb926c576gd4ppqqmfc3s8a8i-gmp-6.1.2 ludo@ribbon ~/src/guix$ ./pre-inst-env guix build --target=3Darm-linux-gnue= abihf coreutils -n substitute: updating list of substitutes from 'https://bayfront.guixsd.org'= ... 100.0% substitute: updating list of substitutes from 'https://berlin.guixsd.org'..= . 100.0% substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org= '... 100.0% 101.7 MB would be downloaded: /gnu/store/4qx8vxizyjgvfivax12snz5ya3k91apd-coreutils-8.27-debug /gnu/store/xk249y3917689zm2sgdlpi25xc54nfq6-coreutils-8.27 /gnu/store/dbzs50qvfnrddshr0nlxddk0cxd3rlh0-acl-2.2.52 /gnu/store/j2nrcggkcxfbggd56bd4nzpaljr87mwv-gcc-cross-arm-linux-gnueabih= f-5.4.0 /gnu/store/lxs1nmi1a5kp7lz3hk8y2152ipwwpnva-gmp-6.1.2 /gnu/store/wb4kd860x4ql181n073hzswcqb7l8qha-gcc-cross-sans-libc-arm-linu= x-gnueabihf-5.4.0 /gnu/store/z74c0dfgy7vpi0lg9axaz7x40sv9yk9r-glibc-cross-arm-linux-gnueab= ihf-2.25 $ ./pre-inst-env guix build --target=3Di586-pc-gnu coreutils -n substitute: updating list of substitutes from 'https://bayfront.guixsd.org'= ... 100.0% substitute: updating list of substitutes from 'https://berlin.guixsd.org'..= . 100.0% substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org= '... 100.0% 109.0 MB would be downloaded: /gnu/store/a719clcz6y9600yjz6kr1smqfk7m9zpj-coreutils-8.27-debug /gnu/store/0yjqfa6j3b5a6nddqf0s1q0182sc9xsk-coreutils-8.27 /gnu/store/4x6yybq64fbp0p08dph4sh0pmx60na6z-gcc-cross-sans-libc-i586-pc-= gnu-5.4.0 /gnu/store/5pzranj6vlc1g1gxcfhasvggz0fczsra-gnumach-headers-cross-i586-p= c-gnu-1.8 /gnu/store/5shv1d962kxs8sfrnasmcvx6yi8j1wkc-gcc-cross-i586-pc-gnu-5.4.0 /gnu/store/jphd29k0ya151v92qri9awmqy2y5gjdm-hurd-headers-cross-i586-pc-g= nu-0.9 /gnu/store/kgbg5gf7ly6fyk57spxbvrzj31kcvv2g-acl-2.2.52 /gnu/store/mrpfw505k12c4dp7dik8kf4dgcv0m9g4-gmp-6.1.2 /gnu/store/p04d6sjgy6pivplvr5avsnxkjwwj9q2v-glibc-cross-i586-pc-gnu-2.23 --8<---------------cut here---------------end--------------->8--- However=E2=80=A6 > Running `guix build --target=3Di586-pc-gnu -c8 bootstrap-tarballs' or > running `guix build --target=3Di686-linux-gnu -c8 bootstrap-tarballs' > fail with > > phase `set-paths' succeeded after 0.0 seconds > starting phase `install-locale' > warning: failed to install 'en_US.utf8' locale: Invalid argument > phase `install-locale' succeeded after 0.0 seconds > starting phase `unpack' > In execvp of tar: No such file or directory > phase `unpack' failed after 0.0 seconds > > http://paste.lisp.org/display/354383 ^ followed by: builder for `/gnu/store/x3i6zasfc97zrwr4c9lj73mh14x5rdwd-make-boot0-4.2.1.d= rv' failed with exit code 1 This to me suggests a bug in how grafts are applied in a cross-compilation context: we shouldn=E2=80=99t be trying to cross-compile =E2=80=98make-boot0=E2=80=99 in the first place. I=E2=80=99m pretty sure p= assing --no-grafts avoids the problem (but remember it disables some of the security updates!). Can you confirm? (This was reported before, but apparently not on bug-guix.) > The problem appeared both in master and core-updates before today's > merge. I think the last time I checked if cross-compilation works, must > have been in early July. I am looking for the last working commit. That can be useful too. Thanks for the report, Ludo=E2=80=99.