Boost logo

Boost-Build :

From: Artem Alimarine (artem_at_[hidden])
Date: 2006-07-13 04:59:28


Vladimir Prus wrote:
> I'm not expert on Windows scripting, so I'm not sure what can be done.
> Probably Rene can help, but I think he'd need to detailed report. What error
> exactly did you get, and do you know at which line of build.bat that error
> occurs?

Vladimir,

Here is the trace of the build.bat from CVS HEAD with ECHO ON.
===============================================================

C:\boost-cvs-main\boost\tools\jam\src>build

C:\boost-cvs-main\boost\tools\jam\src>REM ~ Copyright 2002-2005 Rene Rivera.

C:\boost-cvs-main\boost\tools\jam\src>REM ~ Distributed under the Boost
Software License, Version 1.0.

C:\boost-cvs-main\boost\tools\jam\src>REM ~ (See accompanying file
LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)

C:\boost-cvs-main\boost\tools\jam\src>setlocal

C:\boost-cvs-main\boost\tools\jam\src>goto Start

C:\boost-cvs-main\boost\tools\jam\src>set BOOST_JAM_TOOLSET=

C:\boost-cvs-main\boost\tools\jam\src>REM If no arguments guess the toolset;

C:\boost-cvs-main\boost\tools\jam\src>REM or if first argument is an
option guess the toolset;

C:\boost-cvs-main\boost\tools\jam\src>REM otherwise the argument is the
toolset to use.

C:\boost-cvs-main\boost\tools\jam\src>if "__" == "__" (
call :Guess_Toolset
  if not errorlevel 1 goto Setup_Toolset
) else (
call :Test_Option
  if not errorlevel 1 (
call :Guess_Toolset
  if not errorlevel 1 goto Setup_Toolset
) else (setlocal & endlocal
  set BOOST_JAM_TOOLSET=
  shift
  goto Setup_Toolset )
)

C:\boost-cvs-main\boost\tools\jam\src>REM Try and guess the toolset to
bootstrap the build with...

C:\boost-cvs-main\boost\tools\jam\src>REM Sets BOOST_JAM_TOOLSET to the
first found toolset.

C:\boost-cvs-main\boost\tools\jam\src>REM May also set
BOOST_JAM_TOOLSET_ROOT to the

C:\boost-cvs-main\boost\tools\jam\src>REM location of the found toolset.

C:\boost-cvs-main\boost\tools\jam\src>if "_C:\Program Files_" == "__"
set ProgramFiles=C:\Program Files

C:\boost-cvs-main\boost\tools\jam\src>setlocal & endlocal
\Microsoft was unexpected at this time.

C:\boost-cvs-main\boost\tools\jam\src> set
BOOST_JAM_TOOLSET_ROOT=c:\Program Files (x86)\Microsoft Visual Studio
8\Common7\Tools\..\..\VC\

C:\boost-cvs-main\boost\tools\jam\src>
===============================================================

The error message is "\Microsoft was unexpected at this time.". I am not
an expert in batch files either. Note that not all passed lines from
build.bat appear in the trace. It seems to me that the problematic line
is the line 61:
        if NOT "_%VS80COMNTOOLS%_" == "__" (
which is not printedm but resides between the two lines surrounding the
error message.

Artem


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