Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-11-14 21:46:40


Deane Yang wrote:
> I'm finally trying to learn how to use bjam, but it's not working.
>
> I'm using:
> VC++ Express 2005
> Now I do the following:
> 1) Open up vsvars32.bat
> 2) Chdir to boost/tools/build/v2/example/hello
> 3) Run "bjam --v2" (the "--v2" is not needed, right?)

You don't need to run vcvars32.bat to use VC with bjam - it will call
the correct version of vcvars32.bat automatically. The "--v2" is needed
within the Boost tree to inform Boost to use Boost.Build version 2 and
the Jamfile.v2 files.

> The resulting output is shown below. Note that the file
> "bin\msvc-8.0\debug\hello.obj.rsp" does in fact exist after running bjam.

Hmm.

> msvc.compile.c++ bin\msvc-8.0\debug\hello.obj
> cl : Command line error D8022 : cannot open
> 'bin\msvc-8.0\debug\hello.obj.rsp'
>
> call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
> x86 >nul
> cl /Zm800 -nologo -TP /Z7 /Od /Ob0 /W4 /GR /MDd /Zc:forScope
> /Zc:wchar_t /Wp64 /wd4675 /EHs @"bin\msvc-8.0\debug\hello.obj.rsp" -c
> -Fo"bin\msvc-8.0\debug\hello.obj"
>
> ...failed msvc.compile.c++ bin\msvc-8.0\debug\hello.obj...

Ok. The RSP file is being generated. Your version of bjam is outputting
the response file name in the @"..." correctly, so bjam doesn't appear
to be the problem. Like Rene, I have tried this with VC8 (using a VC8
bjam built via jam_src/build.jam and VC8 Professional) and got:

bash-2.05b$ pwd
/cygdrive/f/devel/drop/boost/tools/build/v2/example/hello
bash-2.05b$ bjam --v2 msvc-8.0
...found 9 targets...
...updating 4 targets...
MkDir1 bin\msvc-8.0
MkDir1 bin\msvc-8.0\debug
msvc.compile.c++ bin\msvc-8.0\debug\hello.obj
hello.cpp
msvc.link bin\msvc-8.0\debug\hello.exe
...updated 4 targets...
bash-2.05b$ bjam --version
Boost.Build V2 (Milestone 10)
Boost.Jam 03.1.12

Can you try:
1. Executing the cl command above directly
2. Moving hello.obj.rsp to the current directory then replacing @"..."
with @"hello.obj.rsp"
3. Try @".\bin\msvc-8.0\debug\hello.obj.rsp"

My guess is that it is a VC Express issue. Does anyone else have VC
Express installed to reproduce this?

- Reece


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