From mboxrd@z Thu Jan  1 00:00:00 1970
From: Chris Marusich <cmmarusich@gmail.com>
Subject: bug#24841: Cross-building bootstrap binaries fail in current master
Date: Mon, 27 Nov 2017 20:31:07 -0800
Message-ID: <874lpfdnxw.fsf__35711.0808174641$1511843549$gmane$org@garuda.local.i-did-not-set--mail-host-address--so-tickle-me>
References: <7tmvhzxubh.fsf@gmail.com> <87eg3bb04s.fsf@gnu.org>
	<7tvawl7v6e.fsf@gmail.com> <87k2conpsp.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha256; protocol="application/pgp-signature"
Return-path: <bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43148)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1eJXZ0-0001mt-He
	for bug-guix@gnu.org; Mon, 27 Nov 2017 23:32:08 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1eJXYx-0004aH-9s
	for bug-guix@gnu.org; Mon, 27 Nov 2017 23:32:06 -0500
Received: from debbugs.gnu.org ([208.118.235.43]:52895)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
	id 1eJXYx-0004a8-7T
	for bug-guix@gnu.org; Mon, 27 Nov 2017 23:32:03 -0500
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1eJXYw-0006l1-PJ
	for bug-guix@gnu.org; Mon, 27 Nov 2017 23:32:02 -0500
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-Message-ID: <handler.24841.B24841.151184348325926@debbugs.gnu.org>
In-Reply-To: <87k2conpsp.fsf@gnu.org> ("Ludovic
	\=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
	\=\?utf-8\?Q\?s\?\= message of "Mon, 31 Oct 2016 22:59:02 +0100")
List-Id: Bug reports for GNU Guix <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
	<mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-guix/>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
	<mailto:bug-guix-request@gnu.org?subject=subscribe>
Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org
Sender: "bug-Guix" <bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org>
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@gnu.org>
Cc: guix-devel@gnu.org, 24841@debbugs.gnu.org, Carlos =?UTF-8?Q?S=C3=A1nchez?= de La Lama <csanchezdll@gmail.com>

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

ludo@gnu.org (Ludovic Court=C3=A8s) writes:

>> For efraim and for myself,
>>
>> guix build --target=3Dmips64el-linux-gnu bootrap-tarballs
>>
>> got broken with commit
>>
>> b9bc6e842066b066ebdf9eaf75d41753598d75b5
>>

This still fails.  The error I see today, using commit
5aa6e0d04a3f9dea06b9d35f04fa709b31e4b343, is the following:

