Skip to contentSkip to conversation

boost-1.36.0 fails when compiling; cannot find the compiler

DISCUSSION Mike (mwester) 5 participants 6 messages Feb 13, 2009 – Feb 16, 2009

lore
Share & tools
lore
#0 lore raw

Boost 1.36.0 fails to build, do_compile log is below. In a nutshell, it seems to have lost the PATH variable. The 1.33.1 version builds just fine.

The compiler is present. The PATH is set correctly, it appears, from the run.do_compile file. So I can only presume that whatever "bjam" is, its resetting the PATH or something.

Nothing else has changed in the environment; 1.33.1 builds, 1.36.0 doesn't, and I have no idea what the heck this "bjam" stuff is or how to debug it.

Any suggestions? Does this work for anyone else?

Mike (mwester)

-----------
+ bjam -sTOOLS=gcc '-sGCC=armeb-linux-gnueabi-gcc -march=armv5te
-mtune=xscale -mno-thumb-interwork -mno-thumb -mno-thumb-interwork
-mno-thumb -L/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib -Wl,-rpath-link,/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib
-Wl,-O1 ${TARGET_LINK_HASH_STYLE} '\''-DBOOST_PLATFORM_CONFIG="boost/config/platform/linux-gnueabi.hpp"'\''' '-sGXX=armeb-linux-gnueabi-g++ -march=armv5te -mtune=xscale
-mno-thumb-interwork -mno-thumb -mno-thumb-interwork -mno-thumb -L/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib -Wl,-rpath-link,/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib
-Wl,-O1 ${TARGET_LINK_HASH_STYLE} '\''-DBOOST_PLATFORM_CONFIG="boost/config/platform/linux-gnueabi.hpp"'\''' -sGCC_INCLUDE_DIRECTORY=/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/include -sGCC_STDLIB_DIRECTORY=/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib -sNO_BZIP2=1 -sNO_ZLIB=1 '-sBUILD=release <optimization>space
<inlining>on <debug-symbols>off' '-sPYTHON_VERSION=${PYTHON_VERSION}'
--layout=system --builddir=/u/slug/slugos/tmp/work/armv5teb-linux-gnueabi/boost-1.36.0-r5/boost_1_36_0/armeb-linux-gnueabi --prefix=/usr --exec-prefix=/usr --libdir=/usr/lib --includedir=/usr/include
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
...patience...
...patience...
...patience...
...found 5258 targets...
...updating 765 targets...
MkDir1-quick-fix-for-unix bin.v2
MkDir1-quick-fix-for-unix bin.v2/libs
MkDir1-quick-fix-for-unix bin.v2/libs/math
MkDir1-quick-fix-for-unix bin.v2/libs/math/build
MkDir1-quick-fix-for-unix bin.v2/libs/math/build/gcc-4.3.1
MkDir1-quick-fix-for-unix bin.v2/libs/math/build/gcc-4.3.1/release MkDir1-quick-fix-for-unix
bin.v2/libs/math/build/gcc-4.3.1/release/threading-multi
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.3.1/release/threading-multi/acosh.o
armeb-linux-gnueabi-g++: : No such file or directory

    "armeb-linux-gnueabi-g++" "-march=armv5te" "-mtune=xscale"

"-mno-thumb-interwork" "-mno-thumb" "-mno-thumb-interwork" "-mno-thumb" "-L/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib" "-Wl,-rpath-link,/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib" "-Wl,-O1" "${TARGET_LINK_HASH_STYLE}" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/math/build/gcc-4.3.1/release/threading-multi/acosh.o" "libs/math/build/../src/tr1/acosh.cpp"

...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-4.3.1/release/threading-multi/acosh.o... ...removing bin.v2/libs/math/build/gcc-4.3.1/release/threading-multi/acosh.o gcc.compile.c++ bin.v2/libs/math/build/gcc-4.3.1/release/threading-multi/asinh.o armeb-linux-gnueabi-g++: : No such file or directory

#1 lore raw
Quoted 7 lines · Mike (mwester)

Boost 1.36.0 fails to build, do_compile log is below. In a nutshell, it seems to have lost the PATH variable. The 1.33.1 version builds just fine.

The compiler is present. The PATH is set correctly, it appears, from the run.do_compile file. So I can only presume that whatever "bjam" is, its resetting the PATH or something.

Quoted 5 lines

Nothing else has changed in the environment; 1.33.1 builds, 1.36.0 doesn't, and I have no idea what the heck this "bjam" stuff is or how to debug it.

