On 03/10/2015 15:21, Tim Blechmann wrote:
All tests for lockfree in both master and develop branch seem to fail. Error message is
"../boost/system/config.hpp", line 34: Error: #error Must not define both BOOST_SYSTEM_DYN_LINK and BOOST_SYSTEM_STATIC_LINK.
See develop branch: http://www.boost.org/development/tests/develop/developer/lockfree.html
See master branch: http://www.boost.org/development/tests/master/developer/lockfree.html
I looked at lockfree/test/Jamfile.v2 but am not sure what change needs to be made.
Any suggestions? boost lockfree's testsuite hasn't changed for a long time. i have no idea why the tests are failing, so something must have changed in boost.test.
Actually this *may* be a Boost.Build issue, test_exec_monitor has as a usage requirement: lib boost_test_exec_monitor : # sources $(TEST_EXEC_MON_SOURCES).cpp : # requirements <link>static : # default build : # usage-requirements <link>shared:<define>BOOST_TEST_DYN_LINK=1 ; And it's that <link>static that's causing the issue, if I build lockfree with: bjam link=static Then everything is fine. But otherwise there are errors inside Boost.System as both BOOST_SYSTEM_STATIC_LINK and BOOST_SYSTEM_DYN_LINK are getting defined. Anyone understand this? John.