Boost logo

Boost-Build :

Subject: Re: [Boost-build] Building with VC++ using address-model=64
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-05-18 10:30:00


AMDG

On 05/17/2013 05:45 PM, Edward Diener wrote:
> I am on a 64-bit system running Windows 7 Ultimate 64-bit. I invoke:
>
> "bjam address-model=64 toolset=msvc-9.0"
>
> Boost build does invoke the VC++ 9 to build a 64 bit executable. But it
> uses the 'x86_amd64' option to vcvarsall.bat, invoking the 32-bit
> compiler to build the 64-bit executable rather than the 'amd64' option
> to invoke the 64-bit compiler to build the 64-bit executable. The
> documentation for the VC++ toolset says:
>
> "The (AMD64 host, AMD64 target) compiler will be used automatically when
> you are generating AMD64 code and are running 64-bit Windows on AMD64."
>
> But this is not happening in my case and I am most certainly running
> 64-bit Windows 7.
>
> Is this a bug in Boost Build ?
> Is there a way I can force Boost Build to use the 64-bit compiler to
> generate the 64-bit executable ?
>

Boost.Build tries to handle this. However, it seems
to be failing because bjam is built as a 32-bit executable.
You should be able to force the issue with:

using msvc : 11.0 : : <setup-options-amd64>amd64 ;

In Christ,
Steven Watanabe


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