Any suggestions? Does this work for anyone else?

It's been working on arm. And yes, the boost build system sucks :(

Philip

Quoted 74 lines

Mike (mwester)

-----------
+ bjam -sTOOLS=gcc '-sGCC=armeb-linux-gnueabi-gcc -march=armv5te

(quoted diff) +0 -4
-mtune=xscale -mno-thumb-interwork -mno-thumb -mno-thumb-interwork
-mno-thumb  -L/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib
-Wl,-rpath-link,/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib
-Wl,-O1 ${TARGET_LINK_HASH_STYLE}

'\''-DBOOST_PLATFORM_CONFIG="boost/config/platform/linux-gnueabi.hpp"'\''' '-sGXX=armeb-linux-gnueabi-g++ -march=armv5te -mtune=xscale

(quoted diff) +0 -4
-mno-thumb-interwork -mno-thumb -mno-thumb-interwork -mno-thumb
-L/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib
-Wl,-rpath-link,/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib
-Wl,-O1 ${TARGET_LINK_HASH_STYLE}

'\''-DBOOST_PLATFORM_CONFIG="boost/config/platform/linux-gnueabi.hpp"'\'''

(quoted diff) +0 -3
-sGCC_INCLUDE_DIRECTORY=/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/include
-sGCC_STDLIB_DIRECTORY=/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib
-sNO_BZIP2=1 -sNO_ZLIB=1 '-sBUILD=release <optimization>space

<inlining>on <debug-symbols>off' '-sPYTHON_VERSION=${PYTHON_VERSION}'
--layout=system --builddir=/u/slug/slugos/tmp/work/armv5teb-linux-gnueabi/boost-1.36.0-r5/boost_1_36_0/armeb-linux-gnueabi --prefix=/usr --exec-prefix=/usr --libdir=/usr/lib --includedir=/usr/include
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
...patience...
...patience...
...patience...
...found 5258 targets...
...updating 765 targets...
MkDir1-quick-fix-for-unix bin.v2
MkDir1-quick-fix-for-unix bin.v2/libs
MkDir1-quick-fix-for-unix bin.v2/libs/math
MkDir1-quick-fix-for-unix bin.v2/libs/math/build
MkDir1-quick-fix-for-unix bin.v2/libs/math/build/gcc-4.3.1
MkDir1-quick-fix-for-unix bin.v2/libs/math/build/gcc-4.3.1/release MkDir1-quick-fix-for-unix
bin.v2/libs/math/build/gcc-4.3.1/release/threading-multi
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.3.1/release/threading-multi/acosh.o
armeb-linux-gnueabi-g++: : No such file or directory

    "armeb-linux-gnueabi-g++" "-march=armv5te" "-mtune=xscale"

"-mno-thumb-interwork" "-mno-thumb" "-mno-thumb-interwork" "-mno-thumb" "-L/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib" "-Wl,-rpath-link,/u/slug/slugos/tmp/staging/armv5teb-linux-gnueabi/usr/lib" "-Wl,-O1" "${TARGET_LINK_HASH_STYLE}" -ftemplate-depth-128 -O3

(quoted diff) +0 -2
-finline-functions -Wno-inline -Wall -fPIC -pthread
-DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG  -I"." -c -o

"bin.v2/libs/math/build/gcc-4.3.1/release/threading-multi/acosh.o" "libs/math/build/../src/tr1/acosh.cpp"

...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-4.3.1/release/threading-multi/acosh.o... ...removing bin.v2/libs/math/build/gcc-4.3.1/release/threading-multi/acosh.o gcc.compile.c++ bin.v2/libs/math/build/gcc-4.3.1/release/threading-multi/asinh.o armeb-linux-gnueabi-g++: : No such file or directory

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw
Quoted 8 lines
Quoted 8 lines

Boost 1.36.0 fails to build, do_compile log is below. In a nutshell, it seems to have lost the PATH variable. The 1.33.1 version builds just fine.

The compiler is present. The PATH is set correctly, it appears, from the run.do_compile file. So I can only presume that whatever "bjam" is, its resetting the PATH or something.

Quoted 7 lines
Quoted 5 lines

Nothing else has changed in the environment; 1.33.1 builds, 1.36.0 doesn't, and I have no idea what the heck this "bjam" stuff is or how to debug it.

Any suggestions? Does this work for anyone else?

It's been working on arm. And yes, the boost build system sucks :(

It sucks so bad that it probably has slowed adoption of boost in many projects.

E

Signature · 3 lines
Erik Hovland
[email protected]
http://hovland.org/