Bug 6906 - [1.6.2] C++ compiler does not work for ppce500v2 cross toolchain
Summary: [1.6.2] C++ compiler does not work for ppce500v2 cross toolchain
Status: RESOLVED WONTFIX
Alias: None
Product: ADT
Classification: Yocto Project Subprojects
Component: adt (show other bugs)
Version: 1.6.2
Hardware: x86 ppc
: Medium normal
Target Milestone: 1.6.2
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard: Relaase Note
Depends on:
Blocks:
 
Reported: 2014-10-29 09:02 UTC by Yi Zhao
Modified: 2014-10-30 15:08 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
sudoku compile log (4.71 KB, text/x-log)
2014-10-29 09:02 UTC, Yi Zhao
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2014-10-29 09:02:49 UTC
Created attachment 2220 [details]
sudoku compile log

Toolchain location: http://autobuilder.yoctoproject.org/pub/releases/yocto-1.6.2.rc1/toolchain/x86_64/poky-eglibc-x86_64-core-image-sato-ppce500v2-toolchain-1.6.1.sh

Git rev: daisy/313864bf528696a72c3ee6b3dec1a0c7b0b223f6 

The ppce500v2 toolchain is from meta-fsl-ppc layer. This issue is same with bug 6613 which already fixed in 1.7.

When compile sudoku-savant, I got the following error:
##########################
In file included from main.cpp:10:0:
/opt/poky/1.6.1/sysroots/ppce500v2-poky-linux-gnuspe/usr/include/c++/cstdlib:41:28: fatal error: bits/c++config.h: No such file or directory
 #include <bits/c++config.h>
                            ^
compilation terminated.
In file included from utils.cpp:1:0:
/opt/poky/1.6.1/sysroots/ppce500v2-poky-linux-gnuspe/usr/include/c++/cctype:41:28: fatal error: bits/c++config.h: No such file or directory
 #include <bits/c++config.h>
                            ^
compilation terminated.
make[2]: *** [main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [utils.o] Error 1
make[2]: Leaving directory `/buildarea1/sdk-automation-test/test_files/sudoku-savant-1.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/buildarea1/sdk-automation-test/test_files/sudoku-savant-1.3'
make: *** [all] Error 2
#############################

The attachment is the full build log.
Comment 1 Richard Purdie 2014-10-30 15:08:49 UTC
My big concern with this bug is that the changes to fix this are fairly invasive. I'd therefore prefer not to try and fix this in 1.6.2 but direct people to 1.7 for this toolchain.