Subject: bug#45165: binutils-mesboot0 fails at configure, cannot find lex

From: Carl Dong <[email-masked]>
Date: Thu, 10 Dec 2020 15:01:00 -0500

Hi all,

I’m pulling from quite an old version of Guix here, and binutils-mesboot0 seems to fail at configure. Here’s the tail of the log:

-----

checking lex output file root... @ build-log 1955508 104
./configure: line 4505: lex: command not found
configure: error: cannot find output from lex; giving up
@ build-log 1955508 33
make: *** [configure-ld] Error 1
@ build-log 1955508 36
command "make" failed with status 2
builder for `/gnu/store/plgzgmklaslp8dg5mamnda9wr6zch4gz-binutils-mesboot0-2.14.drv' failed with exit code 1
@ build-failed /gnu/store/plgzgmklaslp8dg5mamnda9wr6zch4gz-binutils-mesboot0-2.14.drv - 1 builder for `/gnu/store/plgzgmklaslp8dg5mamnda9wr6zch4gz-binutils-mesboot0-2.14.drv' failed with exit code 1
cannot build derivation `/gnu/store/04s4qih73dwvpzpvxs299wcg9dam8f0y-bash-mesboot-4.4.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/pdy7jkg1wj76a9f6cbykx7afmg1abd0x-binutils-mesboot1-2.14.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/jgfnwg3j8yz0bhd5kjbsjig47wzqh3c7-coreutils-mesboot0-5.0.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/3947s3bz23f9mn730xkakfifiylkkrrn-gawk-mesboot-3.1.8.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/l7ly0ncga5v6l234bf7ghjdbja3wv8vz-gcc-mesboot0-2.95.3.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/3cizhfk4vni8rs2bayqdp89mkhya4ifx-glibc-mesboot0-2.2.5.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/2k7axk4b6x6312gla49phc4mg0nf0r76-grep-mesboot-2.0.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/gs0qfn92iw5s5pmn84nwbjr6bcmy51vi-make-mesboot-3.82.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/s2qiyyiia81nkb5dd2k0a37xzrbrs1yv-sed-mesboot-4.0.6.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/g7b6giy5lgqc5jwrjn4har77qhxfpd8b-tar-mesboot-1.22.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/84aj95pxsxshh6kpcl0s1w6l9cfjfzj9-bash-minimal-5.0.16.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/95w8r81sn34fl2d64c8rkp76v9d9zai5-binutils-2.34.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/axivv7qsbckqv2yyqmgkvps5wv9zmpm7-bzip2-1.0.8.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/9gd8mfg44r39wca5s7cm44ykwcym1kb3-coreutils-8.32.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/pnja3bqzzkml1pwnmg8xal4dqrpzhrvd-diffutils-3.7.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/kr17fb10wfdp95ws0ldbl1pprx7fyy8h-file-5.38.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/70gapv7ssbkcww91rw5y958bfgp44gw9-findutils-4.7.0.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/wkrgrjfkpqdzdvv81nbra7bvskfl9i57-gawk-5.0.1.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/3d4xggdls9cmvr5j2qd57p6z1pavd7pg-gcc-7.5.0.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/0j6gi10v9hz2s2413nhwbzihrydafgvj-glibc-2.31.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/31c3393sbak5vplnjcqjggssjap4pswa-gmp-6.2.0.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/55m53jfhazxzkhrlm9razvw1r0mzxah0-grep-3.4.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/jaipnrrbphwy9ikzd9b2fd2bxg9z1sf7-guile-3.0.2.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/jicfpg84bxqdrmmapcybz7dzcx7d3sdb-gzip-1.10.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/qfb37lardni78naczldb1ia33n9ffvc7-gzip-1.10.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/w52ybvgf1iqjp9wbj93sf05irzsp2wf8-libgc-8.0.4.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/416gi1543sgyi8rqmpx40xvl7q5r9h05-libltdl-2.4.6.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/l0wvk570gzbnmq9ik1hsmnbkyhnf4mib-libunistring-0.9.10.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/d2fr7ijbw7hg5xz8s8ff24zypmqxc09h-linux-libre-headers-5.4.20.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/577y712c4lqzarml9x5a20x5kmlvwcz0-make-4.3.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/rlf3y96hkbl7akl7w23q351rrqan1xxp-patch-2.7.6.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/0zmcam9sdiag9s1qx3xvlf8a3jnm53x2-sed-4.8.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/jjkv2zvx1s8qk47nx6mnz5n5iqhq5q9b-tar-1.32.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/7avrcww5ag0d1zbidi8awrarqvd8bb29-xz-5.2.4.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/9mf1r6xzp10gcxks4dbr2iiqn2imm1bi-glibc-utf8-locales-2.31.drv': 1 dependencies couldn't be built
Backtrace:
          11 (primitive-load "/gnu/store/1q0np6cpqjj6180qwxglxm2xf7dsvqlx-compute-guix-derivation")
In ice-9/eval.scm:
    155:9 10 (_ _)
    159:9  9 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-user) 7f6fa14ea1?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
In ./guix/store.scm:
  2049:24  8 (run-with-store #<store-connection 256.99 7f6f9f8e16c0> _ #:guile-for-build _ #:system _ #:target _)
   1883:8  7 (_ _)
In ./guix/gexp.scm:
   258:18  6 (_ _)
   1123:2  5 (_ _)
    982:2  4 (_ _)
    843:4  3 (_ _)
In ./guix/store.scm:
  1931:12  2 (_ #<store-connection 256.99 7f6f9f8e16c0>)
   1358:5  1 (map/accumulate-builds #<store-connection 256.99 7f6f9f8e16c0> _ _)
  1369:15  0 (_ #<store-connection 256.99 7f6f9f8e16c0> _ _)

./guix/store.scm:1369:15: Throw to key `srfi-34' with args `(#<condition &store-protocol-error [message: "build of `/gnu/store/9mf1r6xzp10gcxks4dbr2iiqn2imm1bi-glibc-utf8-locales-2.31.drv' failed" status: 100] 7f6f93e47b10>)'.
guix pull: error: You found a bug: the program '/gnu/store/1q0np6cpqjj6180qwxglxm2xf7dsvqlx-compute-guix-derivation'
failed to compute the derivation for Guix (version: "64098437081d8752d95ca9d065bf8367bd5ffb08"; system: "x86_64-linux";
host version: "bf8dfe3df025e4ac80cccb87497b4f072ba10e2a"; pull-version: 1).
Please report it by email to <[email-masked]>.

-----

Cheers,
Carl Dong