Boost logo

Boost-Build :

Subject: [Boost-build] Configuring multiple versions of gcc
From: Anthony Foglia (AFoglia_at_[hidden])
Date: 2010-05-20 21:29:41

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?

And this is a little troubling, if I don't add the second using
statement, and try bjam lib/utilities/ -a release toolset=gcc-4.1
cflags=--version, then bjam runs, but with gcc version 4.4. Somehow,
bjam is translating gcc-4.1 to just gcc.

I'm running:
Boost.Build V2 (Milestone 12)
Boost.Jam 03.1.16

Anthony Foglia
Princeton Consultants
(609) 987-8787 x233

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at