This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Build problem with 4.8.0 RC-20130316 and in-tree binutils
- From: Ian Lance Taylor <iant at google dot com>
- To: Matt Godbolt <matt at godbolt dot org>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Wed, 20 Mar 2013 06:18:24 -0700
- Subject: Re: Build problem with 4.8.0 RC-20130316 and in-tree binutils
- References: <CAFWXXN1NQVQyfzAN3W85aZz6mwmQtAEL2z2BammvmzMiHQutKw at mail dot gmail dot com>
On Wed, Mar 20, 2013 at 5:35 AM, Matt Godbolt <matt@godbolt.org> wrote:
>
> I'm having trouble building the RC 4.8.0 with an in-tree binutils on
> an Ubuntu 12.04 x86_64. It seems that while building GCC, the runtime
> library path does not include the objdir/prev-*/.libs directories; so
> whenever any of the built binutils programs are run they fail as their
> shared libraries cannot be found. The SOs are built but aren't on the
> LD_LIBRARY_PATH it seems.
I'm pretty sure that the GCC build never added bfd/.libs or
opcodes/.libs to LD_LIBRARY_PATH.
> --enable-shared
Are you sure that you used --enable-shared when building GCC 4.7 with
an in-tree binutils? That is what is causing your problem; building
the binutils with --enable-shared is causing them to use a shared
libbfd and libopcodes, leading to the failure.
Is it possible that the behaviour of --enable-shared has changed for
the binutils?
Or is it possible that you have an installed libbfd.so and
libopcodes.so, but not one that is new enough for the in-tree binutils
you are building?
Ian