Boost logo

Boost-Build :

Subject: Re: [Boost-build] Configuring multiple versions of gcc
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-05-28 03:24:22


On Friday 21 May 2010 05:29:41 Anthony Foglia wrote:

> I'm having trouble setting up boost-build to use multiple version of
> gcc. We're running boost-build on Ubuntu, which first looks in
> /etc/site-config.jam where it finds:
>
> using gcc ;
>
> which works fine with the default gcc version, 4.4.1. Now, if in my
> Jamroot, I put
>
> using gcc : 4.1 : g++-4.1 ;
>
> When I run bjam lib/utilities/ -a release toolset=gcc-4.1,
> (lib/utilities is one of our smallest targets) I get the following error:
>
> error: at /usr/share/boost-build/build/project.jam:825
> error: duplicate initialization of gcc with the following parameters:
> error: version = 4.1
>
> What is the proper way to configure a second version of gcc?

You have to put your second using in user-config.jam. Putting it in Jamroot
is technically possible, but it's a bit too late for some things.

Thanks,

--
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

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