[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gmp-4.1 solaris9 sparcv9 compile failure
From: |
Kevin Ryde |
Subject: |
Re: gmp-4.1 solaris9 sparcv9 compile failure |
Date: |
Sat, 05 Oct 2002 10:13:06 +1000 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i386-debian-linux-gnu) |
NivenHuH <address@hidden> writes:
>
> # gcc -lgmp test.c
> ld: fatal: file
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/../../../libgmp.so: wrong ELF
> class: ELFCLASS64
> ld: fatal: File processing errors. No output written to a.out
> collect2: ld returned 1 exit status
The gmp you built was for the 64-bit ABI, so you need to use "gcc -m64
-mptr64".
If you want a 32-bit gmp you can use "./configure ABI=32" (and don't
use the GMP_LDFLAGS override), though this will be slower.
See "ABI and ISA" in the gmp manual for more.