Wind River Support Network

HomeDefectsLIN5-19447
Fixed

LIN5-19447 : Build fails if "./" is in the PATH

Created: Sep 10, 2014    Updated: Dec 19, 2017
Resolved Date: Dec 18, 2014
Found In Version: 5.0.1.18
Fix Version: 5.0.1.22
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Build & Config

Description

Add "./" in the PATH: elfutils-native build fails.

Workaround

Remove the current path (./) from PATH.

Steps to Reproduce

$ 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.

Other Downloads


Live chat
Online