[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    [Boost-build] [BOOST-BUILD] Need help in compiling boost library
From:       rohini chandra p <rohinichandrap () gmail ! com>
Date:       2011-10-13 14:56:11
Message-ID: CAGMWOiDFu3iU69MkyhOYf+-X-Sg3o6b3NTfWdUataDsvV5Xh2Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

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/
--show-locate-target
**
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
listed.

================================================================================

common.mkdir
/home/tcsroch1/boost-dir/boost/bin.v2/libs/iostreams/build/gcc-4.3.3/release/threading-multi
 gcc.compile.c++
/home/tcsroch1/boost-dir/boost/bin.v2/libs/iostreams/build/gcc-4.3.3/release/threading-multi/file_descriptor.o
 libs/iostreams/src/file_descriptor.cpp:13:19: error: cassert: No such file
or directory
libs/iostreams/src/file_descriptor.cpp:14:18: error: cerrno: No such file or
directory
libs/iostreams/src/file_descriptor.cpp:15:68: error: cstdio: No such file or
directory
In file included from ./boost/config.hpp:40,
                 from libs/iostreams/src/file_descriptor.cpp:16:
./boost/config/select_stdlib_config.hpp:17:19: error: cstddef: No such file
or directory
In file included from ./boost/config/select_stdlib_config.hpp:33,
                 from ./boost/config.hpp:40,
                 from libs/iostreams/src/file_descriptor.cpp:16:
./boost/config/no_tr1/utility.hpp:21:21: error: utility: No such file or
directory
In file included from ./boost/config.hpp:53,
                 from libs/iostreams/src/file_descriptor.cpp:16:
./boost/config/platform/linux.hpp:14:19: error: cstdlib: No such file or
directory
In file included from ./boost/iostreams/detail/error.hpp:15,
                 from libs/iostreams/src/file_descriptor.cpp:17:
./boost/iostreams/detail/ios.hpp:20:17: error: ios: No such file or
directory
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,
Rohini Chandra


[Attachment #5 (text/html)]

<div>Hi,</div>
<div> </div>
<div>I need help in building boost libraries (version 1.44) using a custom \
cross-compiler and custom SDK(system libraries).</div> <div> </div>
<div>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.</div>

<div> </div>
<div>The compiler is a cross compiler which is also accessible from clearcase.</div>
<div> </div>
<div><strong>1.</strong>I built bjam using the below command from the jam src \
folder.</div> <div> </div>
<div><font color="#cc6600">./build.sh gcc \
--toolset-root=/vobs/Development/.../compilers/bin/ --show-locate-target</font></div> \
<div><strong></strong> </div> <div>I could not find any options to build bjam using \
our cross compiler. <font color="#3333ff">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?</font></div>

<div> </div>
<div> </div>
<div><strong>2.</strong>I have added the below line to user-config.jam under \
tools/build/v2 to access the cross compiler.</div> <div> </div>
<div><font color="#cc6600">using gcc : : \
/vobs/Development/.../compilers/bin/&lt;compiler-prefix&gt;gcc ;</font></div> \
<div><font color="#cc6600"></font> </div> <div><font color="#cc6600">bjam \
--build-dir=/home/testuser/boost-dir toolset=gcc stage</font></div> <div> </div>
<div>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</div>

<div>configuration that can be edited to achieve the same. <font color="#6633ff">Is \
this a correct way to make the custom sdk be used for building the boost \
library?</font></div> <div> </div>
<div>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.</div> <div> </div>
<div>Below is the starting portion of the log after the libraries to be built are \
listed.</div> <div> </div>
<div>================================================================================</div>
 <div> </div>
<div>common.mkdir /home/tcsroch1/boost-dir/boost/bin.v2/libs/iostreams/build/gcc-4.3.3/release/threading-multi<br>gcc.compile.c++ \
/home/tcsroch1/boost-dir/boost/bin.v2/libs/iostreams/build/gcc-4.3.3/release/threading-multi/file_descriptor.o<br>
 libs/iostreams/src/file_descriptor.cpp:13:19: error: cassert: No such file or \
directory<br>libs/iostreams/src/file_descriptor.cpp:14:18: error: cerrno: No such \
file or directory<br>libs/iostreams/src/file_descriptor.cpp:15:68: error: cstdio: No \
such file or directory<br> In file included from ./boost/config.hpp:40,<br>           \
from libs/iostreams/src/file_descriptor.cpp:16:<br>./boost/config/select_stdlib_config.hpp:17:19: \
error: cstddef: No such file or directory<br>In file included from \
./boost/config/select_stdlib_config.hpp:33,<br>  from ./boost/config.hpp:40,<br>      \
from libs/iostreams/src/file_descriptor.cpp:16:<br>./boost/config/no_tr1/utility.hpp:21:21: \
error: utility: No such file or directory<br>In file included from \
./boost/config.hpp:53,<br>  from \
libs/iostreams/src/file_descriptor.cpp:16:<br>./boost/config/platform/linux.hpp:14:19: \
error: cstdlib: No such file or directory<br>In file included from \
./boost/iostreams/detail/error.hpp:15,<br>                 from \
                libs/iostreams/src/file_descriptor.cpp:17:<br>
./boost/iostreams/detail/ios.hpp:20:17: error: ios: No such file or directory<br>In \
file included from libs/iostreams/src/file_descriptor.cpp:21:<br>./boost/iostreams/detail/system_failure.hpp:18:19: \
error: cstring: No such file or directory</div>

<div>====================================================================================</div>
 <div> </div>
<div> </div>
<div>Could you anyone please help in understanding where the problem is.  Please let \
me know if you need more information to help me.</div> <div> </div>
<div>Thanks in advance,</div>
<div>Rohini Chandra</div>
<div> </div>



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic