New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 855981 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Oct 3
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug

Blocking:
issue 711369



Sign in to add a comment

ncurses has different xxx-config wrapper names during arm hf conversion

Project Member Reported by gwendal@chromium.org, Jun 25 2018

Issue description

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.






 
failed_util_linux.txt
964 KB View Download
good_util_linux.txt
1.2 MB View Download
Components: OS>Packages
Reproduced the problem locally by renaming the link armv7a-cros-linux-gnueabihf-ncurses5-config
sudo mv /build/whirlwind/build/bin/armv7a-cros-linux-gnueabihf-ncurses5-config /build/whirlwind/build/bin/noconfig

Found a related bug, but was fixed 2 years ago [https://bugs.gentoo.org/601530] and the patch is in the 2-32r3 ebuild.

I need to find out how/when armv7a-cros-linux-gnueabihf-ncurses5-config is created. There is probably an undeclared dependency and this file must exist for util-linux to cross-compile properly.

Comment 2 by vapier@chromium.org, Jun 25 2018

Blocking: 711369
Cc: yunlian@chromium.org
Summary: ncurses has different xxx-config wrapper names during arm hf conversion (was: util-linux 2-32 reveal different build environment)
this is part of the arm hardfloat work that Yunlian is working on currently
Cc: zentaro@chromium.org
Status: Available (was: Untriaged)
Status: Fixed (was: Available)

Sign in to add a comment