Opened 13 years ago

Last modified 12 years ago

#3550 assigned Bugs

specify toolset to bootstrap.bat

Reported by: bielow@… Owned by: Vladimir Prus
Milestone: Boost 1.46.0 Component: Building Boost
Version: Boost 1.40.0 Severity: Cosmetic
Keywords: bootstrap.bat bjam.exe bin.ntx86_64 Cc:

Description

Hi,

calling "bootstrap.bat" results in successful compilation of boost_1_40_0\tools\jam\src\bin.ntx86_64\bjam.exe but this is not where the bootstrap.bat expects it to be, as it only supports x86 as it seems.

BTW: tools\jam\src\build.bat somehow finds my VS2010beta and uses that for compilation (although I'd like it to use my production VS9) and it seems I have no control of telling "bootstrap.bat" to use a custom toolset (this is supported by build.bat)

cheers Chris

Attachments (4)

bootstrap.bat (1.8 KB ) - added by Vladimir Prus 13 years ago.
bootstrap.2.bat (1.9 KB ) - added by Vladimir Prus 13 years ago.
Version that forward toolset over to bjam's build.bat
bootstrap.3.bat (2.2 KB ) - added by Hendricks266 <Hendricks266@…> 12 years ago.
toolset obtained in bootstrap.bat
build.bat (16.9 KB ) - added by Hendricks266 <Hendricks266@…> 12 years ago.
toolset passed by build.bat

Download all attachments as: .zip

Change History (12)

by Vladimir Prus, 13 years ago

Attachment: bootstrap.bat added

comment:1 by Vladimir Prus, 13 years ago

Chris, thank you for the report. Can you try the attached version of bootstrap.bat -- it should find the 64-bit bjam after it is build. If it works, I'll merge it for 1.41.

As for vc9 vs. vc10 -- is it affecting only compilation of bjam itself, or causing other problems? If it's affecting bjam itself, this is probably not a 1.41 showstopper.

Thanks, Volodya

comment:2 by bielow@…, 13 years ago

Hi,

works like a charm. However, I think you missed to insert "if exist ".\tools\jam\src\bin.ntx86_64\bjam.exe" del tools\jam\src\bin.ntx86_64\bjam.exe" at line 10?!

The VS2010 toolset is not a showstopper, as I can still set the toolset "msvc-9.0" when calling bjam.

Just as a suggestion: you could accept the toolset as argument to bootstrap.bat, just forward it to build.bat, which would have the additional advantage of producing a correct "project-config.jam". I guess the latter is read by bjam?!

comment:3 by Vladimir Prus, 13 years ago

Hi.

Indeed, I should have added that line. I've now done so, and committed the change to the trunk and release branches.

As for passing toolset, could you try running the attached -- both without arguments and with 'vc9'? Note that unfortunately, this will not affect project-config.jam as there are some issue with making tools/jam/src/build.bat report the toolset it has used.

by Vladimir Prus, 13 years ago

Attachment: bootstrap.2.bat added

Version that forward toolset over to bjam's build.bat

comment:4 by Vladimir Prus, 13 years ago

Milestone: Boost 1.41.0Boost 1.42.0
Owner: set to Vladimir Prus
Status: newassigned

The toolset forwarding is probably for 1.42 now.

comment:5 by Eric Niebler, 12 years ago

Version: Boost 1.40.0Boost 1.45.0

Update milestone. Please mark this one appropriately or fix it for 1.45. Thanks.

comment:6 by Eric Niebler, 12 years ago

Milestone: Boost 1.42.0Boost-1.45.0
Version: Boost 1.45.0Boost 1.40.0

Whoops, change milestone, not version.

comment:7 by Vladimir Prus, 12 years ago

Milestone: Boost-1.45.0Boost-1.46.0
Severity: ShowstopperCosmetic
Summary: bootstrap.bat not running on x64 Windowsspecify toolset to bootstrap.bat

The fix for 64-bit windows has been checked in long ago. The reminder of this bug is about specifying the toolset for Boost.Build bootstrapping (that is, building bjam). That issue is definitely not a showstopper

by Hendricks266 <Hendricks266@…>, 12 years ago

Attachment: bootstrap.3.bat added

toolset obtained in bootstrap.bat

by Hendricks266 <Hendricks266@…>, 12 years ago

Attachment: build.bat added

toolset passed by build.bat

comment:8 by Hendricks266 <Hendricks266@…>, 12 years ago

I've added functionality to the two batch files to pass BOOST_JAM_TOOLSET (the toolset ultimately used) from build.bat back to bootstrap.bat via a BOOST_JAM_TOOLSET.txt.

Note: See TracTickets for help on using tickets.