Boost logo

Boost :

Subject: [boost] Boost.test failures in develop
From: Aparna Kumta (aparna.kumta_at_[hidden])
Date: 2015-09-30 23:35:06


Compiling with Oracle Solaris Studio on sparc-S2 platform with
-library=stlport4, I see the following failure in the develop branch:

"CC" -library=stlport4 -xO4 -mt -erroff=%none -m32 -KPIC
-DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_SYSTEM_DYN_LINK=1
-DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_TEST_DYN_LINK=1
-DBOOST_TIMER_DYN_LINK=1 -DNDEBUG -D__typeof__=__typeof__ -I".." -c -o
"/export/home/b_dev/results/boost/bin.v2/libs/test/build/sun/release/stdlib-sun-stlport/threading-multi/unit_test_parameters.o"
"../libs/test/src/unit_test_parameters.cpp"

"../boost/test/utils/runtime/errors.hpp", line 75: Error: Templates can
only declare classes or functions.
"../boost/test/utils/runtime/errors.hpp", line 86: Error: Templates can
only declare classes or functions.
"../boost/test/utils/runtime/errors.hpp", line 124: Error: ")" expected
instead of "&&".
"../boost/test/utils/runtime/errors.hpp", line 133: Error: ")" expected
instead of "&&".
"../boost/test/utils/named_params.hpp", line 69: Error: Unexpected type
name "Rest" encountered.
"../boost/test/utils/named_params.hpp", line 69: Error: Unexpected ":"
found.
"../boost/test/utils/named_params.hpp", line 205: Error: Unexpected type
name "Rest" encountered.
"../boost/test/utils/named_params.hpp", line 205: Error: operator, is
not defined.
"../boost/test/utils/named_params.hpp", line 205: Error: "," expected
instead of ";".
...
Compilation aborted, too many Error messages.

It seems that the code contains rvalue reference and hence the compiler
is not able to build it in C++03 mode.

This seems to be a recent change preventing building of
libboost_unit_test_framework.a and hence causing several tests to fail.

Thanks,

Aparna


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk