Boost logo

Boost :

Subject: Re: [boost] [build][regression] Problems when trying to run automated regression tests for MSVC-7.1
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2015-10-02 16:05:27


On 02/10/2015 20:19, Vladimir Prus wrote:
> 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 )
> {
Thanks. I tried that before, unfortunately a new error happened:

C:/boost/develop/boost_bb/src/tools\msvc.jam:834: in generate-setup-cmd
*** argument error
* rule maybe-rewrite-setup ( toolset : setup-script : setup-options :
version : rewrite-setup ? )
* called with: ( msvc : : : 7.1 : )
* missing argument setup-script
C:/boost/develop/boost_bb/src/tools\msvc.jam:746:see definition of rule
'maybe-rewrite-setup' being called
C:/boost/develop/boost_bb/src/tools\msvc.jam:1072: in configure-really
C:/boost/develop/boost_bb/src/tools\msvc.jam:201: in configure
C:/boost/develop/boost_bb/src/tools\msvc.jam:153: in msvc.init
C:/boost/develop/boost_bb/src/build\toolset.jam:43: in using
C:\Users\igaztanaga\user-config.jam:49: in modules.load

It seems that "maybe-rewrite-setup" does not support an optional
"setup-script" argument, and the call to rewrite is not prepared for
MSVC-7.1. I can't figure out what "$(setup:J=" ")" argument tries to do.

I commented the line 834 as it seems to be an optimization for MSVC >=
10.0 and the process goes further. The build starts but it seems that
hardlinks are not properly done and the compiler does not found
includes. But the toolset seems ok now. So avoid the optimization for
MSVC 7.1 seems a quick workaround as calling 7.1's vcvars32.bat is very
quick.

I've done a patch that makes the 1.59 boost package version compatible
with MSVC 7.1 and a simple "using msvc ;" line in user-config.jam
(before this I had to specify the vcvars32.bat path in user-config.jam),
patch attached.

Best,

Ion




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