Problem when specifying msvc-9.0

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem when specifying msvc-9.0

Boost - Build mailing list
On the latest 'develop' branch if I specify b2 toolset=msvc-9.0 I get no
'cl' found. Other msvc toolsets, such as msvc-8.0, msvc-10.0, msvc-11.0,
msvc-12.0, msvc-14.0, and msvc-14.1 all work properly. If I run
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
x86 or "C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" amd64 the proper vc++9.0 environments are setup
and cl /? shows that cl is found. Ideas ?

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: Problem when specifying msvc-9.0

Boost - Build mailing list
AMDG

On 11/14/2018 06:59 PM, Edward Diener via Boost-build wrote:
> On the latest 'develop' branch if I specify b2 toolset=msvc-9.0 I get no
> 'cl' found. Other msvc toolsets, such as msvc-8.0, msvc-10.0, msvc-11.0,
> msvc-12.0, msvc-14.0, and msvc-14.1 all work properly. If I run
> "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
> x86 or "C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\vcvarsall.bat" amd64 the proper vc++9.0 environments are setup
> and cl /? shows that cl is found. Ideas ?
>

What is the command that b2 uses?

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: Problem when specifying msvc-9.0

Boost - Build mailing list
On 11/14/2018 10:52 PM, Steven Watanabe via Boost-build wrote:

> AMDG
>
> On 11/14/2018 06:59 PM, Edward Diener via Boost-build wrote:
>> On the latest 'develop' branch if I specify b2 toolset=msvc-9.0 I get no
>> 'cl' found. Other msvc toolsets, such as msvc-8.0, msvc-10.0, msvc-11.0,
>> msvc-12.0, msvc-14.0, and msvc-14.1 all work properly. If I run
>> "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
>> x86 or "C:\Program Files (x86)\Microsoft Visual Studio
>> 9.0\VC\vcvarsall.bat" amd64 the proper vc++9.0 environments are setup
>> and cl /? shows that cl is found. Ideas ?
>>
>
> What is the command that b2 uses?

b2 toolset=msvc-9.0

in, let's say, the boost/preprocessor/test directory with a
user-config.jam of:

using msvc ;

>
> In Christ,
> Steven Watanabe


_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: Problem when specifying msvc-9.0

Boost - Build mailing list
AMDG

On 11/14/2018 10:56 PM, Edward Diener via Boost-build wrote:

> On 11/14/2018 10:52 PM, Steven Watanabe via Boost-build wrote:
>> On 11/14/2018 06:59 PM, Edward Diener via Boost-build wrote:
>>> On the latest 'develop' branch if I specify b2 toolset=msvc-9.0 I get no
>>> 'cl' found. Other msvc toolsets, such as msvc-8.0, msvc-10.0, msvc-11.0,
>>> msvc-12.0, msvc-14.0, and msvc-14.1 all work properly. If I run
>>> "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
>>> x86 or "C:\Program Files (x86)\Microsoft Visual Studio
>>> 9.0\VC\vcvarsall.bat" amd64 the proper vc++9.0 environments are setup
>>> and cl /? shows that cl is found. Ideas ?
>>>
>>
>> What is the command that b2 uses?
>
> b2 toolset=msvc-9.0
>
> in, let's say, the boost/preprocessor/test directory with a
> user-config.jam of:
>
> using msvc ;
>


I meant, what is the cl.exe command that
Boost.Build issues (including the setup
script call)?

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: Problem when specifying msvc-9.0

Boost - Build mailing list
On 11/15/2018 10:20 AM, Steven Watanabe via Boost-build wrote:

> AMDG
>
> On 11/14/2018 10:56 PM, Edward Diener via Boost-build wrote:
>> On 11/14/2018 10:52 PM, Steven Watanabe via Boost-build wrote:
>>> On 11/14/2018 06:59 PM, Edward Diener via Boost-build wrote:
>>>> On the latest 'develop' branch if I specify b2 toolset=msvc-9.0 I get no
>>>> 'cl' found. Other msvc toolsets, such as msvc-8.0, msvc-10.0, msvc-11.0,
>>>> msvc-12.0, msvc-14.0, and msvc-14.1 all work properly. If I run
>>>> "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
>>>> x86 or "C:\Program Files (x86)\Microsoft Visual Studio
>>>> 9.0\VC\vcvarsall.bat" amd64 the proper vc++9.0 environments are setup
>>>> and cl /? shows that cl is found. Ideas ?
>>>>
>>>
>>> What is the command that b2 uses?
>>
>> b2 toolset=msvc-9.0
>>
>> in, let's say, the boost/preprocessor/test directory with a
>> user-config.jam of:
>>
>> using msvc ;
>>
>
>
> I meant, what is the cl.exe command that
> Boost.Build issues (including the setup
> script call)?

The b2 output for msvc-9.0 starts as:

file
C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-9.0\debug\threading-multi\arithmetic.obj.rsp
"arithmetic.cpp"
-Fo"C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-9.0\debug\threading-multi\arithmetic.obj"
    -TP /Z7 /Od /Ob0 /W4 /GR /MDd /Zc:forScope /Zc:wchar_t /wd4675 /EHs -c
-DBOOST_ALL_NO_LIB=1
"-I..\..\.."
compile-c-c++
C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-9.0\debug\threading-multi\arithmetic.obj

      cl /Zm800 -nologo
@"C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-9.0\debug\threading-multi\arithmetic.obj.rsp"


'cl' is not recognized as an internal or external command,
operable program or batch file.
...failed compile-c-c++
C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-9.0\debug\threading-multi\arithmetic.obj...

The b2 output for msvc-10.0 starts as:

