Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Math::Pari Compile Issues

by DrZaius (Monk)
on Jul 06, 2001 at 00:53 UTC ( [id://94279]=perlquestion: print w/replies, xml ) Need Help??

DrZaius has asked for the wisdom of the Perl Monks concerning the following question:

Hey,

I'm reaching the limits of my sanity. I can't get Math::Pari to compile on a Pentium II Linux (Mandrake 8) box. It seems to be breaking on some assembler instructions.

I get the following error when trying to compile the pari lib part:

cd libPARI && make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PRE +FIX="/usr" OPTIMIZE="-O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro +-march=i586 -ffast-math" make[1]: Entering directory `/root/.cpan/build/Math-Pari-2.001804/libP +ARI' cc -c -I.././pari-2.1.1/src/headers -I.././pari-2.1.1/src/graph -I. -f +no-strict-aliasing -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -m +arch=i586 -ffast-math -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -f +PIC -Derr=pari_err -D__HAS_NO_ASM__ -DDYNAMIC_PLOTTING -o mp.o .././p +ari-2.1.1/src/kernel/none/mp.c {standard input}: Assembler messages: {standard input}:6268: Error: suffix or operands invalid for `div' make[1]: *** [mp.o] Error 1 make[1]: Leaving directory `/root/.cpan/build/Math-Pari-2.001804/libPA +RI' make: *** [libPARI/libPARI.a] Error 2
Strangely enough I can get this module to compile on two other boxes. The module would not compile on one of those boxes for about a week and a half. I tried it after a few days of not thinking about the problem and it just worked.

These boxes are the same architecture and the compilers are in the gcc 2.96.* range.

Does anybody have any ideas or experience with getting Math::Pari to compile?

Thanks.

Replies are listed 'Best First'.
Re: Math::Pari Compile Issues
by runrig (Abbot) on Jul 06, 2001 at 01:07 UTC
    I've just gone through a similar problem compiling Math::Pari on solaris, it was looking for solaris C libraries even though I was using gcc, not solaris C. So after I fixed that, some core perl function names were being exported, like shift, so the make test wasn't passing.

    So after I tracked down most of the problem, and wrote to Ilya about it, he writes back with the actual latest version in his own ftp directory at ftp://ftp.math.ohio-state.edu/pub/users/ilya/perl/modules where it was all fixed already. (Try v2.01008). I really don't know if that'll help or why the latest is not in CPAN, but good luck...

      I tried that but I still get the same errors. I'm thinking the problem has to do with some preprocessing thing.

      Thanks for the suggestion.

        I had that problem in April 2002. Ilya Zakharevich's patch
        in this link solved it.

        I hope this information helps.

        Sherwin Daganato

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://94279]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found