Subject: Re: [Boost-build] Latest bootstrap.bat is broken
From: Edward Diener (eldiener_at_[hidden])
Date: 2011-02-12 17:23:57
On 2/12/2011 4:51 PM, Steven Watanabe wrote:
> On 2/12/2011 1:39 PM, Edward Diener wrote:
>> The latest bootstrap.bat in the trunk is broken. While it rebuilds bjam
>> correctly it is checking the wrong directories from the current
>> directory to report whether it has been successful or not. So it never
>> finds bjam.exe off of the 'engine' sub-directory, although it is there,
>> and reports failure. Needless to say it also does not copy bjam.exe to
>> its correct location either.
> I just tested it at trunk rev. 68817, and it
> seemed to work fine. Are both bootstrap.bat
> and tools/build/v2 up to date? What directory
> is bjam built in, and where does bootstrap.bat
Bjam.exe is built in 'boost\tools\build\v2\engine\bin.ntx86'
REM Copyright (C) 2009 Vladimir Prus
REM Distributed under the Boost Software License, Version 1.0.
REM (See accompanying file LICENSE_1_0.txt or
ECHO Bootstrapping the build engine
if exist ".\engine\bin.ntx86\bjam.exe" del engine\bin.ntx86\bjam.exe
if exist ".\engine\bin.ntx86_64\bjam.exe" del engine\bin.ntx86_64\bjam.exe
call .\build.bat %* > ..\..\bootstrap.log
if exist ".\engine\bin.ntx86\bjam.exe" (
copy .\engine\bin.ntx86\bjam.exe . > nul
if exist ".\engine\bin.ntx86_64\bjam.exe" (
copy .\engine\bin.ntx86_64\bjam.exe . > nul
ECHO Bootstrapping is done. To build, run:
ECHO .\bjam --prefix=DIR install
ECHO Failed to bootstrap the build engine
ECHO Please consult bootstrap.log for furter diagnostics.
I am always going to :bjam_failure when I execute ".\bootstrap.bat".
Unless .\build.bat is changing to some other directory, it sure looks
like the "cd"s is putting the batch file in two directories above
'engine' and then is checking the 'if exist' as if 'engine' is directly
below the current directory. That can't be right.
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