Boost logo

Boost-Build :

Subject: [Boost-build] Boost Build arm linux
From: Richard Ketcham (rich.ketcham_at_[hidden])
Date: 2008-09-11 12:35:56


Hello Everyone,
I'm trying to build boost using the gumstix compiler
(arm-linux-gcc-4.1.1). It builds fine using gcc found on my desktop
but the cross compiler isn't working out so well.

These are the steps I took to install build boost.

1. Untar the file system to /usr/local/ which gives /usr/local/boost_1_36_0

2. Add:

using gcc : gumstix :
/home/rich/gumstix/gumstix1508/build_arm_nofpu/staging_dir/bin/arm-linux-gcc-4.1.1
;

to user-config.jam in /usr/local/boost_1_36_0/tools/build/v2/

3. Call:

 bjam --toolset=gcc-gumstix variant=release link=static
runtime-link=static stage

(if I call bjam --toolset=gcc variant=release link=static
runtime-link=static stage, it compiles without errors. Unfortunately,
I need boost.thread which needs to be compiled for the gumstix.)

4. It keeps giving me the following repeatedly:

In file included from ./boost/math/tools/promotion.hpp:26,
                 from ./boost/math/tr1.hpp:370,
                 from libs/math/build/../src/tr1/sph_neumannf.cpp:7:
./boost/math/tools/config.hpp:223:21: error: fenv.h: No such file or directory
./boost/math/tools/config.hpp:240: error: 'fexcept_t' does not name a type
./boost/math/tools/config.hpp: In constructor
'boost::math::detail::fpu_guard::fpu_guard()':
./boost/math/tools/config.hpp:232: error: 'm_flags' was not declared
in this scope
./boost/math/tools/config.hpp:232: error: 'FE_ALL_EXCEPT' was not
declared in this scope
./boost/math/tools/config.hpp:232: error: 'fegetexceptflag' was not
declared in this scope
./boost/math/tools/config.hpp:233: error: 'feclearexcept' was not
declared in this scope
./boost/math/tools/config.hpp: In destructor
'boost::math::detail::fpu_guard::~fpu_guard()':
./boost/math/tools/config.hpp:237: error: 'm_flags' was not declared
in this scope
./boost/math/tools/config.hpp:237: error: 'FE_ALL_EXCEPT' was not
declared in this scope
./boost/math/tools/config.hpp:237: error: 'fesetexceptflag' was not
declared in this scope
./boost/math/special_functions/log1p.hpp: In function 'long double
boost::math::log1p(long double, const Policy&)':
./boost/math/special_functions/log1p.hpp:342: error: '::log1pl' has
not been declared

With a few lines that change each iteration that look similar to this:

    "/home/rich/gumstix/gumstix1508/build_arm_nofpu/staging_dir/bin/arm-linux-c++"
 -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-pthread -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o
"bin.v2/libs/math/build/gcc-gumstix/release/link-static/runtime-link-static/threading-multi/sph_legendref.o"
"libs/math/build/../src/tr1/sph_legendref.cpp"

...failed gcc.compile.c++
bin.v2/libs/math/build/gcc-gumstix/release/link-static/runtime-link-static/threading-multi/sph_legendref.o...
gcc.compile.c++
bin.v2/libs/math/build/gcc-gumstix/release/link-static/runtime-link-static/threading-multi/sph_neumannf.o

It ends with this:

...failed updating 88 targets...
...skipped 117 targets...
...updated 302 targets...

Does anyone have any ideas on how I can get this working with my
cross-compiler? Any details would be greatly appreciated. Also, fyi,
I'm mostly interested in getting boost.thread compiled.

Thanks in advance,
Rich

-- 
There is nothing more practical than a good theory.
James Maxwell

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