Boost logo

Boost-Build :

Subject: [Boost-build] Won't build - Hello example fails
From: Christopher Pisz (cpisz_at_[hidden])
Date: 2011-03-14 12:57:03


It is my 4th day on a new job. They are using boost and evidently build
it into a library, thus my question to this group.

Everyone else seems to build without a hitch, but for some reason mine
fails. I tracked it down to a custom build action in one of the Visual
Studio 2008 projects, that is part of the solution I am working on, that
looks like this:

cd ..\boost
SET PATH=$(PATH);..\bjam
bjam.exe --stagedir=./ --with-thread toolset=msvc-9.0 link=static
threading=multi runtime-link=shared variant=debug stage
bjam.exe --stagedir=./ --with-date_time toolset=msvc-9.0 link=static
threading=multi runtime-link=shared variant=debug stage
bjam.exe --stagedir=./ --with-system toolset=msvc-9.0 link=static
threading=multi runtime-link=shared variant=debug stage
bjam.exe --stagedir=./ --with-regex toolset=msvc-9.0 link=static
threading=multi runtime-link=shared variant=debug stage
bjam.exe --stagedir=./ --with-program_options toolset=msvc-9.0
link=static threading=multi runtime-link=shared variant=debug stage
bjam.exe --stagedir=./ --with-filesystem toolset=msvc-9.0 link=static
threading=multi runtime-link=shared variant=debug stage

I tried manually entering the commands at the command line and the very
first call to bjam.exe fails

Additionally, I started reading the Boost.Build manual that came with
their version of boost and the same error occurs when I try the "hello"
example.

I can't figure out how or where from it is getting the path
'C:\DOCUME~1\cpisz\Local', but obviously it is not interpreting the
space in "local settings" as part of the path. When I look at the build
log on my peer's machines, they have a path of the
"C:\DOCUME~1\user\LOCALSE~1" type. They have the ~1 and double quotes
while I don't. Where is this path coming from?

My output looks like this:

C:\Perforce\TSS\vendor\boost\tools\build\v2\example\hello>bjam
...found 11 targets...
...updating 7 targets...
common.mkdir bin
'C:\DOCUME~1\cpisz\Local' is not recognized as an internal or external
command, operable program or batch file.

         if not exist "bin\\" mkdir "bin"

...failed common.mkdir bin...
...skipped bin\msvc-10.0 for lack of bin...
...skipped bin\msvc-10.0\debug for lack of bin\msvc-10.0...
...skipped bin\msvc-10.0\debug\threading-multi for lack of
bin\msvc-10.0\debug..
.
...skipped <pbin\msvc-10.0\debug\threading-multi>hello.obj for lack of
bin\msvc-
10.0\debug\threading-multi...
...skipped <pbin\msvc-10.0\debug\threading-multi>hello.exe for lack of
bin\msvc-
10.0\debug\threading-multi...
...skipped <pbin\msvc-10.0\debug\threading-multi>hello.pdb for lack of
bin\msvc-
10.0\debug\threading-multi...
...failed updating 1 target...
...skipped 6 targets...


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