Not to be fixed
Created: Dec 3, 2015
Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 8.0.0.0.LB10
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Workbench Integration
Creating a Makefile project, the native-standard-native build spec calls out to tools including the argument --sysroot=/. Host ld (Fedora 19 - binutils-2.23.52.0.1-8.fc19.x86_64) doesn't like that and complains "not configured to use sysroots". One of the sample projects i have is failing to build because of this. Also affects CentOS 6.6, using the "Helloworld Makefile" example in Workbench:
gcc --sysroot=/ -pipe -O2 -pipe -c -o hello.o hello.c
gcc --sysroot=/ -pipe -o hello hello.o
/usr/bin/ld: this linker was not configured to use sysroots
collect2: ld returned 1 exit status
make: *** [all] Error 1
Remove the --sysroot argument from the build spec. Select "Properties > Build Properties > Variables" and edit the "CC", "CXX", and "LD" values.
1. Start Workbench
2. Import a WRLinux SDK
3. File > New > Example > "Wind River Linux Makefile Example" > Hello World
4. Set buildspec as "native-standard-native" and click build
--> Build fails