Boost logo

Boost-Build :

From: Robert Ramey (ramey_at_[hidden])
Date: 2007-08-09 13:54:40


While chasing down behavior I didn't understand in process_jam_log I had
occasion to just run the test scripts in tools/regression/test.

I got an assertion in process_jam_log here:

void stop_message( const string & action_name,
const string & target_directory,
const string & result,
const string & timestamp,
const string & content )
// the only valid action_names are "compile", "link", "run", "lib"
{
// My understanding of the jam output is that there should never be
// a stop_message that was not preceeded by a matching start_message.
// That understanding is built into message_manager code.
assert( m_action_name == action_name );
assert( m_target_directory == target_directory );
assert( result == "succeed" || result == "fail" );

below is the bjam.log data.

In perusing the code, it seems to me that a "stop" message is being
emitted for which there is no corresponding "start" message. Here
is what I believe is the relevant code:

Inspecting the code in cpp_main around line 604 and comparing
it with the relevant section of bjam.log below, it seems to me
that the mgr.start function will never get called on this input
and that is what is causing the assertion above.

So my question is: What should I do about this. I can tweak
something in this program to make it pass. But given that its
dependent on output from bjam - I'm reluctant to do this.

Robert Ramey

Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
warning: No toolsets are configured.
warning: Configuring default toolset "msvc".
warning: If the default is wrong, you may not be able to build C++ programs.
warning: Use the "--toolset=xxxxx" option to override our guess.
warning: For more configuration options, please consult
warning:
http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html
boost-test(RUN) "/C:/Boost134/tools/regression/test/run~warn" :
"tools/regression/test/run~warn.cpp"
boost-test(RUN) "/C:/Boost134/tools/regression/test/run~warn-note" :
"tools/regression/test/run~warn-note.cpp"
boost-test(RUN) "/C:/Boost134/tools/regression/test/run~pass" :
"tools/regression/test/run~pass.cpp"
boost-test(RUN) "/C:/Boost134/tools/regression/test/run~note" :
"tools/regression/test/run~note.cpp"
boost-test(RUN) "/C:/Boost134/tools/regression/test/run~fail" :
"tools/regression/test/run~fail.cpp"
boost-test(RUN_FAIL) "/C:/Boost134/tools/regression/test/run-fail~pass" :
"tools/regression/test/run-fail~pass.cpp"
boost-test(RUN_FAIL) "/C:/Boost134/tools/regression/test/run-fail~fail" :
"tools/regression/test/run-fail~fail.cpp"
boost-test(RUN_FAIL) "/C:/Boost134/tools/regression/test/run-fail~fail-warn"
: "tools/regression/test/run-fail~fail-warn.cpp"
boost-test(RUN_FAIL)
"/C:/Boost134/tools/regression/test/run-fail~compile-fail" :
"tools/regression/test/run-fail~compile-fail.cpp"
boost-test(COMPILE) "/C:/Boost134/tools/regression/test/compile~warn" :
"tools/regression/test/compile~warn.cpp"
boost-test(COMPILE) "/C:/Boost134/tools/regression/test/compile~pass" :
"tools/regression/test/compile~pass.cpp"
boost-test(COMPILE) "/C:/Boost134/tools/regression/test/compile~fail" :
"tools/regression/test/compile~fail.cpp"
boost-test(COMPILE_FAIL)
"/C:/Boost134/tools/regression/test/compile-fail~pass" :
"tools/regression/test/compile-fail~pass.cpp"
boost-test(COMPILE_FAIL)
"/C:/Boost134/tools/regression/test/compile-fail~fail" :
"tools/regression/test/compile-fail~fail.cpp"
...found 154 targets...
...using 3 temp targets...
...updating 18 targets...
compile-c-c++
..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test\msvc-7.1\debug\link-static\compile-fail~fail.obj
compile-fail~fail.cpp
call "C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\vcvars32.bat" >nul
cl /Zm800 -nologo
@"..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test\msvc-7.1\debug\link-static\compile-fail~fail.obj.rsp"
...failed compile-c-c++
..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test\msvc-7.1\debug\link-static\compile-fail~fail.obj...
...removing
..\..\..\bin.v2\tools\regression\test\compile-fail~fail.test\msvc-7.1\debug\link-static\compile-fail~fail.obj
compile-c-c++
..\..\..\bin.v2\tools\regression\test\compile~fail.test\msvc-7.1\debug\link-static\compile~fail.obj
compile~fail.cpp
compile~fail.cpp(9) : fatal error C1189: #error : example of a compile
failure
...


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk