On Jun 9, 8:57 am, lciti <[EMAIL PROTECTED]> wrote: > Hi, Hi Luca,
> I just installed sage in the main node of a cluster. I got an error > while it was building pari. > The error was > "skipping incompatible /home/lciti/opt/sage-3.0.2/local/lib/libgmp.so > when searching for -lgmp" > I discovered that despite the machine is a 2x Dual Xeon Quad core, gmp > was compiled as it > was x32 while pari expected a x86_64 library. > To fix it I did the following after the error message: > > ./sage -sh # to enter a shell with the proper variables set > cd /tmp/ > tar jxvf ~/opt/sage-3.0.2/spkg/standard/gmp-4.2.2.spkg > cd gmp-4.2.2 > nano spkg-install # or vi, or whichever editor you like > # look for the line with ./configure (line 192 in the version I have) > and append: --build=$(gcc -v 2>&1 | sed -n "s|.*host=\([^[:space:]]* > \).*|\1|p") > ./spkg-install > exit > > then rerun make to resume the compilation. > I hope this fix can be useful for others facing the same problem. It very much looks like config.guess on your box misidentifies the Xeon Quad as a non-64 bit CPU. Can you post the output from config.guess, cat /proc/cpuinfo and the relevant portion from "configure", i.e. where the CPU is identified? The fix you posted above works around the problem, but it does not solve it since I believe you end up with a gmp compiled with the generic C sources which would be suboptimal to say the least. > Regards, > Luca Cheers, Michael > ------------------------------------- > $ uname -a > Linux bcisr.essex.ac.uk 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 26 14:14:47 > EDT 2007 x86_64 x86_64 x86_64 GNU/Linux > > $ cat /etc/issue > CentOS release 4.6 (Final) > Kernel \r on an \m > > $ gcc -v > Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs > Configured with: ../configure --prefix=/usr --mandir=/usr/share/man -- > infodir=/usr/share/info --enable-shared --enable-threads=posix -- > disable-checking --with-system-zlib --enable-__cxa_atexit --disable- > libunwind-exceptions --enable-java-awt=gtk --host=x86_64-redhat-linux > Thread model: posix > gcc version 3.4.6 20060404 (Red Hat 3.4.6-9) --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---