Fixed
Created: Dec 26, 2014
Updated: Dec 3, 2018
Resolved Date: Jan 7, 2015
Found In Version: 6.0
Fix Version: 6.0.0.17
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Build & Config
Add "./" in the PATH: elfutils-native build fails.
$ lx5/wrlinux-5/wrlinux/configure --enable-board=intel-atom --enable-rootfs=glibc-core --enable-kernel=standard --enable-reconfig --enable-test=yes --enable-internet-download=yes --with-template=feature/intel-emgd --with-rcpl-version=0018
$ export PATH="./:$PATH"
$ make -C build-tools elfutils
...
| gcc -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -fgnu89-inline -Wformat=2 -isystem/ala-cvllab-d1/sandbox/nmarguet/lx5/andy_prj/bitbake_build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -Wl,-rpath-link,../libelf:../libdw -L/ala-cvllab-d1/sandbox/nmarguet/lx5/andy_prj/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib -L/ala-cvllab-d1/sandbox/nmarguet/lx5/andy_prj/bitbake_build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath-link,/ala-cvllab-d1/sandbox/nmarguet/lx5/andy_prj/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/ala-cvllab-d1/sandbox/nmarguet/lx5/andy_prj/bitbake_build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath,/ala-cvllab-d1/sandbox/nmarguet/lx5/andy_prj/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/ala-cvllab-d1/sandbox/nmarguet/lx5/andy_prj/bitbake_build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 -o elflint elflint.o ../libebl/libebl.a ../libelf/libelf.so ../lib/libeu.a -ldl
| ./ld: unrecognized option '--sysroot=/'
| Try `ld --help' or `ld --usage' for more information.
| collect2: ld returned 64 exit status
| make[2]: *** [elflint] Error 1
| make[2]: *** Waiting for unfinished jobs....
| rm i386_ld.o
| make[2]: Leaving directory `/ala-cvllab-d1/sandbox/nmarguet/lx5/andy_prj/bitbake_build/tmp/work/x86_64-linux/elfutils-native-0.148-r10/elfutils-0.148/src'
| make[1]: *** [all-recursive] Error 1
I am seeing a different (but as weird as mine) linker error. See run.do_compile.24223 attached.