Bug 1318

Summary: [Toolchain] wrong path to ld.so for x86_64 toolchain
Product: [Build System, Metadata & Runtime] OE-Core Reporter: wenhua.fan <wenhuax.fan>
Component: devtools / tool chainAssignee: Nitin Kamble <nitin.a.kamble>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: High CC: jiajun.xu, lianhao.lu, meta.mr.watcher, meta.watcher, poky.adt.watcher, poky.watcher, richard.purdie, wenhuax.fan
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description wenhua.fan 2011-08-02 21:58:20 UTC
Tree/Branch: Poky-contrib/master_under_test
Poky Commit id: 2f3994545e757efc575341f2b984a62a0a3441fd

Image location:

http://autobuilder02.yoctoproject.org/nightly/20110730-1/toolchain/

There is no such issue in Yocto1.1 20110723 build.

Error messages as below when use gcc/g++ to compile simple program:

Xxx$ ${CC} test.c –lm –Wall / Xxx$ ${CXX} test.cxx –lm –Wall /
Bash: /opt/poky/1.0+snapshot/sysrootfs/x86-64-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-gcc/g++: No such file or directory

Error messages as below when compile tarball:

iptablesxxx$./configures ${CONFIGURES_FLAGS}
……
Checking for a BSD-compatible install… /usr/bin/install –c
Checking whether build environment is sane… yes
Checking for i586-poky-linux-strip… i586-poky-linux-strip
Checking for a thread-safe mkdir –p… /bin/mkdir –p
Checking for gawk… gawk
Checking whether make sets $(MAKE)…yes
Checking for i586-poky-linux-gcc… i586-poky-linux-gcc
Checking whether the C compiler works … no
Configure: error: in ‘/home/…/iptable-1.4.11’:
Configure: error: C compiler cannot create executables
See config.log for more details
Comment 1 Jiajun Xu 2011-08-02 23:40:58 UTC
The issue occurs on x86_64 toolchain, we use a x86_64-i586 toolchain here, in i586-poky-linux-gcc, the ld.so path is set to /opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/lib64/ld-linux-x86-64.so.2, meanwhile the real path is /opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/lib/ld-linux-x86-64.so.2 in toolchain.
Comment 2 Lianhao Lu 2011-08-03 06:59:43 UTC
Is it possibly related to the patch?

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6c936b4b1a2fb1bdf1f3f91482af7e33e71b5c10
Comment 3 wenhua.fan 2011-08-07 22:41:19 UTC
This issue not reappear in Yocto 1.1 M3 RC3 building.
Comment 5 wenhua.fan 2011-08-07 22:46:36 UTC
Tree/Branch: Poky/1.1_M3
Poky Commit id: 1580d1624647bc07ffd4997b6c8cfbccd8040fc5