Boost logo

Boost Testing :

From: David Abrahams (dave_at_[hidden])
Date: 2007-10-24 16:06:40


This failure

http://beta.boost.org/development/tests/trunk/developer/output/Caleb%20Epstein%20SunOS-5-10-boost-bin-v2-libs-python-test-exec-test-gcc-4-1-2_sunos_i86pc-debug-debug-symbols-off-thrd-api-pthread_release.html

is rather baffling. It seems to be reporting that the system library
librt can't be found, and yet librt is used in a great many tests that
*don't* fail. I downloaded
ftp://fx.meta-comm.com/boost-regression/trunk/Caleb%20Epstein%20SunOS-5.10.zip
and looked. Here's an example of a link command that worked:

  "/openpkg/bin/g++" -o "/home/cae/boost-regression/svn-trunk/results/boost/bin.v2/libs/parameter/test/python_test.test/gcc-4.1.2_sunos_i86pc/debug/debug-symbols-off/thrd-api-pthread/python_test_ext.so" -Wl,-h -Wl,python_test_ext.so -shared -Wl,--start-group "/home/cae/boost-regression/svn-trunk/results/boost/bin.v2/libs/parameter/test/python_test.test/gcc-4.1.2_sunos_i86pc/debug/debug-symbols-off/thrd-api-pthread/python_test.o" "/home/cae/boost-regression/svn-trunk/results/boost/bin.v2/libs/python/build/gcc-4.1.2_sunos_i86pc/debug/debug-symbols-off/thrd-api-pthread/libboost_python-gcc41-d-1_35.so.1.35.0" -Wl,-Bstatic -Wl,-Bdynamic -lrt -ldl -Wl,--end-group -Wl,--strip-all
and here's the one that failed:

  "/openpkg/bin/g++" -L"/openpkg/lib" -L"/openpkg/lib/python2.5/config" -Wl,-R -Wl,"/openpkg/lib" -Wl,-R -Wl,"/openpkg/lib/python2.5/config" -o "/home/cae/boost-regression/svn-trunk/results/boost/bin.v2/libs/python/test/exec.test/gcc-4.1.2_sunos_i86pc/debug/debug-symbols-off/thrd-api-pthread/exec" -Wl,--start-group "/home/cae/boost-regression/svn-trunk/results/boost/bin.v2/libs/python/test/exec.test/gcc-4.1.2_sunos_i86pc/debug/debug-symbols-off/thrd-api-pthread/exec.o" "/home/cae/boost-regression/svn-trunk/results/boost/bin.v2/libs/python/build/gcc-4.1.2_sunos_i86pc/debug/debug-symbols-off/link-static/thrd-api-pthread/libboost_python-gcc41-d-1_35.a" -Wl,-Bstatic -lrt -ldl -Wl,-Bdynamic -lpython2.5 -lrt -ldl -Wl,--end-group -Wl,--strip-all

  /openpkg/bin/ld: cannot find -lrt

I guess I've forgotten lots about the way the GCC link command line
works, but if I'm reading it right, the successful link command seems
to be asking for a dynamic librt and the failing one seems to be
asking for a static librt.

Can anyone confirm that's what I'm seeing? Caleb, could you try to
manually issue the 2nd link command, first replacing

  -Wl,-Bstatic -lrt -ldl

with

  -Wl,-Bdynamic -lrt -ldl

Can anyone explain why BB would be doing these two things differently?

Thanks in advance,

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost-testing list run by mbergal at meta-comm.com