I seem to have a problem with Pari.

 * sun Ultra 27 (Xeon processor)
 * Sage 4.3.1.alpha0
 * Sun Studio 12.1 compiler.
 * Sage64 set to "yes"

in other words, I'm trying to be brave (stupid?) and create a 64-bit OpenSolaris Sage binary with Sun Studio.

Many things work, but Pari is giving me a headache. It creates all the objects as 64-bit, then when it tries to link them, it complains one of them is 64-bit.

To the best of my knowledge, all binaries created are 64-bit. (I've gradually got rid of most of them that build 32-bit). The:

ld: fatal: file mp.o: wrong ELF class: ELFCLASS64

is the key below. It indicates its found a 64-bit object, when it was expecting a 32-bit one. But it's not clear why it should be 32-bit.

At the line that fails, the Sun C compiler /opt/sunstudio12.1/bin/cc is being used as a linker.


/opt/sunstudio12.1/bin/cc -c -fast -fsimple=1 -g -m64 -I. -I../src/headers -o elliptic.o ../src/modules/elliptic.c /opt/sunstudio12.1/bin/cc -c -fast -fsimple=1 -g -m64 -I. -I../src/headers -o galois.o ../src/modules/galois.c /opt/sunstudio12.1/bin/cc -c -fast -fsimple=1 -g -m64 -I. -I../src/headers -o groupid.o ../src/modules/groupid.c /opt/sunstudio12.1/bin/cc -c -fast -fsimple=1 -g -m64 -I. -I../src/headers -o kummer.o ../src/modules/kummer.c /opt/sunstudio12.1/bin/cc -c -fast -fsimple=1 -g -m64 -I. -I../src/headers -o mpqs.o ../src/modules/mpqs.c /opt/sunstudio12.1/bin/cc -c -fast -fsimple=1 -g -m64 -I. -I../src/headers -o nffactor.o ../src/modules/nffactor.c /opt/sunstudio12.1/bin/cc -c -fast -fsimple=1 -g -m64 -I. -I../src/headers -o part.o ../src/modules/part.c /opt/sunstudio12.1/bin/cc -c -fast -fsimple=1 -g -m64 -I. -I../src/headers -o stark.o ../src/modules/stark.c /opt/sunstudio12.1/bin/cc -c -fast -fsimple=1 -g -m64 -I. -I../src/headers -o subfield.o ../src/modules/subfield.c /opt/sunstudio12.1/bin/cc -c -fast -fsimple=1 -g -m64 -I. -I../src/headers -o thue.o ../src/modules/thue.c
rm -f libpari-gmp.so.2.3.3
/opt/sunstudio12.1/bin/cc -o libpari-gmp.so.2.3.3 -G -h libpari-gmp.so.2 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 -lc -lm -L/export/home/drkirkby/sage-4.3.1.alpha0/local/lib -lgmp
ld: fatal: file mp.o: wrong ELF class: ELFCLASS64
ld: fatal: file processing errors. No output written to libpari-gmp.so.2.3.3
make[3]: *** [libpari-gmp.so.2.3.3] Error 1
make[3]: Leaving directory `/export/home/drkirkby/sage-4.3.1.alpha0/spkg/build/pari-2.3.3.p7/src/Osolaris-ix86'
make[2]: *** [gp] Error 2
make[2]: Leaving directory `/export/home/drkirkby/sage-4.3.1.alpha0/spkg/build/pari-2.3.3.p7/src'
Error building GP

real    2m8.417s
user    2m0.155s
sys     0m6.952s
sage: An error occurred while installing pari-2.3.3.p7


Any ideas?????????

Dave
-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to