GMP 4.2.2 wrong elf class on Solaris 9 Sparc
NOVACK, BRIAN M (ATTSI)
bn5789 at att.com
Thu Jul 24 09:54:45 CEST 2008
I changed it to ABI=32 and it worked:
./configure ABI=32 --with-gmp=/usr/local/gnu
I still had an issue with the library on the check because my GCC
libraries aren't in the standard location yet as I am using a binary of
GCC to build a full GCC of which gmp and mpfr are required. Adding this
director to the LD_LIBRARY_PATH fixed that:
Thanks for the help!
From: Marc Glisse [mailto:marc.glisse at normalesup.org]
Sent: Tuesday, July 22, 2008 10:16 AM
To: gmp-bugs at swox.com
Cc: NOVACK, BRIAN M (ATTSI)
Subject: Re: GMP 4.2.2 wrong elf class on Solaris 9 Sparc
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'
> 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).
More information about the gmp-bugs