Dan Drake wrote:
Hi,

I can't get 6.2 to build -- it keeps failing on cddlib.

The log is attached, but I'm pretty sure the key part is:

/bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2 -L/usr/local/lib 
-L/var/tmp/ddrake/sage/local/lib  -o scdd_gmp simplecdd.o 
../lib-src-gmp/libcddgmp.la -lgmp
libtool: link: gcc -g -O2 -o .libs/scdd_gmp simplecdd.o -L/usr/local/lib 
-L/var/tmp/ddrake/sage/local/lib ../lib-src-gmp/.libs/libcddgmp.so 
/var/tmp/ddrake/sage/local/lib/libgmp.so /usr/local/lib/libgmp.so -Wl,-rpath 
-Wl,/var/tmp/ddrake/sage/local/lib
/usr/local/lib/libgmp.so: could not read symbols: File in wrong format

It looks like the linker is finding a system libgmp.so instead of the
one in Sage's tree. How do I get Sage to ignore it?

Hmmm, in spkg-install we meanwhile (only) have

export CPPFLAGS="-I$SAGE_LOCAL/include $CPPFLAGS"
export LDFLAGS="-L$SAGE_LOCAL/lib $LDFLAGS"

So probably we have to pass the location of GMP to 'configure' as well.

(For the previous version, 094f, Volker added a patch to let 'configure' take '--with-gmp=...'.)

Although we apparently also patch all the Makefiles... (haven't looked at those). And e.g. scdd, lcdd, redcheck etc. get linked correctly.

Jean-Pierre will know better.


-leif

--
() The ASCII Ribbon Campaign
/\   Help Cure HTML E-Mail

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to