bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GMP 4.1+patches on alpha linux ev67


From: Kevin Ryde
Subject: Re: GMP 4.1+patches on alpha linux ev67
Date: Sat, 07 Sep 2002 08:19:32 +1000
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i386-debian-linux-gnu)

David Bremner <address@hidden> writes:
>
> gcc -DHAVE_CONFIG_H -I. -I../../gmp/tests -I.. -I../../gmp -g -O2 -mcpu=ev67 
> -Wa,-mev67 -c ../../gmp/tests/refmpf.c  -fPIC -DPIC
> Assembler messages:
> Warning: Unknown CPU identifier `ev67'

Thanks, I see it's only a warning not an error.  configure will fall
back on -mev6 if there's an error, but it doesn't recognise only a
warning.  I'll see if that can be improved.

> gcc -g -O2 -mcpu=ev67 -Wa,-mev67 -o .libs/t-bswap t-bswap.o  
> ./.libs/libtests.a /home/bremner/build/gmpbuild/.libs/libgmp.so 
> ../.libs/libgmp.so -Wl,--rpath -Wl,/usr/local/lib
> /home/bremner/build/gmpbuild/.libs/libgmp.so: undefined reference to 
> `__gmpn_clz_tab'

Oops, thanks, I guess mpn/alpha/cntlz.asm is using that, but
longlong.h thinks it's not needed on ev67.  On ev67 the ctlz
instruction will be used, but cntlz.asm is still included in the link.
Fine for static libgmp.a, but not shared libgmp.so.

The easiest workaround would be to remove the #ifdef from mp_clz_tab.c
to get the relevant table included.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]