Boost logo

Boost-Build :

Subject: Re: [Boost-build] using /home installed gcc
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-04-27 01:37:35


On Wednesday, April 27, 2011 04:13:45 Amos Anderson wrote:
> are there instructions anywhere on how to get bjam to find and use a
> custom gcc? that is, I want to try a more recent version of gcc, so I
> downloaded and installed v4.5.2 with --prefix=/home/amosa. bjam was
> able to find it, but I was getting link errors with libstdc++.so.6. ln
> ignored the version I think it's supposed to use in
> /home/amosa/lib/libstdc++.so.6, and when I used link flags to grab it,
> ln complained it was "incompatible". now, I may not have
> compiled/installed my compiler correctly... but that step seemed
> pretty straight forward...
>
> the instructions I found:
>
> http://www.boost.org/boost-build2/doc/html/bbv2/reference/tools.html#bbv2.r
> eference.tools.compiler.gcc
>
> seem to presume that the compiler I want to use, with all associated
> libraries, are in /usr/bin. can anybody give me an example with the
> correct "using" structure?

        using gcc : custom : /home/amosa/bin ;

This assumes you actually used --prefix=/home/amosa (which seems like not
a very good idea, due a pile of random stuff dumped right in your home).

The errors you hint on (but without any details), suggest your compiler
is not really installed properly or correctly. Usually, after installing
a compiler to a custom prefix, it just works. For the binaries to work,
you'd have to use LD_LIBRARY_PATH.

- Volodya

-- 
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