Manuel Bouyer | 24 Aug 2011 19:20

libgmp missing ?

hello,
running a build.sh targetting i386 on a current mips64 platform (evbmips),
I ended up with:
checking whether gcc __attribute__ ((mode (XX))) works... yes
checking for recent GMP... yes
checking for __gmpz_init in -lgmp... no
configure: error: libgmp not found or uses a different ABI.
Please read the INSTALL file -- see "In case of problem".
*** [.configure_done] Error code 1

it looks like there's no libgmp on evbmips64 (neither o32, n32 or n64).
Is it expected ?

--

-- 
Manuel Bouyer <bouyer <at> antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--

matthew green | 24 Aug 2011 23:30
Picon
Favicon

re: libgmp missing ?


> hello,
> running a build.sh targetting i386 on a current mips64 platform (evbmips),
> I ended up with:
> checking whether gcc __attribute__ ((mode (XX))) works... yes
> checking for recent GMP... yes
> checking for __gmpz_init in -lgmp... no
> configure: error: libgmp not found or uses a different ABI.
> Please read the INSTALL file -- see "In case of problem".
> *** [.configure_done] Error code 1
> 
> it looks like there's no libgmp on evbmips64 (neither o32, n32 or n64).
> Is it expected ?

probably similar to the macosx build issues others have seen.  can
you see what default ABI gmp is building (src/tools/gmp), and then
see what difference it has to mpfr (src/tools/mpfr).

the config.log files in each build dir should be useful.  could you
make them available somewhere?  possibly we need to patch gmp for
mips64 to use default not -64.  

libgmp is not installed by netbsd by default; we only build and
link against static versions for the in-tree compiler.  any other
user of these needs their own copy, and this is what is failing
for you.

.mrg.

(Continue reading)

Manuel Bouyer | 25 Aug 2011 00:08

Re: libgmp missing ?

On Thu, Aug 25, 2011 at 07:30:51AM +1000, matthew green wrote:
> 
> > hello,
> > running a build.sh targetting i386 on a current mips64 platform (evbmips),
> > I ended up with:
> > checking whether gcc __attribute__ ((mode (XX))) works... yes
> > checking for recent GMP... yes
> > checking for __gmpz_init in -lgmp... no
> > configure: error: libgmp not found or uses a different ABI.
> > Please read the INSTALL file -- see "In case of problem".
> > *** [.configure_done] Error code 1
> > 
> > it looks like there's no libgmp on evbmips64 (neither o32, n32 or n64).
> > Is it expected ?
> 
> probably similar to the macosx build issues others have seen.  can
> you see what default ABI gmp is building (src/tools/gmp), and then
> see what difference it has to mpfr (src/tools/mpfr).

In the build output I remember seeing ./configure selecting o32.
But I didn't notice for which part of the build this was.
tools/gmp/build has:
java:/home/bouyer/tmp/i386/obj/home/bouyer/src/tools/gmp/build>file version.o 
version.o: ELF 32-bit LSB relocatable, MIPS, MIPS-I version 1 (SYSV), with unknown capability 0xf41 =
0x756e6700, with unknown capability 0x70100 = 0x3040000, not stripped

mpfr config.log has:
configure:13596: cc -o conftest -O  -I/home/bouyer/tmp/i386/obj/home/bouyer/curr
ent/src/tooldir/include  -L/home/bouyer/tmp/i386/obj/home/bouyer/current/src/too
ldir/lib conftest.c -lgmp   >&5
(Continue reading)


Gmane