Boost logo

Boost :

Subject: Re: [boost] [build][regression] Problems when trying to run automated regression tests for MSVC-7.1
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2015-10-02 14:19:42


On 29-Sep-15 10:54 PM, Ion Gaztañaga wrote:
> Hi,
>
> Since Boost 1.55 minimum requirements include Visual C++ 2003. Since currently there is no regression report for this
> compiler, I'm trying to follow the steps detailed here and try to fill the gap:
>
> http://www.boost.org/development/running_regression_tests.html
>
> All the source code is downloaded, my user-config.jam only contains "using msvc ;" but it seems that Boost.Build
> continues to be broken for MSVC-7.1:
>
> <output>
>
> notice: Loading user-config configuration file 'user-config.jam' from 'C:/Users/igaztanaga'.
> notice: [msvc-cfg] msvc-7.1 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe'
> notice: will use 'C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe' for msvc, condition
> <toolset>msvc-7.1
> C:/boost/develop/boost_bb/src/tools\msvc.jam:1072: in configure-really
> *** argument error
> * rule generate-setup-cmd ( version : command : parent : options * : cpu : global-setup : default-global-setup-options :
> default-setup )
> * called with: ( 7.1 : C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\Vc7\bin : C:\Program Files
> (x86)\Microsoft Visual Studio .NET 2003\Vc7 : <command>C:\Program Files (x86)\Microsoft Visual Studio .NET
> 2003\Vc7\bin\cl.exe : i386 : : x86 : vcvars32.bat )
> * missing argument global-setup

Ion,

does the following patch (which basically makes global-setup argument optional), help? It seems the code of that
function is already handling lack of global setup script (=vcvarsall.bat), but the signature does not.

--- src/tools/msvc.jam
+++ src/tools/msvc.jam
@@ -793,10 +793,10 @@ actions write-setup-script
  # Local helper rule to create the vcvars setup command for given architecture
  # and options.
  #
-local rule generate-setup-cmd ( version : command : parent : options * : cpu : global-setup :
default-global-setup-options : default-setup )
+local rule generate-setup-cmd ( version : command : parent : options * : cpu : global-setup ? :
default-global-setup-options : default-setup )
  {


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk