Wind River Support Network

HomeDefectsLIN7-2678
Fixed

LIN7-2678 : CLONE - Build fails if "./" is in the PATH

Created: Jan 12, 2015    Updated: Sep 8, 2018
Resolved Date: Jun 17, 2015
Found In Version: 7.0.0.5
Fix Version: 7.0.0.7
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Build & Config

Description

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

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