On Wed, Mar 20, 2013 at 5:35 AM, Matt Godbolt <m...@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

Reply via email to