Boost logo

Boost-Build :

Subject: Re: [Boost-build] [build] error... configure-really
From: Andy Schweitzer (a.schweitzer.grps_at_[hidden])
Date: 2009-05-24 17:14:09


Andy Schweitzer wrote:
> Vladimir Prus wrote:
>>
>> The same command in the same directory? The error basically means that:
>> 1. Boost.Build could not find the compiler at the location you provided
>> 2. It failed to report that politely.
>>
>> The issue (2) is fixed in SVN HEAD, but I don't see what can cause (1) to
>> happen at random -- except a failing hard drive. Can you run with
>> --debug-configuration option and post the output?
>>
>

A little hacking later, I see that the search path for cl.exe does not
include the changes to the %PATH% environment variable made in the batch
file evc8.bat, called by <setup> parameter in user-config.jam. I'm sure
bjam is at least somewhat aware of that batch file because it says:

notice: [msvc-cfg] condition:
'<toolset>msvc-8.0~stlport5.2/<architecture>/<address-model>', setup:
'call "C:/nan/stl/STLport-5.2.1/evc8.bat" x86 >nul

(##Hack details

I found place to hack by looking in output resulting from
--debug-configuration, which was very useful. Hack was to add this function:

rule xxPrint ( varname : varval * : vartag )
{
   if $(varval)
   {
     ECHO "xxPrint var ($(varname)) val ($(varval)) tag ($(vartag))" ;
   }
   else
   {
     ECHO "xxPrint var ($(varname)) val (-EMPTY-) tag ($(vartag))" ;
   }
}

and then call it in find-tool like this:
     local none = [ xxPrint "path" : $(path) : "find-tool" ] ;

result clearly showed that path was just my default %PATH% environment
variable, not including any modifications.

end hack details##)

Any ideas?


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