Boost logo

Boost-Build :

Subject: Re: [Boost-build] bjam doesn't work to build my boost
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-10-07 12:28:13


On Tuesday 07 October 2008 06:10:05 Max Cannaday wrote:
> Firstly I'm new to this, I apologize in advance if I'm supposed to wait
> until I'm a subscribed member before posting, or if this is even the
> correct way to say this.
>
>
>
> I'm use Boost.Jam 3.1.16
>
> To build Boost 1.36.0
>
>
>
> I think my problem can be summed up with three pastes:
>
>
>
> vvvvvvvvvvvv
>
> D:\boost_3_1_16>bjam --toolset=msvc stage

What is "boost_3_1_16" directory? Did you unpack C++ Boost distribution there,
or what?

>
> ###
>
> ### No toolset specified. Please use --toolset option.
>
> ###
>
> ### Known toolsets are: acc, borland, cc, como, darwin, gcc,
> gcc-nocygwin, intel

This means the directory actually contains Boost.Jam sources; if you have 'bjam'
already you don't even need those sources. And if you want to build them, you
need to use 'build.bat' or 'build.sh' not the instructions for building C++ Boost.

>
> -linux, intel-win32, kcc, kylix, metrowerks, mingw, mipspro, msvc, qcc,
> pathscal
>
> e, pgi, sun, sunpro, tru64cxx, vacpp, vc7, vc8, vc9, vmsdecc
>
> ###
>
> ^^^^^^^^^^^
>
>
>
> The outcome is the same if I omit the toolset parameter. So I noticed
> that vc9 is clearly an option for toolset, so I tried this:

No; the 'toolset' names for building bjam are internal details you should
not know about.

>
>
>
> vvvvvvvvvvv
>
> D:\boost_3_1_16 >bjam --toolset=vc9 stage
>
> vc9.jam: No such file or directory
>
> D:/include/tools/build/v2/build\toolset.jam:38: in toolset.using
>
> rule vc9.init unknown in module toolset.
>
> D:/include/tools/build/v2\build-system.jam:434: in
> process-explicit-toolset-requ
>
> ests
>
> D:/include/tools/build/v2\build-system.jam:513: in load
>
> D:\include\tools\build\v2/kernel\modules.jam:281: in import
>
> D:\include\tools\build\v2/kernel/bootstrap.jam:128: in boost-build
>
> D:\include\boost-build.jam:16: in module scope
>
> ^^^^^^^^^^
>
>
>
> Now, you might be thinking "well vc9 was there for decoration, and msvc
> is really what you want, and perhaps your environment is messed up?" But
> behold what happens when I do a build for jam.
>
>
>
> vvvvvvvvvv
>
> D:\bjam_1_36_0 >build
>
> Setting environment for using Microsoft Visual Studio 2008 x86 tools.
>
> ###
>
> ### Using 'vc9' toolset.
>
> ###
>
> (... continues to build properly...)
>
> ^^^^^^^^^^
>
>
>
> So build.bat in bjam works flawlessly to autodetect and use one of my
> compilers. So if my environment were messed up why does bjam build
> properly with auto-detection? (btw, I tried autodetection too)

build.bat has nothing to do with the build of C++ Boost.

> So, it appears as though bjam is just mysteriously broken.
> User-config.jam didn't seem useful to me.

It appears that you're trying to build bjam using instructions for C++
Boost, or vice versa.

- Volodya


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