Building Boost 1.60 with VS2015 - 32 bit compiler is always selected
Hi, I'm trying to build Boost 1.60 with Visual Studio 2015 Update 1 in 64-bit mode but it seems to be ignoring the address-model=64 parameter and always builds a 32-bit version (I called b2 from the VS2015 Native tools for x64 command prompt): -- C:\Users\Tiago\code\boost_1_60_0>*b2 --toolset=msvc-14.0 variant=release link=static threading=multi address-model=64 architecture=x86* Performing configuration checks *- 32-bit : yes* - arm : no - mips1 : no - power : no - sparc : no - x86 : yes .... C:\Users\Tiago\code\boost_1_60_0>*cl* Microsoft (R) C/C++ Optimizing Compiler *Version 19.00.23506 for x64* Copyright (C) Microsoft Corporation. All rights reserved. usage: cl [ option... ] filename... [ /link linkoption... ] --- I saw in some ond discussion mentions to explicitly select the compiler version (I also have VS2010 and VS2012 installed) and environment variables batch file (in the project-config.jam file) but this didn't help either. Any help is really appreciated. Best regards, Tiago Gehring
Hello,
I am compiling with Visual Studio 2013 with a similar command line, and it
is true that I get the same strange "32 bits: yes". But after that, I am
linking against a 64bits application, and it works fine. Maybe this is
merely a bug in the b2 output ?
Cheers,
Emmanuel
On Sat, 30 Jan 2016 at 19:08 Tiago Gehring
Hi,
I'm trying to build Boost 1.60 with Visual Studio 2015 Update 1 in 64-bit mode but it seems to be ignoring the address-model=64 parameter and always builds a 32-bit version (I called b2 from the VS2015 Native tools for x64 command prompt):
-- C:\Users\Tiago\code\boost_1_60_0>*b2 --toolset=msvc-14.0 variant=release link=static threading=multi address-model=64 architecture=x86* Performing configuration checks
*- 32-bit : yes* - arm : no - mips1 : no - power : no - sparc : no - x86 : yes ....
C:\Users\Tiago\code\boost_1_60_0>*cl* Microsoft (R) C/C++ Optimizing Compiler *Version 19.00.23506 for x64* Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
---
I saw in some ond discussion mentions to explicitly select the compiler version (I also have VS2010 and VS2012 installed) and environment variables batch file (in the project-config.jam file) but this didn't help either.
Any help is really appreciated.
Best regards, Tiago Gehring _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On 01/02/2016 08:02, Emmanuel wrote:
Hello,
I am compiling with Visual Studio 2013 with a similar command line, and it is true that I get the same strange "32 bits: yes". But after that, I am linking against a 64bits application, and it works fine. Maybe this is merely a bug in the b2 output ?
I've seen this with earlier Boost releases as well with VS2013; I don't think it's a Boost 1.60 issue specifically. Regards, Roger
Hi,
Thanks for the replies. You are right, I did a rebuild of boost passing now
the architecture=x86 parameter (I think that I left it out the first time -
I think that I saw somewhere that this has to be explicitly specified) and
the code generated is definitely 64-bit (although it still shows "32-bit:
yes" during the build).
Thanks again,
Tiago
On Mon, 1 Feb 2016 at 06:24 Roger Leigh
On 01/02/2016 08:02, Emmanuel wrote:
Hello,
I am compiling with Visual Studio 2013 with a similar command line, and it is true that I get the same strange "32 bits: yes". But after that, I am linking against a 64bits application, and it works fine. Maybe this is merely a bug in the b2 output ?
I've seen this with earlier Boost releases as well with VS2013; I don't think it's a Boost 1.60 issue specifically.
Regards, Roger
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On 30-Jan-16 8:52 PM, Tiago Gehring wrote:
Hi,
I'm trying to build Boost 1.60 with Visual Studio 2015 Update 1 in 64-bit mode but it seems to be ignoring the address-model=64 parameter and always builds a 32-bit version (I called b2 from the VS2015 Native tools for x64 command prompt):
-- C:\Users\Tiago\code\boost_1_60_0>*b2 --toolset=msvc-14.0 variant=release link=static threading=multi address-model=64 architecture=x86* Performing configuration checks
*- 32-bit : yes*
Tiago, this configuration checks figures the default address model of the compiler, not the final address model that will be used. It possibly can be reworded a bit.
- arm : no - mips1 : no - power : no - sparc : no - x86 : yes ....
C:\Users\Tiago\code\boost_1_60_0>*cl* Microsoft (R) C/C++ Optimizing Compiler *Version 19.00.23506 for x64* Copyright (C) Microsoft Corporation. All rights reserved.
That does not matter much, since Boost.Build picks the exact compiler binary based on requested version and parameters - it does not directly use 'cl' from PATH. -- Vladimir Prus http://vladimirprus.com
participants (4)
-
Emmanuel
-
Roger Leigh
-
Tiago Gehring
-
Vladimir Prus