Boost logo

Boost Testing :

From: Stephen W. Carson (StephenC_at_[hidden])
Date: 2005-03-30 10:57:08


So CodeWarrior on the Mac is failing roughly the same amount of
libraries as CodeWarrior on the PC, (23 out of 54 vs. 18 out of 55
respectively) . I assume then that the phase of getting the JAM script
correct for Mac CodeWarrior is mostly complete.

So what next? Just keep running the tests and hope that library authors
do something about the remaining failures?

For my own shop, we specifically use the following libraries on the Mac:
filesystem (fail)
smart_ptr
thread (fail)
tokenizer

So obviously, I have a particular interest in seeing filesystem and
thread move to green. Here is the status on those two libraries:

FILESYSTEM
-2 test cases failing out of 6.
-fstream_test, failing due to link error
    http://tinyurl.com/7xb4l

----------------------------------------------
    mwcc -maxerrors 5 -warnings on -maxwarnings 20 -nowraplines -g -search -prefix MSLCarbonPrefix.h "/Applications/Metrowerks CodeWarrior 9.0/Metrowerks CodeWarrior/MSL/MSL_C/MSL_MacOS/Src/console_OS_X.c" "-L/Users/stephencarson/Development/boost/results/bin/boost/libs/filesystem/build/libboost_filesystem.a/cw-9_3-darwin/debug" -framework "Carbon" -o "/Users/stephencarson/Development/boost/results/bin/boost/libs/filesystem/test/fstream_test.test/cw-9_3-darwin/debug/fstream_test" "/Users/stephencarson/Development/boost/results/bin/boost/libs/filesystem/test/fstream_test.test/cw-9_3-darwin/debug/fstream_test.o" "/Users/stephencarson/Development/boost/results/bin/boost/libs/filesystem/build/libboost_filesystem.a/cw-9_3-darwin/debug/libboost_filesystem-cw93-d-1_32.a"

   Error : undefined: 'std::ctype<int>::ctype(unsigned long)' (code)
           Referenced from 'const std::ctype<int>& std::__use_facet<std::ctype<int> >(const std::locale&, std::__chooser<(__bool8)1>)' in fstream_test.cpp
   Error : undefined: 'std::ctype<int>::id' (non lazy ptr IL)
           Referenced from 'const std::ctype<int>& std::__use_facet<std::ctype<int> >(const std::locale&, std::__chooser<(__bool8)1>)' in fstream_test.cpp
   Error : undefined: 'std::codecvt<int, char, int>::codecvt(unsigned long)' (code)
           Referenced from 'const std::codecvt<int, char, int>& std::__use_facet<std::codecvt<int, char, int> >(const std::locale&, std::__chooser<(__bool8)1>)' in fstream_test.cpp
   Error : undefined: 'std::codecvt<int, char, int>::id' (non lazy ptr IL)
           Referenced from 'const std::codecvt<int, char, int>& std::__use_facet<std::codecvt<int, char, int> >(const std::locale&, std::__chooser<(__bool8)1>)' in fstream_test.cpp

Errors caused tool to abort.
   Error : linker '/usr/bin/mwld' returned with exit code 1

----------------------------------------------

-operations_test is failing on a test case
    http://tinyurl.com/44gpq

----------------------------------------------
Platform is POSIX
minimal.hpp(122): exception "std::exception: boost::filesystem::current_path: "": No error detected" caught in function: 'main(int, char **)'

**** Testing aborted.
**** 1 error detected

EXIT STATUS: 201

----------------------------------------------

THREAD
-All test cases are failing for CodeWarrior 9 on Mac AND PC. (I note that CodeWarrior 8 on PC is passing though).
-On the Mac, the build fails with this:
        http://tinyurl.com/5rhgm
----------------------------------------------
    mwcc -c -lang c++ -DBOOST_THREAD_LIB_NAME=boost_thread -DBOOST_THREAD_BUILD_LIB=1 -maxerrors 5 -warnings on -maxwarnings 20 -nowraplines -g -O0 -inline off -cwd include -warnings nounused -RTTI on -iso_templates on "-I/Users/stephencarson/Development/boost/results/bin/boost/libs/thread/build" -I- "-I/Users/stephencarson/Development/boost/boost" -prefix "MSLCarbonPrefix.h" -o "/Users/stephencarson/Development/boost/results/bin/boost/libs/thread/build/libboost_thread.a/cw-9_3-darwin/debug/xtime..o" "/Users/stephencarson/Development/boost/boost/libs/thread/build/../src/xtime.cpp"

   Error : preprocessor #error directive
../libs/thread/src/xtime.cpp line 142?# error "xtime_get implementation undefined"
----------------------------------------------
-On the PC, there also seems to be a build error though I can't see what it is looking through the test results.
        http://tinyurl.com/5x5qj

So, any thoughts on how to continue moving forward?
Figuring out why the thread library won't build seems promising though I don't know what to make of the error it is getting.

Thanks!

-- 
Stephen W. Carson, Software Engineer
DirXion Software in St. Louis, MO
(636) 717-2367
"Premature optimization is the root of all evil." -Donald Knuth 

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