Boost logo

Boost-Build :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-08-18 15:31:28


Whenever I try to launch bjam on my windows XP Home machine, I get the
stack-trace as copy-pasted at the bottom of this mail.

The problem seems to be that the make-NT at some point is called with an
empty argument (i.e. if I ECHO the arg, nothing is printed). Inside
make-NT path.join is called which can not handle an empty argument. Now
I saw that the make-UNIX rule tests for an empty argument but the
make-NT rule does not. So should make-NT not peform the same test as well?

Anyway I tried this, so I added to the beginning of make-NT:

ECHO "native in make-NT: " $(native) ;
if $(native) = ""
{
ECHO "OK, found the empty one, going to return" ;
return "." ;
}
ECHO "Ohoh, still continuing" ;

And indeed, the if-branch is choosen when $(native) is empty. But
apparantly bjam ignores the return statement in the if-branch and
continues after the if-block and thus still fails because of the empty
argument to path.join.

I must be missing soth., probably because it is already late but I would
appreciate if somebody can tell me what?

c:/cvstop/boost/tools/build/v2/util\path.jam:344: in make-NT
*** argument error
* rule path.join ( elements + )
* called with: ( )
* missing argument elements
c:/cvstop/boost/tools/build/v2/util\path.jam:152:see definition of rule
'path.join' being called
c:/cvstop/boost/tools/build/v2/util\path.jam:42: in path.make
c:/cvstop/boost/tools/build/v2/kernel\modules.jam:68: in modules.call-in
c:/cvstop/boost/tools/build/v2/util\sequence.jam:46: in sequence.transform
c:/cvstop/boost/tools/build/v2/tools\common.jam:169: in common.find-tool
c:/cvstop/boost/tools/build/v2/tools\common.jam:120: in
common.get-invocation-command
c:/cvstop/boost/tools/build/v2/tools\msvc.jam:80: in msvc.init
c:/cvstop/boost/tools/build/v2/build\toolset.jam:28: in using
c:\cvstop\user-config.jam:29: in modules.load
c:/cvstop/boost/tools/build/v2\build-system.jam:56: in load
c:\cvstop\boost\tools\build\v2/kernel\modules.jam:261: in import
c:\cvstop\boost\tools\build\v2/kernel/bootstrap.jam:120: in boost-build
C:\cvstop\femtown\boost-build.jam:1: in module scope

 


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