| Summary: | cannot build Hello World Ansi C project using standalone Toolchain for PowerPC | ||
|---|---|---|---|
| Product: | [Yocto Project Subprojects] ADT | Reporter: | Alexandru Georgescu <alexandru.c.georgescu> |
| Component: | adt | Assignee: | Laurentiu Palcu <laurentiu.palcu> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | alexandru.damian, jessica.zhang, laurentiu.palcu, poky.adt.watcher, poky.watcher |
| Version: | 1.3 | ||
| Target Milestone: | 1.3 M5 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | (merged) | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
| Bug Depends on: | |||
| Bug Blocks: | 3201 | ||
|
Description
Alexandru Georgescu
2012-09-24 10:10:37 UTC
I took a look at the problem, it failed for me for both toolchain installer or adt_installer. The real failure is this:
configure:3219: powerpc-poky-linux-gcc -m32 -mhard-float -mcpu=603e --sysroot=/home/jzhang/test-yocto/ppc -g -O0 --sysroot=/home/jzhang/test-yocto/ppc --sysroot=/home/jzhang/test-yocto/ppc --sysroot=/home/jzhang/test-yocto/ppc conftest.c >&5
as: unrecognized option '-mppc'
It caused by we have this for ppc gcc:
sysroots/i686-pokysdk-linux/usr/lib/ppc603e-poky-linux/gcc/powerpc-poky-linux/4.7.2/plugin/include/config/rs6000/rs6000.h:%{mcpu=ec603e: -mppc} \
This issue should be fixed in the latest tree. Please retest by using toolchain tarballs older than 09.24. Alex, can you please retest this using current HEAD ? (In reply to comment #3) > Alex, can you please retest this using current HEAD ? the latest nightly would suffice, I think. Hi, I have tested with this build: http://autobuilder.yoctoproject.org/pub/nightly/20120926-1 which is older than 09.24, and reproduces with the standalone toolchain. The standalone toolchain was installed in a different location than the default one. When solved, please set it to resolved fixed, not Invalid Fixed because this is a valid bug. My test host this time is a Fedora17 32bit machine. Thanks, Alex. The same happenes when creating a GTK project as well. Alex, Is the toolchain you tested against is the official M5 built toolchain? Hi Jessica, Yes, I am using the official build for 1.3_M5 RC2: Download: http://autobuilder.yoctoproject.org/pub/nightly/20120926-1 poky: 718eb85806e080d0b165344b272e531ef19421eb meta-qt3: 8730326c902e6fb256b5dea77a6dde28d813c424 eclipse-poky: c88444d96958324e7dda9bd496977be3369aea1e This should not happen anymore. We have a patch submitted for it by Laur. Root cause: 32bit cross-canadian and nativesdk packages didn't have RPATHs relocated because the building machine had a chrpath version <0.14. Verified. |