Wind River Support Network

HomeDefectsLIN7-2399
Not to be fixed

LIN7-2399 : native-standard-native build spec should not include --sysroot in tool invocation

Created: Dec 10, 2014    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Previous ID: WB4-4929
Found In Version: 7.0.0.0.LB22,7.0.0.3
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Workbench Integration

Description

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.

Workaround

Remove the --sysroot argument from the build spec. Select "Properties > Build Properties > Variables" and edit the "CC", "CXX", and "LD" values.

Steps to Reproduce

Create a Makefile-defined project. Review the build properties for the native-standard-native and not the --sysroot argument. Attempt to invoke host gcc, ld from the command-line with these arguments.
Live chat
Online