I spent the whole day trying to compile Math::Pari with no success. My system is a Solaris 9 sparc, with gcc 3.4.2 and GNU make 3.8.0.
bash-2.05# make cd libPARI && make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PRE +FIX="" OPTIMIZE="-O" PASTHRU_DEFINE="" PASTHRU_INC="" make[1]: Entering directory `/exlibris/sfx_ver/sfx_version_3/app/.cpan +/build/Math-Pari-2.010602/libPARI' gcc -c -I.././pari-2.1.6/src/headers -I.././pari-2.1.6/src/graph -I. +-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE - +D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC -De +rr=pari_err -DSOLARIS -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o +bibli1.o .././pari-2.1.6/src/basemath/bibli1.c gcc -c -I.././pari-2.1.6/src/headers -I.././pari-2.1.6/src/graph -I. +-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE - +D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC -De +rr=pari_err -DSOLARIS -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o +buch2.o .././pari-2.1.6/src/basemath/buch2.c gcc -c -I.././pari-2.1.6/src/headers -I.././pari-2.1.6/src/graph -I. +-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE - +D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC -De +rr=pari_err -DSOLARIS -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o +init.o .././pari-2.1.6/src/language/init.c gcc -c -I.././pari-2.1.6/src/headers -I.././pari-2.1.6/src/graph -I. +-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE - +D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC -De +rr=pari_err -DSOLARIS -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o +gen1.o .././pari-2.1.6/src/basemath/gen1.c ./pariinl.h: In function `gmul': ./pariinl.h:887: error: asm-specifier for variable `hiremainder' confl +icts with asm clobber list make[1]: *** [gen1.o] Error 1 make[1]: Leaving directory `/exlibris/sfx_ver/sfx_version_3/app/.cpan/ +build/Math-Pari-2.010602/libPARI' make: *** [libPARI/libPARI.a] Error 2
I tried setting many different values for the flags during perl Makefile.PL, including machine=none. But nothing worked, always the same error. Finally I found this: http://www.talkaboutprogramming.com/group/comp.lang.perl.modules/messages/64935.html
And decided to give to try it with an older version of gcc: version 3.1.1. I was afraid it was going to fail because perl was compiled with gcc 3.4.2. Well, I did get a lot of warnings, but it compiled! It also passed 'make test'.
I thought someone could benefit from this.
If someone has a better solution, please share.
-Andrés| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |