Boost logo

Boost-Build :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2007-10-14 04:25:37


"Vladimir Prus" <ghost_at_[hidden]> wrote in message
news:200710141210.24316.ghost_at_cs.msu.su...
> On Sunday 14 October 2007 11:54:53 Gennadiy Rozental wrote:
>>
>> "Vladimir Prus" <ghost_at_[hidden]> wrote in message
>> news:200710141125.24611.ghost_at_cs.msu.su...
>> > On Sunday 14 October 2007 11:14:05 Gennadiy Rozental wrote:
>> >> Hi,
>> >>
>> >> I am trying to use Boost.Build V2 and having followign
>> >> problems/questions:
>> >>
>> >> 1. msvc-7_1 and msvc-6_5 doesn't invoke vsvars32.bat and fails
>> >> accordingly.
>> >> And I can't find a way to specify the path as well.
>> >
>> > msvc-7_1 and msvc-6_5 are not names are Boost.Build specifically
>> > recognize.
>> > You'd need dot between version components. You can read more about
>> > configuring
>> > msvc at:
>> >
>> > http://boost.org/boost-build2/doc/html/bbv2/reference/tools.html#bbv2.reference.tools.compiler.msvc
>>
>> A) I am sorry, but I can't see how it can be deduced from the link above.
>> It
>> should be very clearly spelled out (especially since it was different
>> from
>> v1)
>
> Err, the link say that you must specify:
>
> 1. Version of compiler
> 2. Path to compiler

I believe you need to put it somewhere on top in migration section: "Here is
how you invoke msvc version 7.1 ....".

> for each version you use. I don't know how to say it differently.
>
>> B) msvc-6.5 still doesn't work
>
> In what what it "doesn't work". What's your current user-config.jam,
> what's your
> command line, what are the command lines produces by Boost.Build, and how
> is it wrong?

bjam toolset=msvc-6.5 unit_test_example_01

warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
...patience...
...found 543 targets...
...updating 25 targets...
compile-c-c++
..\..\..\bin.v2\libs\test\example\unit_test_example_01.test\msvc-6.5\debug\threading-multi\unit_test_example_01.obj
'cl' is not recognized as an internal or external command,
operable program or batch file.

    cl /Zm800 -nologo
@"..\..\..\bin.v2\libs\test\example\unit_test_example_01.test\msvc-6.5\debug\threading-multi\unit_test_example_01.obj.rsp"

...failed compile-c-c++
..\..\..\bin.v2\libs\test\example\unit_test_example_01.test\msvc-6.5\debug\threading-multi\unit_test_example_01.obj...

....

>> >> 4. what is new toolset name for mingw?
>> >
>> > gcc
>>
>> I don't think this is correct. my gcc toolset uses gcc that comes with
>> cygwin. Mingw is different thing and located in other place.
>
> If you don't say anything about gcc in user-config.jam, then the gcc
> from PATH will be used -- that's the only one that can be found.
>
> If you want to have tow gcc versions, you need to configure them
> in user-config.jam, given two different versions to them and specifying
> different commands, like:
>
> using gcc : XXX : /path/to/cygwin/g++ ;
> using gcc : XXX_mingw : /path/to/mingw/g++ ;

Can I avoid doing first and only do second?

using gcc : mingw : /path/to/mingw/g++ ;

And invoke it like this:

bjam toolset=gcc-mingw

While

bjam toolset=gcc-mingw

will still invoke one in a PATH (which is cygwin)

>> >> 5. toolset=intel-9_0 builds using intel 8.1. How to make it use
>> >> correct
>> >> tools?
>> >
>> > Explicitly specify location of 9.0 compiler per:
>> >
>> > http://boost.org/boost-build2/doc/html/bbv2/reference/tools.html#bbv2.reference.tools.compiler.intel
>>
>> I can not sure how it is done. The only thing I see in link above is:
>>
>> using intel-win : [version] : [c++-compile-command] : [compiler options]
>> ;How do I specify compiler location?Gennadiy
>
> You specify the command used to compile C++, like:
>
> C:/some_path/intel/icpc.exe
>
> (or however the binary is called in 9.0)

IMO c++-compile-command is misleading. What you are looking for is "path to
the compiler executable"

Here is what I added to the user-config:

using intel-win : 9.0 :
"C:\Compilers\Intel9.0\Compiler\C++\9.0\IA32\Bin\icl.exe" ;

bjam how doing something weird:

bjam -d +2 toolset=intel-9.0

warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).

file
..\..\..\bin.v2\libs\test\example\est_example1.test\intel-win-9.0\debug\threading-multi\est_example1.obj.rsp
"est_example1.cpp"
 -Fo"..\..\..\bin.v2\libs\test\example\est_example1.test\intel-win-9.0\debug\threading-multi\est_example1.obj" -TP /Z7 /Od /Ob0 /W3 /GR /MDd /Zc:forScope /Zc:wchar_t /GB /Op /Qwn5 /Qwd985 -Qoption,c,--arg_dep_lookup /Zc:forScope /Qansi_alias /Zc:wchar_t -D_NATIVE_WCHAR_T_DEFINED -Qoption,cpp,--arg_dep_lookup /wd4675 /EHs -c-DBOOST_ALL_NO_LIB=1-DBOOST_TEST_DYN_LINK=1-DBOOST_TEST_NO_AUTO_LINK=1"-I..\..\.."compile-c-c++..\..\..\bin.v2\libs\test\example\est_example1.test\intel-win-9.0\debug\threading-multi\est_example1.obj @"..\..\..\bin.v2\libs\test\example\est_example1.test\intel-win-9.0\debug\threading-multi\est_example1.obj.rsp"At this point I am getting window asking me what to d owith this file (itdoesn't not how to execute it)Gennadiy


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