|
Boost-Build : |
From: David Abrahams (dave_at_[hidden])
Date: 2007-07-27 14:03:27
on Fri Jul 27 2007, Vladimir Prus <ghost-AT-cs.msu.su> wrote:
> On Sunday 14 January 2007 09:33:31 David Abrahams wrote:
>
>> The main issue was that I couldn't get the compiler to
>> build with the "/favor x86_amd64" option
>
> Is there even such option?
I think I got that from
http://msdn2.microsoft.com/en-us/library/x4d2c09s(VS.80).aspx
and maybe I was talking about which option got passed to vcvarsall.bat
>> , even if I specified
>> address-model=64 and instruction-set=opteron. I had the problem with
>> any of the following lines in user-config.jam:
>>
>> using msvc ;
>> using msvc : default ;
>> using msvc : all ;
>> using msvc : 8.0 ;
>> using msvc : 8.0 : cl ;
>> using msvc : default : "c:\\Program Files (x86)\\Microsoft Visual Studio 8\\VC\\BIN\\amd64\\cl"
>>
>> Both with and without cl in the path.
> ......
>> When I'm not passing anything for the "command" parameter, the
>> "command" variable remains empty after
>>
>> # If version is specified, we try to search first in default paths,
>> # and only then in PATH.
>> command = [ common.get-invocation-command msvc : cl.exe : $(command)
>> : [ default-paths $(version) ] : $(version) ] ;
>
>
> It is highly unlikely for this to return nothing if cl.exe in in PATH. Are you sure
> that's the case?
No, it's not... and why should it be? The registry knows where VS is
installed and IIRC our toolset tries to use that information.
>> In any case, even when I passed
>> "c:\\Program Files (x86)\\Microsoft Visual Studio 8\\VC\\BIN\\amd64\\cl"
>> as the command parameter, there was trouble. Because I wasn't
>> explicitly passing <setup> through my "using" command, it once again
>> couldn't get into the block where the setup-option was set to
>> x86_amd64.
>
> Do you have a binary called
>
> "c:\\Program Files (x86)\\Microsoft Visual Studio 8\\VC\\BIN\\cl.exe"
>
> Can you list all binaries called "cl.exe" in your VC\BIN directory?
I'm not near my machine right now and it's not convenient for me.
IIRC you have access to that machine and can look yourself.
>> Ultimately, in order to get 64-bit builds, I needed
>>
>> msvc.configure 8.0 : "<command>c:\\Program Files (x86)\\Microsoft Visual Studio 8\\VC\\BIN\\amd64\\cl"
>> "<setup>C:\\Program Files (x86)\\Microsoft Visual Studio 8\\VC\\vcvarsall.bat" ;
>>
>> in my user-config.jam to get it to build 64-bit binaries, when all of
>> this stuff should have been auto-detected...
>>
>> ...and there's still a problem, because it's using a slow 32-bit
>> binary instead of a 64-bit binary on my 64-bit machine.
>
> How did you identify that?
It's been 7 months; I don't remember.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com
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