Math::Pari doesn't compile with GCC 3.4.2 in Solaris 9 sparc

andresm_at_exlibris-usa.com
Date: 01/18/05


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.


Relevant Pages

  • Re: <ftream> errors under g++ 3.2.2
    ... > gives error messages about implicit typenames being deprecated, ... is nothing you can do to your code to prevent the warnings. ... From your output, I don't see compile failures, I see warnings. ... I am surprised that a GCC header would have an implicit ...
    (freebsd-current)
  • Re: Atomic statements execute more than once inside a thread
    ... When compiled with gcc: ... Copyright Microsoft Corp 1984-1998. ... If you're going to use Microsoft Visual C++ to compile C code that you ... Any warnings you get from either of these compilers should be ...
    (comp.lang.c)
  • RE: Where can I obtain the gcc 2.96 RPM, src, or similar?
    ... talk2UtimeSince doing this i've been unable to compile mod_jk into apache. ... Subject: RE: Where can I obtain the gcc 2.96 RPM, src, or similar? ... is a compiler switch to raise the level of the severity of the warnings so ...
    (RedHat)
  • GCC 3.3.1, new warnings with <limits>
    ... If I compile the following program: ... with the following flags: ... I get lots of warnings that did not appear in GCC 3.2: ...
    (freebsd-current)
  • Re: How do I install this missing library?
    ... you really should be carefully following LSTC's installation ... libg2c is part of gcc. ... to tell a newcomer to compile. ... like the source code to GNU tar, and make sure you understand what's ...
    (comp.os.linux.misc)