I am trying to update util-linux to 2-32 (see cl:1081298), but it fails in PreCQ:
https://cros-goldeneye.corp.google.com/chromeos/healthmonitoring/buildDetails?buildbucketId=8942820020677718496
However, it runs locally and in a tryjob:
https://cros-goldeneye.corp.google.com/chromeos/healthmonitoring/buildDetails?buildbucketId=8942951252151234096
Compiling util-linux locally and comparing the output with the fail PreCQ, I notice the build environment is different:
[local]
checking for armv7a-cros-linux-gnueabihf-ncurses5-config... armv7a-cros-linux-gnueabihf-ncurses5-config
vs
[precq]
checking for armv7a-cros-linux-gnueabihf-ncurses5-config... no
checking for ncurses5-config... ncurses5-config
configure: WARNING: using cross tools not prefixed with host triplet
Later the compilation fails:
util-linux-2.32-r3: /usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabihf/binutils-bin/2.27.0/ld.gold.real: warning: skipping incompatible /usr/lib64/libtinfo.so while searching for tinfo
util-linux-2.32-r3: /usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabihf/binutils-bin/2.27.0/ld.gold.real: error: cannot find -ltinfo
util-linux-2.32-r3: /usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabihf/binutils-bin/2.27.0/ld.gold.real: warning: skipping incompatible /usr/lib64/libc.so while searching for c
util-linux-2.32-r3: clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
It looks like in precq the compiler tries to compile ncurse with tinfo, while locally, a different config is used, without tinfo.
|
Deleted:
failed_util_linux.txt
964 KB
|
|
Deleted:
good_util_linux.txt
1.2 MB
|
Comment 1 by gwendal@chromium.org
, Jun 25 2018