Boost logo

Boost-Build :

Subject: Re: [Boost-build] Cross compile Boost library (Thread, System) for PowerPC
From: studywireless (studywireless_at_[hidden])
Date: 2013-02-20 17:04:32


I used -d+2 and -q options and below is the result.

*"ppc_4xx-g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pedantic -pthread -fPIC -DBOOST_ALL_NO_LIB=1
-DBOOST_SYSTEM_DYN_LINK=1 -DNDEBUG -I"."
-I"/opt/ELDK/4.2/ppc_4xx/usr/include" -c -o
"BoostPowerPC/boost/bin.v2/libs/system/build/gcc-power/release/threading-multi/error_code.o"
"libs/system/src/error_code.cpp"*

Compilation log:
*In file included from ./boost/config/select_stdlib_config.hpp:18,
                 from ./boost/config.hpp:40,
                 from ./boost/system/config.hpp:13,
                 from libs/system/src/error_code.cpp:18:
/opt/ELDK/4.2/ppc_4xx/usr/include/c++/4.2.2/cstddef:50:28: error:
bits/c++config.h: No such file or directory*

The file c++config.h is present in the location
/opt/ELDK/4.2/ppc_4xx/usr/include/c++/4.2.2/powerpc-linux/bits. So I tried
to include this path also and below is the result

*"ppc_4xx-g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pedantic -pthread -fPIC -DBOOST_ALL_NO_LIB=1
-DBOOST_SYSTEM_DYN_LINK=1 -DNDEBUG -I"."
-I"/opt/ELDK/4.2/ppc_4xx/usr/include"
-I"/opt/ELDK/4.2/ppc_4xx/usr/include/c++/4.2.2/powerpc-linux" -c -o
"BoostPowerPC/boost/bin.v2/libs/system/build/gcc-power/release/threading-multi/error_code.o"
"libs/system/src/error_code.cpp"

Compilation Log:
In file included from ./boost/config.hpp:40,
                 from ./boost/system/config.hpp:13,
                 from libs/system/src/error_code.cpp:18:
./boost/config/select_stdlib_config.hpp:18:21: error: cstddef: No such file
or directory*

As we can see its not finding a file in the higher directory now. Did my
second include overwrite the previous one ? How can I append multiple
include paths ?

I checked the compilation options of ppc_4xx-g++ and 2 options interested me
1. --sysroot=<directory>: This is the root directory of all the includes and
libraries used by the compiler.
2. -B <directory>: Using this we can add a search path for the compiler.

I tried both and it didn't help. Any suggestions ?

--
View this message in context: http://boost.2283326.n4.nabble.com/Cross-compile-Boost-library-Thread-System-for-PowerPC-tp4643105p4643146.html
Sent from the Boost - Build mailing list archive at Nabble.com.

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk