[Boost-bugs] [Boost C++ Libraries] #12098: Tests fail with #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications...

Subject: [Boost-bugs] [Boost C++ Libraries] #12098: Tests fail with #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications...
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-25 19:12:42


#12098: Tests fail with #error "Compiler or options invalid; UNIX 03 and
POSIX.1-2001 applications...
-------------------------------------------+---------------------
 Reporter: Aparna Kumta <aparna.kumta@…> | Owner: andysem
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------------+---------------------
 Compiling with Oracle Solaris Studio12.5 several log several tests fail as
 follows:

 "CC" -std=c++11 -temp=/tmp/bn -xO4 -mt -erroff=%none -m32 -KPIC
 -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1 -DBOOST_CHRONO_DYN_LINK=1
 -DBOOST_DATE_TIME_DYN_LINK=1 -DBOOST_FILESYSTEM_DYN_LINK=1
 -DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_DLL
 -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_EVENT_LOG
 -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_SYSTEM_DYN_LINK=1
 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1
 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_POSIX
 -DBOOST_THREAD_USE_DLL=1 -DDATE_TIME_INLINE -DNDEBUG -D_XOPEN_SOURCE=600
 -D__EXTENSIONS__ -D__STDC_CONSTANT_MACROS -D__typeof__=__typeof__ -I".."
 -c -o "/export/home/sstrunk-
 tester/boost_regression/boost_regression_develop/boost_sparc-
 S2_cpp11/results/boost/bin.v2/libs/log/build/sun-12.5_cpp11/release/build-
 no/log-api-unix/threading-multi/once_block.o"
 "../libs/log/src/once_block.cpp"

 "/usr/include/sys/feature_tests.h", line 359: Error: #error "Compiler or
 options invalid; UNIX 03 and POSIX.1-2001 applications ?require the use of
 c99".

 See for example:
 http://www.boost.org/development/tests/develop/developer/output/oracle-
 sparc-S2-12-5-cpp11-boost-bin-v2-libs-log-test-attr_attribute_set-test-
 sun-12-5_cpp11-release-build-no-threading-multi.html

 The test passes, if '-D_XOPEN_SOURCE=600' is removed from the command
 line.
 So, inside libs/log/build/Jamfile.v2 removing the following line causes
 the compilation to succeed:

 <target-os>solaris:<define>_XOPEN_SOURCE=600


 Output after removing '-D_XOPEN_SOURCE=600'from the command line.

 $CC -std=c++11 -xO4 -mt -erroff=%none -m32 -KPIC -DBOOST_ALL_NO_LIB=1
 -DBOOST_ATOMIC_DYN_LINK=1 -DBOOST_CHRONO_DYN_LINK=1
 -DBOOST_DATE_TIME_DYN_LINK=1 -DBOOST_FILESYSTEM_DYN_LINK=1
 -DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_DLL
 -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_EVENT_LOG
 -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_SYSTEM_DYN_LINK=1
 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1
 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_POSIX
 -DBOOST_THREAD_USE_DLL=1 -DDATE_TIME_INLINE -DNDEBUG -D__EXTENSIONS__
 -D__STDC_CONSTANT_MACROS -D__typeof__=__typeof__ -I.. -c -o ./once_block.o
 ../libs/log/src/once_block.cpp

 $

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12098>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC