|
Boost-Build : |
Subject: Re: [Boost-build] having trouble compiling with gcc
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2011-10-11 00:58:24
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.
> $ g++-4 -v
> Using built-in specs.
> Thread model: posix
> gcc version 4.5.3 (GCC)
>
> So it looks like the path I'm using in my shell isn't the same one that
> bjam is using.
Yes.
> I've done the exact same experiments with my cygwin shell ... with (almost)
> the exact same
> results. The only difference is the cygwin path displays differently -
> which seems OK to me.
>
> The relevant section 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++-4 :
> <linkflags>-Wl,--enable-auto-import
> <linkflags>-Wl,--enable-stdcall-fixup
> ;
> which looks correct to me - especially since my bjam line shows toolset=gcc
> and this is getting rendered as g++-4 by the time it fails to be found.
Well, if no gcc is found, it will just spit out the messages cited above and
nothing more.
> Has anyone else had a similar problem and found the right solution? any
> advice appreciated.
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" : ... ;
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