Math::Pari doesn't compile with GCC 3.4.2 in Solaris 9 sparc
andresm_at_exlibris-usa.com
Date: 01/18/05
- Next message: Terrence Brannon: "Re: moving from DBI 1.32 to 1.46 problem"
- Previous message: brundlefly76_at_hotmail.com: "Apache::Reload Depricated?"
- Next in thread: Ilya Zakharevich: "Re: Math::Pari doesn't compile with GCC 3.4.2 in Solaris 9 sparc"
- Reply: Ilya Zakharevich: "Re: Math::Pari doesn't compile with GCC 3.4.2 in Solaris 9 sparc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 17 Jan 2005 16:24:54 -0800
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.
- Next message: Terrence Brannon: "Re: moving from DBI 1.32 to 1.46 problem"
- Previous message: brundlefly76_at_hotmail.com: "Apache::Reload Depricated?"
- Next in thread: Ilya Zakharevich: "Re: Math::Pari doesn't compile with GCC 3.4.2 in Solaris 9 sparc"
- Reply: Ilya Zakharevich: "Re: Math::Pari doesn't compile with GCC 3.4.2 in Solaris 9 sparc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|