gcc-3.1 build fails on Solaris-2.7 with --with_gnu_ld

Jeff Sturm jsturm@one-point.com
Thu Jul 25 05:43:00 GMT 2002


On Wed, 24 Jul 2002, Christophe Lyon wrote:
> /usr/lib/libdl.so.1: could not read symbols: Invalid operation
>
> Indeed, I think it should read /usr/lib/sparcv9/libdl.so in that case.
> Playing with LD_LIBRARY_PATH can solve this issue, but I don't really
> want /usr/lib/sparcv9 to be first in my $LD_LIBRARY_PATH all the time!

That's what LD_LIBRARY_PATH_64 is for, however...

> Is this a know bug, or am I doing something wrong?

...I suspect a binutils bug.  The incompatible library should be skipped.

You could try a newer binutils, or build with Sun's as/ld, or disable
multilibs.

Jeff



More information about the Gcc mailing list