Opened 7 years ago
Closed 4 years ago
#11972 closed Bugs (worksforme)
thousands multi-thread tests fail after -mt, _REENTRANT elimination in Oracle Studio 12.5 C++
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | config |
Version: | Boost 1.60.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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
defined(_PTHREADS) | defined(APPLE) | defined(DragonFly)) \ |
change to
defined(_PTHREADS) | defined(APPLE) | defined(DragonFly) | (defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0))) \ |
Change History (3)
comment:1 by , 7 years ago
Component: | None → config |
---|---|
Owner: | set to |
comment:3 by , 4 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I mentioned this in the PR, but there's something wrong here: