Boost logo

Boost-Build :

Subject: Re: [Boost-build] having trouble compiling with gcc
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2011-10-13 13:58:51


On Wednesday, 12. October 2011 09:49:55 Robert Ramey wrote:
> Jürgen Hunold wrote:
> > Hi Robert,
> >
> > On Monday, 10. October 2011 23:53:30 Robert Ramey wrote:
> >> $ bjam -n --dump-tests toolset=gcc
> >> C:/BoostRelease/tools/build/v2/tools\gcc.jam:77: in gcc.init from
> >> module gcc error: toolset gcc initialization:
> >> error: provided command 'g++-4' not found
> >
> > Please try bjam -n --debug-configuration toolset=gcc
> > This should provide more diagnostics to post here.
>
> That seemed to provide some useful information; Here is what my cygwin
> command line output shows. MKS korn shell shows the same:

> C:/BoostRelease/tools/build/v2/tools\gcc.jam:77: in gcc.init from module
> gcc error: toolset gcc initialization:
> error: provided command 'g++' not found
> error: initialized from C:\BoostRelease\tools/build/v2\user-config.jam:46

> So I the the g++ executable doesn't seem to be found under bjam while under
> the shell it's available via the $PATH

I would bet that Boost.Build is not using the shell the way you think it does
;-))

> The relevant part of my user_config.jam is:
>
> # Configure specific gcc version, giving alternative name to use.
> # using gcc : 3.2 : g++-3.2 ;
> using gcc : : g++ :
> <linkflags>-Wl,--enable-auto-import
> <linkflags>-Wl,--enable-stdcall-fixup
> ;
>
> the site_config.jam is the default from the release version.

site_config.jam is irre

> I've also tried variations of toolset=g++, toolset=g++-4, etc without any
> success.
> I"ve also tried setting the user_config to various things like
>
> using gcc: 4.5.3 : g++4 ;
> using gcc: 4.5.3 : g++ ;
>
> etc.
>
> Any suggestions appreciated.

As I wrote in my previous email:

> The best solution (especially on windows) is just to provide the binary
> including the full path in unix syntax (with quotes if the path contains
> spaces)
>
> using gcc : : "c:/whatever/bin/g++-4" : ... ;

I use:

using gcc : 4.6 : F:/programme/mingw-4.6.2-32/bin/g++

for mingw-w64 32-bit compiler.

Yours,

Jürgen

-- 
Dipl.-Math. Jürgen Hunold       | IVE mbH
Software-Entwickler             | Lützerodestraße 10 
Tel: +49 511 897668 33          | 30161 Hannover, Germany
Fax: +49 511 897668 29          | http://www.ivembh.de
juergen.hunold_at_[hidden]        | 
                                | Geschäftsführer:
Sitz des Unternehmens: Hannover | Univ.-Prof. Dr.-Ing. Thomas Siefer               
Amtsgericht Hannover, HRB 56965 | PD Dr.-Ing. Alfons Radtke  

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