GMP 4.2.2 wrong elf class on Solaris 9 Sparc

Marc Glisse marc.glisse at normalesup.org
Tue Jul 22 17:15:35 CEST 2008


On Tue, 22 Jul 2008, Torbjorn Granlund wrote:

> "NOVACK, BRIAN M (ATTSI)" <bn5789 at att.com> writes:
>
>  I'm on Solaris 9 (Sun V880 sparc).  gcc 3.3.2.
>
>  ./configure --prefix=/usr/local/gnu --with-gnu-ld CC='gcc -m64'
>  LDFLAGS='-L/export/home/bn5789/tmp/usr/local/lib -L/usr/local/gnu/lib'
>
>  When I run make check, I get the following.  I can't seem to find any
>  docs telling me how to fix this.  Please help.

You probably want -L...lib/sparcv9 and most importantly the corresponding 
-R flag (-L for compile time path, -R for run time path).

> This is a GCC problem, not a GMP problem.  Typically, it will happen
> to hello.c too, in 64-bit mode.
>
> I don't think there is anything the GMP maintainers can do about this.

Agreed. I wish gcc would ship with default specs that generate a useful 
rpath when it is not installed in /usr (obviously with an option to cancel 
it for people who know what they are doing).

-- 
Marc Glisse


More information about the gmp-bugs mailing list