Subject: [Boost-bugs] [Boost C++ Libraries] #11972: thousands multi-thread tests fail after -mt, _REENTRANT elimination in Oracle Studio 12.5 C++
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-10 01:17:41
#11972: thousands multi-thread tests fail after -mt, _REENTRANT elimination in
Oracle Studio 12.5 C++
--------------------------+------------------------------
Reporter: angela.xie@⦠| Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.60.0
Severity: Problem | Keywords:
--------------------------+------------------------------
Problem:thousands multi-thread tests fail after -mt, _REENTRANT
elimination in Oracle Studio 12.5 C++.
for example: atomic shared library build,
CC lockpool.cpp -KPIC -G -o ../libboost_atomic.so -DBOOST_ALL_NO_LIB=1
-DNDEBUG -I. -mt -DBOOST_ATOMIC_SOURCE -DBOOST_ATOMIC_DYN_LINK=1 -compat=5
-library=stlport4 -m32 ...
"lockpool.cpp", line 24: Error: #error Boost.Atomic: Unsupported target
platform, POSIX threads are required when native atomic operations are not
available.
Solution:
in boost/config/suffix.hpp
26:#ifndef BOOST_CONFIG_SUFFIX_HPP
27:#define BOOST_CONFIG_SUFFIX_HPP
change to
25:#include <unistd.h>
26:#ifndef BOOST_CONFIG_SUFFIX_HPP
27:#define BOOST_CONFIG_SUFFIX_HPP
250: || defined(_PTHREADS) || defined(__APPLE__) ||
defined(__DragonFly__)) \
change to
250: || defined(_PTHREADS) || defined(__APPLE__) ||
defined(__DragonFly__) || (defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >=
0))) \
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11972> 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