|
Posted by andresm on January 17, 2005, 5:24 pm
Please log in for more thread options
I spent a long time trying to compile Math::Pari with no success. My
system is a Solaris 9 sparc, with gcc 3.4.2 and GNU make 3.80.
This is what happened during the 'make':
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 post:
http://groups-beta.google.com/group/comp.lang.perl.modules/browse_thread/thread/eee2dbce04632b8d/d7f4942e320661da?q=pariinl.h:887:+error:+asm-specifier+for+variable+%60hiremainder%27+conflicts+with+asm+clobber+list&_done=%2Fgroups%3Fq%3Dpariinl.h:887:+error:+asm-specifier+for+variable+%60hiremainder%27+conflicts+with+asm+clobber+list%26num%3D100%26hl%3Den%26lr%3D%26client%3Dfirefox%26rls%3Dorg.mozilla:en-US:official%26sa%3DN%26tab%3Dwg%26&_doneTitle=Back+to+Search&&d#d7f4942e320661da
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.8.0. Well, I did get a lot of warnings, but it compiled! It also
passed the 'make test'.
The warnings were all similar to this:
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
I thought someone could benefit from this.
If anyone has a better solution, please do share.
Regards,
---
Andrés Monroy-Hernández
Ex Libris, Inc.
|
|
Posted by Ilya Zakharevich on January 19, 2005, 5:49 am
Please log in for more thread options
[A complimentary Cc of this posting was sent to
> If anyone has a better solution, please do share.
The first thing to report is whether GP/PARI would compile itself. If
it does, I need to know the commandlines for this .c file used by
GP/PARI and by Math::Pari.
Hope this helps,
Ilya
|
| Similar Threads | Posted | | math::pari on solaris 9 make failure | December 8, 2004, 6:36 am |
| Failure to build Math::Pari Solaris 10 Studio 11 | November 7, 2006, 1:28 pm |
| Des::Crypt Will not Compile On Solaris 8 Using GCC | December 7, 2005, 2:58 pm |
| Help with Math::GMP compile on AIX 5.3 | September 11, 2007, 4:47 pm |
| Math::Pari headaches | August 15, 2006, 1:50 pm |
| Memory Leak in Math::Pari | December 16, 2004, 6:21 am |
| Math::Pari 'factor' is wrong | March 17, 2006, 1:41 pm |
| Building Math::Pari using Sun Studio 11 | October 16, 2006, 11:46 am |
| Newbie Desperate for Help Installing Math::Pari | August 9, 2006, 10:25 pm |
| Math-Pari-2.010501- make - cannot exec 'cc1' | September 26, 2004, 11:09 am |
|