Subject: [Boost-build] [BOOST-BUILD] Need help in compiling boost library using custom compiler and SDK on linux
From: rohini chandra p (rohinichandrap_at_[hidden])
Date: 2011-10-13 10:44:11
I need help in building boost libraries (version 1.44) using a custom
cross-compiler and custom SDK(system libraries).
The linux distribution on the target is a customized version of SuSe. The
SDK containing the system libraries and headers specific to the target
distribution is available in clearcase on the build environment. The linux
distribution on the build environment is SuSe linux.
The compiler is a cross compiler which is also accessible from clearcase.
*1.*I built bjam using the below command from the jam src folder.
./build.sh gcc --toolset-root=/vobs/Development/.../compilers/bin/
I could not find any options to build bjam using our cross compiler. Is it
required for bjam also to be built with the same compiler and system
libraries that shall be used to build the boost libraries?
*2.*I have added the below line to user-config.jam under tools/build/v2 to
access the cross compiler.
using gcc : : /vobs/Development/.../compilers/bin/<compiler-prefix>gcc ;
bjam --build-dir=/home/testuser/boost-dir toolset=gcc stage
To make the headers and libraries from the SDK to be used instead of
the native headers and libs , I appended the path of the include folder and
library folder of the SDK to the beginning of the PATH environment variable.
I could not understand from the documentation if there is any
configuration that can be edited to achieve the same. Is this a correct way
to make the custom sdk be used for building the boost library?
I could see that the cross compiler is being picked but I see a lot of
compilation errors. I get these errors even when I run bjam without
changing the user-config.jam.
Below is the starting portion of the log after the libraries to be built are
libs/iostreams/src/file_descriptor.cpp:13:19: error: cassert: No such file
libs/iostreams/src/file_descriptor.cpp:14:18: error: cerrno: No such file or
libs/iostreams/src/file_descriptor.cpp:15:68: error: cstdio: No such file or
In file included from ./boost/config.hpp:40,
./boost/config/select_stdlib_config.hpp:17:19: error: cstddef: No such file
In file included from ./boost/config/select_stdlib_config.hpp:33,
./boost/config/no_tr1/utility.hpp:21:21: error: utility: No such file or
In file included from ./boost/config.hpp:53,
./boost/config/platform/linux.hpp:14:19: error: cstdlib: No such file or
In file included from ./boost/iostreams/detail/error.hpp:15,
./boost/iostreams/detail/ios.hpp:20:17: error: ios: No such file or
In file included from libs/iostreams/src/file_descriptor.cpp:21:
./boost/iostreams/detail/system_failure.hpp:18:19: error: cstring: No such
file or directory
Could you anyone please help in understanding where the problem is. Please
let me know if you need more information to help me.
Thanks in advance,
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