=2D-8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix build --substitute-urls=3D'https://mirror.hydra.gnu.o=
rg https://hydra.gnu.org' --target=3Dmips64el-linux-gnu bootstrap-tarballs
@ build-started /gnu/store/ybqid1nca0wjf0mvph82hl8f1dav4ann-make-boot0-4.2.=
1.drv - x86_64-linux /var/log/guix/drvs/yb//qid1nca0wjf0mvph82hl8f1dav4ann-=
make-boot0-4.2.1.drv.bz2
starting phase `set-SOURCE-DATE-EPOCH'
phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds
starting phase `set-paths'
environment variable `PATH' set to `/gnu/store/bdbi6mlyci8d98szqhyzwxbb2pd6=
kw9w-gcc-cross-x86_64-linux-5.4.0/bin:/gnu/store/pdl320cy7axlq8ry87jqid7m0s=
gnm56n-binutils-cross-x86_64-linux-2.28/bin'
environment variable `CROSS_LIBRARY_PATH' set to `/gnu/store/jb6xbkm6jchhbp=
9l9nm05qnn3jzlnczl-glibc-bootstrap-0/lib:/gnu/store/inwi6s9x140rv8qhn7z3cpl=
2sj8in4vq-gcc-bootstrap-0/lib:/gnu/store/n47km143d64pbl8r55w741gpplg62jji-g=
libc-cross-x86_64-linux-2.25/lib'
environment variable `CROSS_C_INCLUDE_PATH' set to `/gnu/store/jb6xbkm6jchh=
bp9l9nm05qnn3jzlnczl-glibc-bootstrap-0/include:/gnu/store/inwi6s9
x140rv8qhn7z3cpl2sj8in4vq-gcc-bootstrap-0/include:/gnu/store/n47km143d64pbl=
8r55w741gpplg62jji-glibc-cross-x86_64-linux-2.25/include:/gnu/store/zm415fv=
9i70ablx8lpz2dmh4iyj7l5hy-linux-libre-headers-cross-x86_64-linux-4.4.47/inc=
lude'
environment variable `CROSS_CPLUS_INCLUDE_PATH' set to `/gnu/store/jb6xbkm6=
jchhbp9l9nm05qnn3jzlnczl-glibc-bootstrap-0/include:/gnu/store/inwi6s9x140rv=
8qhn7z3cpl2sj8in4vq-gcc-bootstrap-0/include:/gnu/store/n47km143d64pbl8r55w7=
41gpplg62jji-glibc-cross-x86_64-linux-2.25/include:/gnu/store/zm415fv9i70ab=
lx8lpz2dmh4iyj7l5hy-linux-libre-headers-cross-x86_64-linux-4.4.47/include'
environment variable `CROSS_OBJC_INCLUDE_PATH' set to `/gnu/store/jb6xbkm6j=
chhbp9l9nm05qnn3jzlnczl-glibc-bootstrap-0/include:/gnu/store/inwi6s9x140rv8=
qhn7z3cpl2sj8in4vq-gcc-bootstrap-0/include:/gnu/store/n47km143d64pbl8r55w74=
1gpplg62jji-glibc-cross-x86_64-linux-2.25/include:/gnu/store/zm415fv9i70abl=
x8lpz2dmh4iyj7l5hy-linux-libre-headers-cross-x86_64-linux-4.4.47/include'
environment variable `CROSS_OBJCPLUS_INCLUDE_PATH' set to `/gnu/store/jb6xb=
km6jchhbp9l9nm05qnn3jzlnczl-glibc-bootstrap-0/include:/gnu/store/inwi6s9x14=
0rv8qhn7z3cpl2sj8in4vq-gcc-bootstrap-0/include:/gnu/store/n47km143d64pbl8r5=
5w741gpplg62jji-glibc-cross-x86_64-linux-2.25/include:/gnu/store/zm415fv9i7=
0ablx8lpz2dmh4iyj7l5hy-linux-libre-headers-cross-x86_64-linux-4.4.47/includ=
e'
environment variable `GUIX_LOCPATH' unset
environment variable `CPATH' set to `/gnu/store/bdbi6mlyci8d98szqhyzwxbb2pd=
6kw9w-gcc-cross-x86_64-linux-5.4.0/include'
environment variable `LIBRARY_PATH' set to `/gnu/store/bdbi6mlyci8d98szqhyz=
wxbb2pd6kw9w-gcc-cross-x86_64-linux-5.4.0/lib'
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
builder for `/gnu/store/ybqid1nca0wjf0mvph82hl8f1dav4ann-make-boot0-4.2.1.d=
rv' failed with exit code 1
@ build-failed /gnu/store/ybqid1nca0wjf0mvph82hl8f1dav4ann-make-boot0-4.2.1=
.drv - 1 builder for `/gnu/store/ybqid1nca0wjf0mvph82hl8f1dav4ann-make-boot=
0-4.2.1.drv' failed with exit code 1
cannot build derivation `/gnu/store/bb8hq0px9ij03nmls8a0j2ak248f9lyx-file-b=
oot0-5.30.drv': 1 dependencies couldn't be built
guix build: error: build failed: build of `/gnu/store/bb8hq0px9ij03nmls8a0j=
2ak248f9lyx-file-boot0-5.30.drv' failed
=2D-8<---------------cut here---------------end--------------->8---