file
C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-10.0\debug\threading-multi\arithmetic.obj.rsp
"arithmetic.cpp"
-Fo"C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-10.0\debug\threading-multi\arithmetic.obj"
    -TP /Z7 /Od /Ob0 /W4 /GR /MDd /Zc:forScope /Zc:wchar_t /wd4675 /EHs -c
-DBOOST_ALL_NO_LIB=1
"-I..\..\.."
compile-c-c++
C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-10.0\debug\threading-multi\arithmetic.obj

     call
"C:\Programming\build\modular-boost\boost\bin.v2\standalone\msvc\msvc-10.0\msvc-setup.bat"
x86 >nul
  cl /Zm800 -nologo
@"C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-10.0\debug\threading-multi\arithmetic.obj.rsp"


arithmetic.cpp
**passed**
C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-10.0\debug\threading-multi\arithmetic.test

     echo passed >
"C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-10.0\debug\threading-multi\arithmetic.test"

You can clearly see that the 'call' line is missing from the msvc-9.0
output so naturally 'cl' is not recognized.

The exact same user-config.jam is being used for both, which just contains:

using msvc ;

The b2 command for msvs-9.0 is just:

b2 toolset=msvc-9.0

and the b2 command for msvc-10.0 is just:

b2 toolset=msvc-10.0

>
> In Christ,
> Steven Watanabe


_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: Problem when specifying msvc-9.0

Boost - Build mailing list
AMDG

On 11/15/2018 10:20 AM, Edward Diener via Boost-build wrote:

> <snip>
> The b2 output for msvc-9.0 starts as:
>
> <snip>
>
>      cl /Zm800 -nologo
> @"C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-9.0\debug\threading-multi\arithmetic.obj.rsp"
>
>
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> <snip>
>
>
> You can clearly see that the 'call' line is missing from the msvc-9.0
> output so naturally 'cl' is not recognized.
>

What does --debug-configuration say?

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: Problem when specifying msvc-9.0

Boost - Build mailing list
On 11/15/2018 12:32 PM, Steven Watanabe via Boost-build wrote:

> AMDG
>
> On 11/15/2018 10:20 AM, Edward Diener via Boost-build wrote:
>> <snip>
>> The b2 output for msvc-9.0 starts as:
>>
>> <snip>
>>
>>       cl /Zm800 -nologo
>> @"C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-9.0\debug\threading-multi\arithmetic.obj.rsp"
>>
>>
>> 'cl' is not recognized as an internal or external command,
>> operable program or batch file.
>> <snip>
>>
>>
>> You can clearly see that the 'call' line is missing from the msvc-9.0
>> output so naturally 'cl' is not recognized.
>>
>
> What does --debug-configuration say?

Ok, I see it now. the cl.exe is missing from the msvc-9.0 vc bin directory.

Thanks !

The lesson is: --debug_configuration is my friend <g>.

>
> In Christ,
> Steven Watanabe

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: Problem when specifying msvc-9.0

Boost - Build mailing list
In reply to this post by Boost - Build mailing list
On 11/15/2018 12:32 PM, Steven Watanabe via Boost-build wrote:

> AMDG
>
> On 11/15/2018 10:20 AM, Edward Diener via Boost-build wrote:
>> <snip>
>> The b2 output for msvc-9.0 starts as:
>>
>> <snip>
>>
>>       cl /Zm800 -nologo
>> @"C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-9.0\debug\threading-multi\arithmetic.obj.rsp"
>>
>>
>> 'cl' is not recognized as an internal or external command,
>> operable program or batch file.
>> <snip>
>>
>>
>> You can clearly see that the 'call' line is missing from the msvc-9.0
>> output so naturally 'cl' is not recognized.
>>
>
> What does --debug-configuration say?

The problem is that the VS2008 installation, which is msvc-9.0, did not
place a cl.exe in its "C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\bin" directory. Instead it placed its cl.exe for x86 in its
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\x86_amd64"
directory and placed its cl.exe for x64 in its "C:\Program Files
(x86)\Microsoft Visual Studio 9.0\VC\bin\amd64" directory.

Therefore since msvc.jam is using the finding of the cl.exe in vc/bin
directory as an indication of the presence of an msvc toolset, it does
not find the msvc-9.0 toolset.

>
> In Christ,
> Steven Watanabe

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: Problem when specifying msvc-9.0

Boost - Build mailing list
On 11/15/2018 2:13 PM, Edward Diener via Boost-build wrote:

> On 11/15/2018 12:32 PM, Steven Watanabe via Boost-build wrote:
>> AMDG
>>
>> On 11/15/2018 10:20 AM, Edward Diener via Boost-build wrote:
>>> <snip>
>>> The b2 output for msvc-9.0 starts as:
>>>
>>> <snip>
>>>
>>>       cl /Zm800 -nologo
>>> @"C:\Programming\build\modular-boost\boost\bin.v2\libs\preprocessor\test\arithmetic.test\msvc-9.0\debug\threading-multi\arithmetic.obj.rsp"
>>>
>>>
>>>
>>> 'cl' is not recognized as an internal or external command,
>>> operable program or batch file.
>>> <snip>
>>>
>>>
>>> You can clearly see that the 'call' line is missing from the msvc-9.0
>>> output so naturally 'cl' is not recognized.
>>>
>>
>> What does --debug-configuration say?
>
> The problem is that the VS2008 installation, which is msvc-9.0, did not
> place a cl.exe in its "C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\bin" directory. Instead it placed its cl.exe for x86 in its
> "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\x86_amd64"
> directory and placed its cl.exe for x64 in its "C:\Program Files
> (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64" directory.

This must be some sort of bug in the installation, perhaps having to do
with VS2017 Community Edition being installed. I removed VS2008 and
re-installed it, and it did not put the correct files in the vc/bin
directory.

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build