Boost logo

Boost Users :

Subject: [Boost-users] bjam with cross toolchain
From: Pascal Kesseli (pascal_kesseli_at_[hidden])
Date: 2010-01-08 20:05:08


Hi everyone

 

Currently, I am trying to get bjam compile boost using an embedded
toolchain. The toolchain runs on windows, but the target is a linux device.
The toolchain behaves more or less like a normal linux toolchian and I am
using msys to simulate the shell environment. Trying to compile boost
immediately issues the following errors:

 

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads
-Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED
-I"bin.v2\libs\math\build\gcc-3.3.2\debug\link-static\threading-multi\..\src
\tr1" -I"." -I"libs\math\src\tr1" -c -o
"bin.v2\libs\math\build\gcc-3.3.2\debug\link-static\threading-multi\ellint_2
f.o" "libs\math\build\..\src\tr1\ellint_2f.cpp"

 

...failed gcc.compile.c++
bin.v2\libs\math\build\gcc-3.3.2\debug\link-static\threading-multi\ellint_2f
.o...

gcc.compile.c++
bin.v2\libs\math\build\gcc-3.3.2\debug\link-static\threading-multi\ellint_3f
.o

cc1plus: error: invalid option `threads'

cc1plus: error: unrecognized option `-Winvalid-pch'

 

 

>From what I perceive here, I would say bjam tries to use the toolchain as a
MinGW toolchain. How can I tell boost to use Linux toolchain settings, so
use -pthread instead of -mthread and omit that strange "-Winvalid-pch"
parameter?

 

Thanks for any suggestions and best regards

Pascal

 



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net