|
Boost : |
From: William Kempf (williamkempf_at_[hidden])
Date: 2002-08-17 11:01:35
I'm having an unusual problem running the Boost.Threads tests
(libs/thread/test/Jamfile) using GCC. Here's the result of bjam using -d2:
---------
F:\Home\boost\libs\thread\test>bjam -sTOOLS=gcc -d2
...found 652 targets...
...updating 46 targets...
gcc-C++-action
..\..\..\libs\thread\test\bin\test_thread.exe\gcc\debug\runtime-l
ink-dynamic\threading-multi\test_thread.obj
f:\cygwin\usr\local\gcc-3.2/bin/g++ -c -Wall -ftemplate-depth-100 -g
-O0
-fno-inline -mthreads -I"..\..\..\libs\thread\test" -isystem
"F:\Home\boost"
-o
"..\..\..\libs\thread\test\bin\test_thread.exe\gcc\debug\runtime-link-dynami
c\threading-multi\test_thread.obj" "test_thread.cpp"
gcc-Link-action
..\..\..\libs\thread\test\bin\test_thread.exe\gcc\debug\runtime-
link-dynamic\threading-multi\test_thread.exe
f:\cygwin\usr\local\gcc-3.2/bin/g++ -g -o
"..\..\..\libs\thread\test\bin\
test_thread.exe\gcc\debug\runtime-link-dynamic\threading-multi\test_thread.exe"
-L"../../../libs/thread/build/bin/boost_threadmon.dll/gcc/debug/runtime-link-dy
namic/threading-multi" -L"f:/cygwin/usr/local/gcc-3.2/lib"
"..\..\..\libs\thre
ad\test\bin\test_thread.exe\gcc\debug\runtime-link-dynamic\threading-multi\test_
thread.obj"
"..\..\..\libs\thread\build\bin\libboost_thread.lib\gcc\debug\runti
me-link-dynamic\threading-multi\libboost_thread.lib"
"..\..\..\libs\test\build\b
in\libunit_test_framework.lib\gcc\debug\runtime-link-dynamic\threading-multi\lib
unit_test_framework.lib"
"..\..\..\libs\thread\build\bin\boost_threadmon.dll\gcc
\debug\runtime-link-dynamic\threading-multi\boost_threadmon.lib"
"..\..\..\libs
\thread\build\bin\libboost_thread.lib\gcc\debug\runtime-link-dynamic\threading-m
ulti\libboost_thread.lib"
"..\..\..\libs\test\build\bin\libunit_test_framework.l
ib\gcc\debug\runtime-link-dynamic\threading-multi\libunit_test_framework.lib"
".
.\..\..\libs\thread\build\bin\boost_threadmon.dll\gcc\debug\runtime-link-dynamic
\threading-multi\boost_threadmon.lib" -lboost_threadmon
Run
..\..\..\libs\thread\test\bin\test_thread.exe\gcc\debug\runtime-link-dynamic
\threading-multi\test_thread.exe
set
PATH=..\..\..\libs\thread\build\bin\boost_threadmon.dll\gcc\debug\ru
ntime-link-dynamic\threading-multi;%PATH%
..\..\..\libs\thread\test\bin\test_thread.exe\gcc\debug\runtime-link-dyn
amic\threading-multi\test_thread.exe
spawn: No such file or directory
---------
The surprising thing is that the executable was built correctly. In fact,
running the commands shown above manually I get expected results:
---------
F:\Home\boost\libs\thread\test>set
PATH=..\..\..\libs\thread\build\bin\boost_thr
eadmon.dll\gcc\debug\runtime-link-dynamic\threading-multi;%PATH%
F:\Home\boost\libs\thread\test>..\..\..\libs\thread\test\bin\test_thread.exe\gcc
\debug\runtime-link-dynamic\threading-multi\test_thread.exe
Running 3 test cases...
*** No errors detected
---------
The two VC toolsets don't result in this problem on the same box. Any ideas
as to what I'm doing wrong?
Bill Kempf
williamkempf_at_[hidden]
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk