|
Boost-Build : |
Subject: Re: [Boost-build] Difficulty configuring boost.build for MSVC 9.0
From: Ian Emmons (iemmons_at_[hidden])
Date: 2008-12-21 15:09:14
On Dec 20, 2008, at 1:49 PM, Steven Watanabe wrote:
> AMDG
>
> Ian Emmons wrote:
>> <snip>
>>
>> However, when I try the analogous configuration for Visual Studio
>> 2008 (msvc-9.0), bad things happen:
>>
>> using msvc
>> : 9.0
>> : # no c++ compile command
>> : # no features
>> ;
>>
>> Specifically, bjam issues the command "cl" without previously
>> invoking the setup script, and so "cl" isn't on the path, and
>> therefore fails. I get the same result when I explicitly specify
>> the setup script:
>>
>> using msvc
>> : 9.0
>> : # no c++ compile command
>> : <setup>"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC
>> \vcvarsall.bat"
>> ;
>>
>> Any idea what I'm doing wrong here?
>
> What does bjam print when you run it with --debug-configuration?
>
> In Christ,
> Steven Watanabe
Below I have pasted in the output from this command:
bjam toolset=msvc-9.0 address-model=32 variant=debug --debug-
configuration
I see that it is indeed using the site-config.jam and user-config.jam
that I want it to. My user-config.jam looks like this:
using msvc
: 9.0
: # no c++ compile command
: <setup>"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC
\vcvarsall.bat"
;
using msvc
: 8.0
: # no c++ compile command
: # no features
;
using msvc
: 7.1
: # no c++ compile command
: # no features
;
Note that all three versions of Visual Studio are installed in their
default locations:
C:\Program Files (x86)\Microsoft Visual Studio .NET 2003
C:\Program Files (x86)\Microsoft Visual Studio 8
C:\Program Files (x86)\Microsoft Visual Studio 9.0
Also note that these locations are all under "C:\Program Files (x86)"
because the Windows box is running 64-bit Vista.
Thanks,
Ian
=================================
notice: found boost-build.jam at D:/bin/boost-build/boost-build.jam
notice: loading Boost.Build from D:/bin/boost-build/kernel
notice: searching "C:\Windows" "P:\" "D:\WinSW\bin" "C:\Users\iemmons"
"D:\bin\boost-build\kernel" "D:\bin\boost-build" "D:/bin/boost-build/
kernel" "D:/bin/boost-build/util" "D:/bin/boost-build/build" "D:/bin/
boost-build/tools" "D:/bin/boost-build/new" "D:/bin/boost-build/." for
"site-config.jam"
notice: loading site-config.jam from D:/WinSW/bin/site-config.jam
notice: searching "P:\" "D:\WinSW\bin" "C:\Users\iemmons" "D:\bin
\boost-build\kernel" "D:\bin\boost-build" "D:/bin/boost-build/kernel"
"D:/bin/boost-build/util" "D:/bin/boost-build/build" "D:/bin/boost-
build/tools" "D:/bin/boost-build/new" "D:/bin/boost-build/." for "user-
config.jam"
notice: loading user-config.jam from D:/WinSW/bin/user-config.jam
notice: msvc-8.0 detected, command: 'C:\Program Files (x86)\Microsoft
Visual Studio 8\VC\bin\cl.exe'
notice: msvc-7.1 detected, command: 'C:\Program Files (x86)\Microsoft
Visual Studio .NET 2003\Vc7\bin\cl.exe'
warning: toolset msvc initialization: can't find tool cl.exe
warning: initialized from
msvc: condition: '<toolset>msvc-9.0/<architecture>/<address-model>',
msvc: condition: '<toolset>msvc-9.0/<architecture>/<address-
model>32', msvc: condition: '<toolset>msvc-9.0/<architecture>x86/
<address-model>', msvc: condition: '<toolset>msvc-9.0/
<architecture>x86/<address-model>32', command: ''
msvc: condition: '<toolset>msvc-8.0/<architecture>/<address-model>',
msvc: condition: '<toolset>msvc-8.0/<architecture>/<address-
model>32', msvc: condition: '<toolset>msvc-8.0/<architecture>x86/
<address-model>', msvc: condition: '<toolset>msvc-8.0/
<architecture>x86/<address-model>32', command: 'call "C:\Program
Files (x86)\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 >nul'
msvc: condition: '<toolset>msvc-8.0/<architecture>/<address-
model>64', msvc: condition: '<toolset>msvc-8.0/<architecture>x86/
<address-model>64', command: 'call "C:\Program Files (x86)\Microsoft
Visual Studio 8\VC\vcvarsall.bat" x86_amd64 >nul'
msvc: condition: '<toolset>msvc-8.0/<architecture>ia64/<address-
model>', msvc: condition: '<toolset>msvc-8.0/<architecture>ia64/
<address-model>64', command: 'call "C:\Program Files (x86)\Microsoft
Visual Studio 8\VC\vcvarsall.bat" x86_ia64 >nul'
msvc: condition: '<toolset>msvc-7.1/<architecture>/<address-model>',
msvc: condition: '<toolset>msvc-7.1/<architecture>/<address-
model>32', msvc: condition: '<toolset>msvc-7.1/<architecture>x86/
<address-model>', msvc: condition: '<toolset>msvc-7.1/
<architecture>x86/<address-model>32', command: 'call "C:\Program
Files (x86)\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat"
>nul'
notice: [cmdline-cfg] Detected command-line request for msvc-9.0:
toolset= "msvc" version= "9.0"
notice: [cmdline-cfg] toolset msvc-9.0 already configured
...found 169 targets...
...updating 34 targets...
MkDir1 ..\..\bjam-output\Parliament\KbCore\msvc-9.0
MkDir1 ..\..\bjam-output\Parliament\KbCore\msvc-9.0\debug
MkDir1 ..\..\bjam-output\Parliament\KbCore\msvc-9.0\debug\address-
model-32
MkDir1 ..\..\bjam-output\Parliament\KbCore\msvc-9.0\debug\address-
model-32\threading-multi
compile-c-c++ ..\..\bjam-output\Parliament\KbCore\msvc-9.0\debug
\address-model-32\threading-multi\StringToId.obj
'cl' is not recognized as an internal or external command,
operable program or batch file.
cl /Zm800 -nologo @"..\..\bjam-output\Parliament\KbCore
\msvc-9.0\debug\address-model-32\threading-multi\StringToId.obj.rsp"
...failed compile-c-c++ ..\..\bjam-output\Parliament\KbCore
\msvc-9.0\debug\address-model-32\threading-multi\StringToId.obj...
<<snip>>
...skipped <p..\..\bjam-output\Parliament\KbCore\msvc-9.0\debug
\address-model-32\threading-multi>Parliament.dll for lack of <p..\..
\bjam-output\Parliament\KbCore\msvc-9.0\debug\address-
model-32\threading-multi>StringToId.obj...
...skipped <p..\..\bjam-output\Parliament\KbCore\msvc-9.0\debug
\address-model-32\threading-multi>Parliament.lib for lack of <p..\..
\bjam-output\Parliament\KbCore\msvc-9.0\debug\address-
model-32\threading-multi>StringToId.obj...
...failed updating 27 targets...
...skipped 3 targets...
...updated 4 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