Boost logo

Boost Users :

Subject: [Boost-users] Compiling Boost 1.55.0 with Intel 14.0.1 and libstdc++ from GCC 4.8.1
From: Maxime Boissonneault (maxime.boissonneault_at_[hidden])
Date: 2013-11-13 13:20:14


Hi,
I am attempting to build Boost 1.55.0 with Intel compiler 14.0.1, using
the Standard C++ Library provided by GCC 4.8.1

I am having a lot of errors with "fenv".

Here is a subset of those errors, with one particular object that is
being built by the build script. The offending command line is
"icpc" -c -xc++ -w1 -inline-level=2 -O3 -ip -fPIC -DBOOST_ALL_NO_LIB=1
-DBOOST_DATE_TIME_DYN_LINK=1 -DBOOST_FILESYSTEM_DYN_LINK=1
-DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_DLL -DBOOST_LOG_NO_THREADS
-DBOOST_LOG_USE_AVX2 -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_USE_SSSE3
-DBOOST_LOG_WITHOUT_EVENT_LOG -DBOOST_SPIRIT_USE_PHOENIX_V3=1
-DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_THREAD_DONT_USE_CHRONO=1
-DDATE_TIME_INLINE -DNDEBUG -I"." -c -o
"bin.v2/libs/log/build/intel-linux/release/log-api-unix/named_scope_format_parser.o"
"libs/log/src/named_scope_format_parser.cpp"

Errors are such as :
In file included from ./boost/math/tools/promotion.hpp(26),
                  from
./boost/math/special_functions/detail/round_fwd.hpp(12),
                  from ./boost/math/special_functions/math_fwd.hpp(26),
                  from ./boost/math/special_functions/fpclassify.hpp(19),
                  from ./boost/spirit/home/support/detail/sign.hpp(22),
                  from
./boost/spirit/home/karma/numeric/detail/numeric_utils.hpp(22),
                  from ./boost/spirit/home/karma/numeric/uint.hpp(33),
                  from ./boost/spirit/include/karma_uint.hpp(16),
                  from libs/log/src/named_scope_format_parser.cpp(22):
./boost/math/tools/config.hpp(309): error: identifier "fexcept_t" is
undefined
         fexcept_t m_flags;
         ^

In file included from ./boost/math/tools/promotion.hpp(26),
                  from
./boost/math/special_functions/detail/round_fwd.hpp(12),
                  from ./boost/math/special_functions/math_fwd.hpp(26),
                  from ./boost/math/special_functions/fpclassify.hpp(19),
                  from ./boost/spirit/home/support/detail/sign.hpp(22),
                  from
./boost/spirit/home/karma/numeric/detail/numeric_utils.hpp(22),
                  from ./boost/spirit/home/karma/numeric/uint.hpp(33),
                  from ./boost/spirit/include/karma_uint.hpp(16),
                  from libs/log/src/named_scope_format_parser.cpp(22):
./boost/math/tools/config.hpp(301): error: identifier "FE_INVALID" is
undefined
            fegetexceptflag(&m_flags, FE_ALL_EXCEPT);

I have the following set
export CPLUS_INCLUDE_PATH=/software6/compilers/gcc/4.8.1/include/c++/4.8.1/

if I unset CPLUS_INCLUDE_PATH, this specific object compiles fine (with
warnings, but no error).

Does anyone have an idea of weither this is a bug with Intel compiler or
with Boost ?

Best regards,

-- 
---------------------------------
Maxime Boissonneault
Analyste de calcul - Calcul Québec, Université Laval
Ph. D. en physique

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