Boost logo

Boost-Build :

From: BRIDGES Dick (Dick.Bridges_at_[hidden])
Date: 2005-06-14 17:51:04


I'm still attempting to cross-compile the thread library and failing
miserably. Just 13 targets from home - the rest compiled weeks ago.
Can someone take a look at these results and maybe make some
suggestions? I'd *REALLY* appreciate it.

/***** 1) These are the mods that have been made to user-config.jam.
*****/
/***** (Thought I'd try a magic incantation with BOOST_HAS_THREADS.)
*****/
/***********************************************************************
**/
# using gcc : 3.4 ;
using gcc : 3.4arm :
/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.2/bin/arm-sof
tfloat-linux-gnu-c++ : \
<cxxflags>-I/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.2
/include/c++/3.3.3/ \
<cxxflags>-I/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.2
/include/c++/3.3.3/arm-softfloat-linux-gnu/bits/ \
<cxxflags>-pthread \
<cxxflags>-DBOOST_HAS_THREADS \
<linkflags>-L/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.
2/lib \
<linkflags>-L/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.
2/lib/gcc-lib/arm-softfloat-linux-gnu/3.3.3 \
;

/***** 2) From bjam --v2 -n, it looks like it's gonna be ok. *****/
/*****************************************************************/
[root_at_mycomputer 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

 
"/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.2/bin/arm-so
ftfloat-linux-gnu-c++" -Wall
-ftemplate-depth-100-I/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-g
libc-2.3.2/include/c++/3.3.3
-I/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.2/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

 
"/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.2/bin/arm-so
ftfloat-linux-gnu-c++" -Wall
-ftemplate-depth-100-I/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-g
libc-2.3.2/include/c++/3.3.3
-I/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.2/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"

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

 
"/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.2/bin/arm-so
ftfloat-linux-gnu-c++" -Wall
-ftemplate-depth-100-I/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-g
libc-2.3.2/include/c++/3.3.3
-I/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.3.3-glibc-2.3.2/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/recursive_mut
ex.o" "libs/thread/src/recursive_mutex.cpp"

...etc.

/***** 3) Then I try to actually compile the thread lib. *****/
/*************************************************************/
[root_at_irvsoftws21 boost_1_32_0]# bjam --v2 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
In file included from
/usr/local/boost_1_32_0/boost/thread/detail/config.hpp:18,
from libs/thread/src/condition.cpp:12:
/usr/local/boost_1_32_0/boost/config/requires_threads.hpp:47:5: #error
"Compiler threading support is not turned on. Please setthe correct
command line options for threading: -pthread (Linux), -pthreads
(Solaris) or -mthreads (Mingw32)"
In
file included from /usr/local/boost_1_32_0/boost/thread/thread.hpp:19,
from libs/thread/src/condition.cpp:16:
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:58: error: `cv_state' was
not
declared in this scope
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:58: error: `state' was
not
declared in this scope
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:58: error: invalid data
member
initialization
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:58: error: (use `=' to
initialize static data members)
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:58: error: variable or
field `
do_lock' declared void
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:58: error: declaration of
`int
boost::mutex::do_lock'
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:56: error: conflicts with
previous declaration `void boost::mutex::do_lock()'
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:59: error: `cv_state' was
not
declared in this scope
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:59: error: `state' was
not
declared in this scope
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:59: error: invalid data
member
initialization
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:59: error: variable or
field `
do_unlock' declared void
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:59: error: declaration of
`int
boost::mutex::do_unlock'
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:57: error: conflicts with
previous declaration `void boost::mutex::do_unlock()'
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:100: error: `cv_state'
was not
declared in this scope
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:100: error: `state' was
not
declared in this scope
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:100: error: invalid data
member
initialization
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:100: error: variable or
field `
do_lock' declared void
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:100: error: declaration
of `int
boost::try_mutex::do_lock'
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:97: error: conflicts with
previous declaration `void boost::try_mutex::do_lock()'
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:101: error: `cv_state'
was not
declared in this scope
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:101: error: `state' was
not
declared in this scope
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:101: error: invalid data
member
initialization
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:101: error: variable or
field `
do_unlock' declared void
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:101: error: declaration
of `int
boost::try_mutex::do_unlock'
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:99: error: conflicts with
previous declaration `void boost::try_mutex::do_unlock()'
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:144: error: `cv_state'
was not
declared in this scope
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:144: error: `state' was
not
declared in this scope
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:144: error: invalid data
member
initialization
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:144: error: variable or
field `
do_lock' declared void
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:144: error: declaration
of `int
boost::timed_mutex::do_lock'
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:140: error: conflicts
with
previous declaration `void boost::timed_mutex::do_lock()'
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:145: error: `cv_state'
was not
declared in this scope
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:145: error: `state' was
not
declared in this scope
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:145: error: invalid data
member
initialization
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:145: error: variable or
field `
do_unlock' declared void
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:145: error: declaration
of `int
boost::timed_mutex::do_unlock'
/usr/local/boost_1_32_0/boost/thread/mutex.hpp:143: error: conflicts
with
previous declaration `void boost::t
...interrupted
...failed updating 1 target...

I probably included *WAY* too much, but I can't tell what's useful and
what isn't. Thanks in advance for any pointers you might provide.

Regards,
Dick Bridges
 
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
 

 


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