>> Probably building with --no-grafts is a suitable work-around, or
>> cross-building expat beforehand (thus I won't need grafting) but I am
>> leaving my store untoched for a while to be able to produce a proper
>> fix.
>
> Yeah, I=E2=80=99d suggest using --no-grafts until this is fixed.

Are you sure this work-around works?  When I add --no-grafts, I get the
following error:

=2D-8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix build --substitute-urls=3D'https://mirror.hydra.gnu.o=
rg https://hydra.gnu.org' --no-grafts --target=3Dmips64el-linux-gnu bootstr=
ap-tarballs
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org=
'... 100.0%
substitute: updating list of substitutes from 'https://hydra.gnu.org'... 10=
0.0%
The following derivations will be built:
   /gnu/store/x9wixafhlhrwaimp5dyf4g3m4b900h9y-bootstrap-tarballs-0.drv
   /gnu/store/hi7magp0zhkrd7fy25vwv2skl2x3j2lv-guile-static-2.2.2.drv
   /gnu/store/yil4gm5maipjf1yb5fw9gy8l2hy975mr-guile-static-stripped-2.2.2.=
drv
   /gnu/store/qb3s4zi7j22s8awrlck1872myivxr1rg-guile-static-stripped-tarbal=
l-2.2.2.drv
237.1 MB will be downloaded:
   /gnu/store/3fkfgpw2px7dshl2rfjbng6ddsyr6k4f-linux-libre-headers-cross-mi=
ps64el-linux-gnu-4.4.47
   /gnu/store/3ymkvl8nmk80w05vv77y45mf4nv4qa1j-gmp-6.1.2
   /gnu/store/pbrwkg2lzscphkyjxzdphr63bqcm20r8-glibc-cross-mips64el-linux-g=
nu-2.25
   /gnu/store/wxyf3y3bsrw77fi6r0505hwlzmanyj26-gcc-cross-mips64el-linux-gnu=
-5.4.0
   /gnu/store/9fnprlh8fwnfyjnmp3n6ybx58mwy8260-readline-7.0
   /gnu/store/4kjvw1mfg8300vgxx97x0vvarjb0yzss-ncurses-6.0
   /gnu/store/bx9qvznmzq39h8gb1zv4c28kdnkbd8ls-pkg-config-mips64el-linux-gn=
u-0.29.2
   /gnu/store/pp3w43w92a8kbnaj87zfc53bwsr7vsz4-binutils-cross-mips64el-linu=
x-gnu-2.28
   /gnu/store/bymc1f0i3wkhhwwf20ffp6i1gmxq892a-libltdl-2.4.6
   /gnu/store/smfrwm4qfj77l6ynq9d7awyjjqwas648-guile-static-2.2.2
   /gnu/store/h3nyn8p99b9m9y353prn497zpvw4z2jr-gcc-cross-mips64el-linux-gnu=
-5.4.0
   /gnu/store/5mr2hikzw7bp7h1q4xabqbjqqx558hn5-glibc-cross-mips64el-linux-g=
nu-2.25
   /gnu/store/04kqafjrc2raiq7dzdkbpm31i5awrmqw-libffi-3.2.1
   /gnu/store/31pi2pm80mm2w03hy3cbg7xc6adqjsvm-libgc-7.6.0
   /gnu/store/mzcz5clxs7kiqrz7570wvj8gd6zj4wc9-bash-minimal-4.4.12
   /gnu/store/n2ha7xz4690mm7n5zjr8fg46va56ny9f-libunistring-0.9.7
   /gnu/store/l5wwzf579w7p2xgvymqxrwjcg6h9r4jr-linux-libre-headers-cross-mi=
ps64el-linux-gnu-4.4.47
   /gnu/store/jinmblfjidfxlgdljpnx9dgbb0pwc6gf-binutils-static-stripped-tar=
ball-2.28
   /gnu/store/hrn7px45c3frag4djmqf3ykknybwcrjz-linux-libre-headers-4.4.47
   /gnu/store/35ik0amrcfjg3fql64v3ylr1yyqj9d63-gcc-stripped-tarball-5.4.0
   /gnu/store/wvyqv1jazydcglfnqq8v7nxjwn8cf1f1-glibc-stripped-tarball-2.25
   /gnu/store/ip0k6kiams7sj4l2q6zlv3ih6mjf539s-static-binaries-tarball-0
   /gnu/store/5sdf53qnqwdsvnvk6vg01yiz9wxjx082-glibc-cross-mips64el-linux-g=
nu-2.25
   /gnu/store/0qsh7cxkmpbdmmc48ks6ba4i3c28gncx-gcc-cross-sans-libc-mips64el=
-linux-gnu-5.4.0
   /gnu/store/xnj1538h60rh679v05847g0bkwlj8x9a-ld-wrapper-mips64el-linux-gn=
u-0
   /gnu/store/kqic8p5d41k2m9a2la5ljx8h7f8rgd4z-libffi-3.2.1
   /gnu/store/2ks7gskdfc3yk493kga79z0ik2kvw3n5-libatomic-ops-7.4.4
@ substituter-started /gnu/store/jinmblfjidfxlgdljpnx9dgbb0pwc6gf-binutils-=
static-stripped-tarball-2.28 /gnu/store/d0xkr3d3zyqrnsh31vp0qdavp3anh6ml-gu=
ix-0.13.0-10.0b4c385/libexec/guix/substitute
...
@ build-started /gnu/store/hi7magp0zhkrd7fy25vwv2skl2x3j2lv-guile-static-2.=
2.2.drv - x86_64-linux /var/log/guix/drvs/hi//7magp0zhkrd7fy25vwv2skl2x3j2l=
v-guile-static-2.2.2.drv.bz2
...
wrote `web/http.go'
  GUILEC web/uri.go
wrote `web/server/http.go'
  GUILEC language/elisp/boot.go
Backtrace:
In srfi/srfi-1.scm:
    640:9 19 (for-each #<procedure cc8a00 at scripts/compile.scm:24?> ?)
In scripts/compile.scm:
   251:26 18 (_ _)
In system/base/target.scm:
     57:6 17 (with-target _ _)
In system/base/compile.scm:
   139:28 16 (compile-file "language/elisp/boot.el" #:output-file _ # ?)
In system/base/language.scm:
   110:30 15 (default-environment _)
    62:11 14 (lookup-language elisp)
In ice-9/boot-9.scm:
  2718:10 13 (_ (language elisp spec) _ _ #:ensure _)
  2986:16 12 (try-module-autoload _ _)
   2316:4 11 (save-module-excursion _)
  3006:22 10 (_)
In unknown file:
           9 (primitive-load-path "language/elisp/spec" #<procedure ?>)
In system/base/compile.scm:
    165:4  8 (compile-and-load _ #:from _ #:to _ #:env _ #:opts _ # _)
   235:18  7 (read-and-compile #<input: language/elisp/boot.el 13> # ?)
   183:32  6 (compile-fold (#<procedure compile-tree-il (expr env ?>) ?)
In language/elisp/compile-tree-il.scm:
    805:5  5 (compile-tree-il (defmacro @ (module symbol) (#{`}# ?)) ?)
   705:11  4 (_ _ _)
In system/base/compile.scm:
    255:6  3 (compile _ #:from _ #:to _ #:env _ #:opts _)
   183:32  2 (compile-fold _ #<tree-il (seq (call (@ (language elis?> ?)
In language/bytecode/spec.scm:
    28:15  1 (bytecode->value #vu8(127 69 76 70 1 1 1 255 0 0 0 0 ?) ?)
In unknown file:
           0 (load-thunk-from-memory #vu8(127 69 76 70 1 1 1 255 0 ?))

ERROR: In procedure load-thunk-from-memory:
ERROR: In procedure load-thunk-from-memory: No such file or directory
make[2]: *** [Makefile:2266: language/elisp/boot.go] Error 1
make[2]: *** Waiting for unfinished jobs....
wrote `web/uri.go'
make[2]: Leaving directory '/tmp/guix-build-guile-static-2.2.2.drv-0/guile-=
2.2.2/module'
make[1]: *** [Makefile:1857: all-recursive] Error 1
make[1]: Leaving directory '/tmp/guix-build-guile-static-2.2.2.drv-0/guile-=
2.2.2'
make: *** [Makefile:1743: all] Error 2
phase `build' failed after 732.1 seconds
builder for `/gnu/store/hi7magp0zhkrd7fy25vwv2skl2x3j2lv-guile-static-2.2.2=
.drv' failed with exit code 1
@ build-failed /gnu/store/hi7magp0zhkrd7fy25vwv2skl2x3j2lv-guile-static-2.2=
.2.drv - 1 builder for `/gnu/store/hi7magp0zhkrd7fy25vwv2skl2x3j2lv-guile-s=
tatic-2.2.2.drv' failed with exit code 1
cannot build derivation `/gnu/store/yil4gm5maipjf1yb5fw9gy8l2hy975mr-guile-=
static-stripped-2.2.2.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/qb3s4zi7j22s8awrlck1872myivxr1rg-guile-=
static-stripped-tarball-2.2.2.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/x9wixafhlhrwaimp5dyf4g3m4b900h9y-bootst=
rap-tarballs-0.drv': 1 dependencies couldn't be built
guix build: error: build failed: build of `/gnu/store/x9wixafhlhrwaimp5dyf4=
g3m4b900h9y-bootstrap-tarballs-0.drv' failed

=2D-8<---------------cut here---------------end--------------->8---

Does the --no-grafts workaround actually work?

Or, is it that the work-around works, but for some other reason
guile-static-2.2.2 fails to cross-build on an x86_64-linux Guix system
for the mips64el-linux-gnu target?

=2D-=20
Chris

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAloc5owACgkQ3UCaFdgi
Rp1WFxAAgAfYTT8AGsw2sKmYz1LW6+ZSFOEbmGe6bZYqzqMXyt11iw5faJECLTpY
q5SqTgnVb8TKTN71jBOU8ONqbjK1Wn2WVZFymtOWK8tkE8YDCEnOl4njpG1b7Xp4
C1k2n3GJOSQd8ghk+Nc+eBaQSilOXgosbWkahIxgtwjtRcAJyIAfT670KnImIv28
67vo2lkkPsMtZglGFA7Vg7SpSk2S47gaAbdaFAf+OVaF2qaSBAQC5ktYZ0nlQSyh
aPzjapPZ2LVJ6UqZ9UHPf+qnpLW2ZLHtdjyb1gN0oYLRF+dLm3VsagCRTyNduviu
0DY/d84YyZ3qaFxXaDxXdYbfldDCkzEhoATlMBqvqXuc+rKpMVcVXLi1e1uynRU6
jZxt12vwjdLgfQRcg63m3ubRmOUEUOfC9IUP2w/OF1mm2Vnywk2Wz6r3B9fPRziE
1J5OqOz5z8KPUqaJRU6Kk31M+nKTbbLxVAlAzHDQKpVbOBkOVMBysAhfy4ZY6H3c
YW4Eq6jNmmXZdMdCAdabdpIJnxMdAabOmu8zlXh8Ag4UtkAVkbiEcpbJTc90W+32
hrSI3WqKOxBqXCryTN8ZzzR0ZVxZZoKt2v6H9f7gjSjMABMjW564pK3oAM/vbTyE
nkFAUbXbD1PhlMpnabtP2QYdvOBDQYUb8pjnwMPYLYGONWnL9l8=
=kbFN
-----END PGP SIGNATURE-----
--=-=-=--