Bill Allombert on Wed, 02 May 2007 14:50:20 +0200

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

Re: compilation problem

On Wed, May 02, 2007 at 08:54:34AM +0100, Robin Hankin wrote:
> Hello everyone
> After
> ./configure --with-gmp

> typing "make all" gives:
> Making gp in Odarwin-ppc
> File ../src/funclist not changed.
> /usr/bin/gcc  -c -O3 -Wall -fno-strict-aliasing -fomit-frame- 
> pointer    -I. -I../src/headers -fno-common -o default.o ../src/ 
> language/default.c
> /usr/bin/gcc  -c -O3 -Wall -fno-strict-aliasing -fomit-frame- 
> pointer    -I. -I../src/headers -I../src/language -I/usr/local/ 
> include -o gp.o ../src/gp/gp.c
> /usr/bin/gcc  -c -O3 -Wall -fno-strict-aliasing -fomit-frame- 
> pointer    -I. -I../src/headers -I../src/language -I/usr/local/ 
> include -o gp_rl.o ../src/gp/gp_rl.c
> rm -f gp-sta
> /usr/bin/gcc  -o gp-sta -O3 -Wall -fno-strict-aliasing -fomit-frame- 
> pointer     mp.o mpinl.o Flx.o Qfb.o RgX.o alglin1.o alglin2.o  
> arith1.o arith2.o base1.o base2.o base3.o base4.o base5.o bibli1.o  
> bibli2.o buch1.o buch2.o buch3.o buch4.o galconj.o gen1.o gen2.o  
> gen3.o ifactor1.o perm.o polarit1.o polarit2.o polarit3.o rootpol.o  
> subcyclo.o subgroup.o trans1.o trans2.o trans3.o anal.o compat.o  
> default.o errmsg.o es.o init.o intnum.o members.o sumiter.o aprcl.o  
> elldata.o elliptic.o galois.o groupid.o kummer.o mpqs.o nffactor.o  
> part.o stark.o subfield.o thue.o darwin.o gp.o gp_init.o gp_rl.o  
> highlvl.o whatnow.o plotX.o plotport.o  -L/usr/local/lib -lreadline - 
> L/usr/lib -lncurses -L/usr/X11R6/lib -lX11  -L/usr/local/lib -lgmp
> /usr/bin/ld: truncated or malformed archive: /usr/local/lib/libgmp.a  
> (ranlib structures in table of contents extends past the end of the  
> table of contents, can't load from it)
> what am I doing wrong?

You need to run 'make clean' after Configure if you changed from non-GMP
to GMP.  If you did that, then maybe the file /usr/local/lib/libgmp.a is
not working. Try to do
ranlib /usr/local/lib/libgmp.a