|
Boost-Build : |
Subject: Re: [Boost-build] [boost][build] using bjam with clang++
From: Bruno Santos (bsantos_at_[hidden])
Date: 2012-03-13 07:30:15
On 13/03/2012, at 03:32, Greg Rubino wrote:
> Hi,
>
> I'm trying to figure out how to build with bjam using clang. I'm
> still a noob at both, so bear with me. I read in the docs somewhere
> that I just need a user-config.jam in my home dir (err, any parent of
> my build dir?) with the line:
>
> using clang ;
>
> Whenever I build after creating that file, I get the following error message:
>
>
> $ bjam
> clang.jam: No such file or directory
> /usr/share/boost-build/build/toolset.jam:36: in toolset.using
> rule clang.init unknown in module toolset.
> /usr/share/boost-build/build/project.jam:825: in using
> /home/greg/user-config.jam:1: in modules.load
> /usr/share/boost-build/build-system.jam:104: in load-config
> /usr/share/boost-build/build-system.jam:154: in load
> /usr/share/boost-build/kernel/modules.jam:261: in import
> /usr/share/boost-build/kernel/bootstrap.jam:132: in boost-build
> /usr/share/boost-build/boost-build.jam:1: in module scope
>
> I'm guessing it's something simple. I believe that I have boost.build
> v2 and bjam 3.1.18 and I'm running on Linux. I definitely have clang
> in my path and I've test built with it. I think I'm just missing a
> config file, but I'm not sure where I can find it.
Your problem is an outdated boost.build. To get the latest version download boost 1.48 or 1.49,
go to tools/build/v2 and:
$./bootstrap.sh
$./b2 install
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