| Summary: | SDKTARGETSYSROOT is trimmed to DKTARGETSYSROOT | ||
|---|---|---|---|
| Product: | [Yocto Project Subprojects] Eclipse Plugin | Reporter: | Todor Minchev <todor.minchev> |
| Component: | eclipse-plugin | Assignee: | Todor Minchev <todor.minchev> |
| Status: | RESOLVED FIXED | QA Contact: | Mihail Stanciu <stanciux.mihail> |
| Severity: | major | ||
| Priority: | Undecided | CC: | alexandru.c.georgescu, bevenson, ioanax.grigoropol, yp.ep.watcher, yp.watcher |
| Version: | 1.8 | ||
| Target Milestone: | --- | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| URL: | https://lists.yoctoproject.org/pipermail/yocto/2015-March/024135.html | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Todor Minchev
2015-03-16 13:48:53 UTC
I took a further look at this issue on my system, and I'm wondering if the issue is not limited to the Eclipse plugin but may be affected by anything using the environment setup script. In my script (environment-setup-arm926ejste-poky-linux-gnueabi) I see the following references to SDKTARGETSYSROOT: export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT export PKG_CONFIG_PATH=$SDKTARGETSYSROOT/usr/lib/pkgconfig export OECORE_TARGET_SYSROOT="$SDKTARGETSYSROOT" export CC="arm-poky-linux-gnueabi-gcc -march=armv5te -marm -mthumb-interwork -mtune=arm926ej-s --sysroot=$SDKTARGETSYSROOT" export CXX="arm-poky-linux-gnueabi-g++ -march=armv5te -marm -mthumb-interwork -mtune=arm926ej-s --sysroot=$SDKTARGETSYSROOT" export CPP="arm-poky-linux-gnueabi-gcc -E -march=armv5te -marm -mthumb-interwork -mtune=arm926ej-s --sysroot=$SDKTARGETSYSROOT" export LD="arm-poky-linux-gnueabi-ld --sysroot=$SDKTARGETSYSROOT" export CONFIGURE_FLAGS="--target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi --build=x86_64-linux --with-libtool-sysroot=$SDKTARGETSYSROOT" Note that some are in double quotes and some are not. I don't which is correct, but I believe they should be consistent. The actual problem is that variables will only be expanded in a Makefile if they are in parentheses or braces as in $(var_name) or ${var_name}.
The autotools plugin uses the literal(unexpanded) values of the environment variables when it generates the Makefiles.
This only works in its current form, because we have overlapping "--sysroot=" entries. I have a fix for this and will apply it to all versions of the plugin.
Thanks again for reporting this bug.
Fixed in luna with: d97b40d43 Fixed in kepler with: 02aa20e1 Fixed in luna with: d97b40d43 Fixed in kepler with: 02aa20e1 |