|
Boost Testing : |
Subject: [Boost-testing] [XL C/C++][IBM_Canada_Ltd][serialization][multi_index] strange error with boost/serialization/force_include.hpp
From: joaquin_at_[hidden]
Date: 2009-03-30 10:48:27
Hi,
Currently, a serialization test for Boost.MultiIndex is failing for XL
C/C++ at
IBM_Canada_Ltd regression runner:
Compile [2009-03-29 15:21:08 UTC]: fail
xlC -c -DBOOST_ALL_NO_LIB=1 -qcpluscmt -qNOOPTimize
-qnoinline -g -qfullpath -qfuncsect -qeh -qrtti -I".." -o
"/nfs/sparky/home/montana/boost_NEW/boost-CVS/101.aix/results/boost/bin.v2/libs/
multi_index/test/test_serialization.test/vacpp/debug/test_serialization1.o"
"../libs/
multi_index/test/test_serialization1.cpp"
[...]
"../boost/archive/detail/oserializer.hpp", line 162.52: 1540-0063 (S)
The text "__attribute__" is unexpected.
(see http://tinyurl.com/ce66ny )
The problem lies in boost/serialization/force_include.hpp, which,
for reasons unbeknownst to me, defines BOOST_USED as the
compiler-specific qualifier __attribute__ ((used)). Looking at the
code for force_include.hpp (http://tinyurl.com/cpk7ux ) seems
like this definition of BOOST_USED can only take place if
either __GNUC__ or __INTEL_COMPILER is defined, which
does not seem to be the case here.
Any clues? Thank you in advance,
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo