Boost logo

Boost-Build :

From: BRIDGES Dick (Dick.Bridges_at_[hidden])
Date: 2005-05-03 11:23:56


> -----Original Message-----
> From: jamboost_at_[hidden] [mailto:jamboost_at_[hidden]] On
Behalf
> Of Vladimir Prus
> Sent: Monday, May 02, 2005 11:26 PM
> To: jamboost_at_[hidden]
> Subject: Re: [jamboost] Can't get bjam to cross-compile threads for
ARM
>
> On Tuesday 03 May 2005 00:49, BRIDGES Dick wrote:
> > Host system is RedHat Fedora and I've clearly angered bjam because,
not
> > matter how I try to compile threads, I get the following:
> ....
> > /usr/local/boost_1_32_0/boost/config/requires_threads.hpp:47:5:
#error
> > "Compiler threading support is not turned on. Please set the correct
> > command line options for threading: -pthread (Linux), -pthreads
> > (Solaris) or -mthreads (Mingw32)"
> ...
> > user-config.jam contains everything I could think of:
> ...
> > using gcc : 3.4arm : /my_path/bin/arm-softfloat-linux-gnu-c++ : \
> >
> > <cxxflags>-I/my_path/include/c++/3.3.3/ \
> >
> > <cxxflags>-I/my_path/include/c++/3.3.3/arm-softfloat-linux-gnu/bits/
\
> >
> > <compileflags>-pthread \
> >
> > <compileflags>-DBOOST_HAS_THREADS \
> >
> > <linkflags>-L/my_path/lib \
> >
> > <linkflags>-L/my_path/lib/gcc-lib/arm-softfloat-linux-gnu/3.3.3 \
>
> Do compile commands (shown with "bjam -n") contain all of the above
> settings?
> If yes, then I suspect something is wrong with thread detection for
> cross-compiling. In fact, I can't figure out where
"requires_threads.hpp"
> is
> included from.
>
> If some flags are missing, this could be a bug in Boost.Build.
>
>
> --
> Vladimir Prus
> http://vladimir_prus.blogspot.com
> Boost.Build V2: http://boost.org/boost-build2
>
>
>
> Yahoo! Groups Links
>
>
>
>

[Dick]
It seems -pthread made it but BOOST_HAS_THREADS maybe got #undef'D? I
wish I understoon Boost.Build better. Guess I'll start [blindly]
working my way through the headers. %>(

<next_test>
[root_at_irvsoftws21 boost_1_32_0]# bjam --v2 -n gcc-3.4arm
...patience...
...found 1481 targets...
...updating 13 targets...
gcc.compile.c++
bin.v2/libs/thread/build/gcc-3.4arm/debug/threading-multi/condition.o

"/my_path/bin/arm-softfloat-linux-gnu-c++" -Wall
-ftemplate-depth-100 -I/my_path/include/c++/3.3.3
-I/my_path/include/c++/3.3.3/arm-softfloat-linux-gnu/bits -O0
-fno-inline -g -fPIC -pthread -DBOOST_ALL_NO_LIB=1
-I"/usr/local/boost_1_32_0" -c-o
"bin.v2/libs/thread/build/gcc-3.4arm/debug/threading-multi/condition.o"
"libs/thread/src/condition.cpp"

gcc.compile.c++
bin.v2/libs/thread/build/gcc-3.4arm/debug/threading-multi/mutex.o

"/my_path/bin/arm-softfloat-linux-gnu-c++" -Wall
-ftemplate-depth-100 -I/my_path/include/c++/3.3.3
-I/my_path/include/c++/3.3.3/arm-softfloat-linux-gnu/bits -O0
-fno-inline -g -fPIC -pthread -DBOOST_ALL_NO_LIB=1
-I"/usr/local/boost_1_32_0" -c-o
"bin.v2/libs/thread/build/gcc-3.4arm/debug/threading-multi/mutex.o"
"libs/thread/src/mutex.cpp"
</next_test>

I *REALLY* appreciate your help with this.

 


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