$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Brad Cox (bradjcox_at_[hidden])
Date: 2005-03-31 08:59:43
I'm trying to cross-compile boost for the Embedded Planet PowerPC 82xx 
target platform and have a few questions. This is the first time I've 
used jam so I'm a bit disoriented. Can somebody help?
The build platform is a vanilla Redhat 9 system for which the target 
processor vendor provides a cross-compiler (ppc_82xx_gcc). This is a 
modified version of gcc that builds applications to run under their 
Linux kernel/application environment, supplied as a collection of rpm 
images. These are installed on the host file system and exported to the 
target platform via NFS. All this is in place now and apparently is 
working, at least insofar as having compiled ACE/TAO successfully (as 
yet untested).
Question is, how do I compile boost for this platform? I've copied 
tools/build/v1/gcc-tools.jam to tools/build/v1/ppc_82xx-tools.jam and 
changed the GCC/GXX settings in that file to ppc_82xx-gcc and 
ppc_82xx-g++ respectively, which is all that should be needed insofar as 
their compiler is concerned.
Here's what I'm getting: jam needs to be told the target architecture 
somehow. Question is, how do I do this?
/usr/local/tena-tools/i686-pc-linux-gnu/bin/bjam 
--prefix="/usr/local/boost/1.31.0/rh9-gcc322-ppc82xx-d" 
--builddir="/usr/local/boost/1.31.0/rh9-gcc322-ppc82xx-d/build" 
-sTOOLS="ppc_82xx-gcc" -sBUILD="debug <runtime-link>dynamic 
<threading>multi" -sGXX="ppc_82xx-gcc" -sGCC="ppc_82xx-gcc" 
install/usr/local/tena-tools/i686-pc-linux-gnu/bin/bjam 
--prefix="/usr/local/boost/1.31.0/rh9-gcc322-ppc82xx-d" 
--builddir="/usr/local/boost/1.31.0/rh9-gcc322-ppc82xx-d/build" 
-sTOOLS="ppc_82xx-gcc" -sBUILD="debug <runtime-link>dynamic 
<threading>multi" -sGXX="ppc_82xx-gcc" -sGCC="ppc_82xx-gcc" 
install/usr/local/tena-tools/i686-pc-linux-gnu/bin/bjam 
--prefix="/usr/local/boost/1.31.0/rh9-gcc322-ppc82xx-d" 
--builddir="/usr/local/boost/1.31.0/rh9-gcc322-ppc82xx-d/build" 
-sTOOLS="ppc_82xx-gcc" -sBUILD="debug <runtime-link>dynamic 
<threading>multi" -sGXX="ppc_82xx-gcc" -sGCC="ppc_82xx-gcc" install
...found 8259 targets...
...updating 226 targets...
MkDir1 
/usr/local/boost/1.31.0/rh9-gcc322-ppc82xx-d/build/bin/boost/libs/python/build/libboost_python.so/ppc_82xx-gcc/debug/shared-linkable-true/threading-multi
gcc-C++-action 
/usr/local/boost/1.31.0/rh9-gcc322-ppc82xx-d/build/bin/boost/libs/python/build/libboost_python.so/ppc_82xx-gcc/debug/shared-linkable-true/threading-multi/numeric.o
/usr/bin/objcopy: Warning: Output file cannot represent architecture 
UNKNOWN!
gcc-C++-action 
/usr/local/boost/1.31.0/rh9-gcc322-ppc82xx-d/build/bin/boost/libs/python/build/libboost_python.so/ppc_82xx-gcc/debug/shared-linkable-true/threading-multi/list.o
/usr/bin/objcopy: Warning: Output file cannot represent architecture 
UNKNOWN!