Boost logo

Boost-Build :

Subject: [Boost-build] cxxflags and Intel toolset
From: mm (mmoorkamp_at_[hidden])
Date: 2009-02-06 05:57:00


Hi,

I am using bjam and boost-build bundled with ubuntu 08/10: Boost.Build
V2 (Milestone 12), Boost.Jam 03.1.16

It appears to me that cxxflags arguments are not passed properly to the
compiler, i.e. this command line

bjam -d+2 cxxflags=" -openmp" --toolset=intel

results in compilation statements like

"icpc" -c -xc++ -O0 -g -fPIC -Ob0 -w1 -pthread
-I"/usr/local/R-2.6.2/include" -I"/usr/local/cuda/include"
-I"/usr/local/include" -I"Gravity/boost" -I"Inversion" -I"ModelBase" -c
-o
"Gravity/bin/intel-linux/debug/threading-multi/WaveletCompressedGravityCalculator.o"
"Gravity/WaveletCompressedGravityCalculator.cpp"

also my Jamroot contains

project
    : requirements <include>/usr/local/include
<include>/usr/local/R-2.6.2/include
        <include>/usr/local/cuda/include
        <threading>multi
        <variant>release:<define>NDEBUG
        <toolset>gcc:<cflags>" -ansi -fopenmp "
        <toolset>gcc:<linkflags>" -fopenmp "
        <toolset>intel:<cxxflags>" -strict-ansi -openmp"
    ;

and I can see neither -strict-ansi nor -openmp in the compilation. It
works with gcc

Am I doing something wrong ? Is it a known problem (I haven't seen it on
the list) ? Is it fixed in the latest release ?

Thanks for any help

Max


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