Boost logo

Boost-Build :

From: Martin Wille (mw8329_at_[hidden])
Date: 2003-08-15 13:25:37


Hi,

while I was trying to identify a bug in Boost.Test I stumbled
across some odd behaviour of Boost.Build.

I ran the regression tests for como-4.3.3beta8 using the command
bjam -sTOOLS=... -sBUILD="<define>_POSIX_SOURCE" --dump-tests test
in the status directory.

However, apparently, -D_POSIX_SOURCE isn't used for all
invokations of como-C++-action; the commandline used for
compiling execution_monitor.cpp is:

/usr/local/como-4.3.3beta8/bin/como -tused -c --no_inlining -O0 -g
--exceptions -I"../libs/test/build" -I"/home/boost-head-comeau/boost"
-o
"../libs/test/build/bin/libboost_test_exec_monitor.a/como-4.3.3beta8-libcomobeta29/debug/execution_monitor.o"
"../libs/test/build/../src/execution_monitor.cpp"

The commandline used for compiling cregex.cpp is:
/usr/local/como-4.3.3beta8/bin/como -tused -c
-DBOOST_REGEX_CONFIG_INFO=1 -DBOOST_REGEX_DYN_LINK=1
-DBOOST_REGEX_NO_LIB=1 --no_inlining -O0 -g --exceptions
-I"../libs/regex/build" -I"/home/boost-head-comeau/boost" -o
"../libs/regex/build/bin/libboost_regex.so/como-4.3.3beta8-libcomobeta29/debug/cregex.o"
"../libs/regex/build/../src/cregex.cpp"

However, other source files are compiled with -D_POSIX_SOURCE, e.g.:
/usr/local/como-4.3.3beta8/bin/como -tused -c -D_POSIX_SOURCE
--no_inlining -O0 -g --exceptions -I"../libs/math/test"
-I"/home/boost-head-comeau/boost" -o
"../libs/math/test/bin/octonion_test.test/como-4.3.3beta8-libcomobeta29/debug/octonion_test.o"
"../libs/math/test/../octonion/octonion_test.cpp"

The Jamfile used for regex uses <define> itself. I can imagine
that this interferes with the <define> on the commandline.

However, I'm clueless why execution_monitor.cpp is compiled without
any define.

Is this a bug or am I missing something?

Regards,
m

PS: como-tools.jam doesn't show any copyright or license text.

PPS: m should be added to FINDLIBS in como-tools.jam, IMHO. I think
I mentioned that when I sent my version of that file to you, Jens.

 


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