Skip Menu |

This queue is for tickets about the Math-Pari CPAN distribution.

Report information
The Basics
Id: 18447
Status: open
Priority: 0/
Queue: Math-Pari

People
Owner: Nobody in particular
Requestors: kneeley_law [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.010704
Fixed in: (no value)



Subject: Compile Failure on 64-bit sparcv9 SunOS 5.9
Please assist. I have been trying to install this for three days without any success. My make and C skills are limited, so please be kind if I am making a stupid mistake. Here is perl -V root@nvlv-ncobserv-d:/# perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=solaris, osvers=2.9, archname=sun4-solaris uname='sunos nvlv-ncobserv-d 5.9 generic_117171-14 sun4u sparc sunw,ultra-60 ' config_args='-de' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -pipe - I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='-fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='3.3.2', gccosandvers='solaris2.9' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib ' libpth=/usr/local/lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under solaris Compiled at Mar 27 2006 17:07:41 @INC: /usr/local/lib/perl5/5.8.8/sun4-solaris /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl . Here is attempt to compile: root@nvlv-ncobserv-d:/tmp/Math-Pari-2.010704# perl Makefile.PL Setting up Math::Pari with Perl 5.008008 on solaris version 2.9; cc=gcc, gccversion=3.3.2, ccflags='-fno-strict-aliasing -pipe - I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', ld=gcc, ldflags=' -L/usr/local/lib ', optimize='-O'. Found GP/PARI build directory in ../pari-2.1.7 (integer-formatted version 2001007). ...Generating libPARI/paricfg.h ... Scanning header files... ...ulong ...getrusage Creating libPARI/paricfg.h... ...Processor of family `sparcv9' detected Checking if your kit is complete... Looks good ...Processor of family `sparcv9' detected ...I will use assembler build of type 'sparcv8_micro'. ...Assembler is not GNU assembler Writing Makefile for Math::PARI::libPARI Writing Makefile for Math::Pari root@nvlv-ncobserv-d:/tmp/Math-Pari-2.010704# make cp libPARI.dumb.pod blib/lib/Math/libPARI.dumb.pod cp PariInit.pm blib/lib/Math/PariInit.pm cp Pari.pm blib/lib/Math/Pari.pm cp libPARI.pod blib/lib/Math/libPARI.pod cd libPARI && make LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="- O" PREFIX="/usr/local" PASTHRU_DEFINE="" PASTHRU_INC="" make[1]: Entering directory `/tmp/Math-Pari-2.010704/libPARI' /usr/bin/perl -pe1 ../../pari- 2.1.7/src/kernel/sparcv8/level0.h ../../pari- 2.1.7/src/kernel/none/level1.h > pariinl.h gcc -c -I../../pari-2.1.7/src/headers -I../../pari-2.1.7/src/graph - I. -fno-strict-aliasing -pipe -I/usr/local/include - D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" - DXS_VERSION=\"\" -fPIC -Derr=pari_err -DSOLARIS -DASMINLINE - DGCC_INLINE -DDYNAMIC_PLOTTING -o es.o ../../pari- 2.1.7/src/language/es.c pariinl.h: In function `mulssmod': pariinl.h:887: error: asm-specifier for variable `hiremainder' conflicts with asm clobber list pariinl.h:887: confused by earlier errors, bailing out make[1]: *** [es.o] Error 1 make[1]: Leaving directory `/tmp/Math-Pari-2.010704/libPARI' make: *** [libPARI/libPARI.a] Error 2 Thanks a million if you are able to help me get this straightened out. Regards, Kenn
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #18447] Compile Failure on 64-bit sparcv9 SunOS 5.9
Date: Thu, 30 Mar 2006 19:31:31 -0800
To: Guest via RT <bug-Math-Pari [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Wed, Mar 29, 2006 at 09:45:03PM -0500, Guest via RT wrote: Show quoted text
> Subject: Compile Failure on 64-bit sparcv9 SunOS 5.9
Show quoted text
> Compiler: > cc='gcc', ccflags ='-fno-strict-aliasing -pipe - > I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', > optimize='-O', > cppflags='-fno-strict-aliasing -pipe -I/usr/local/include' > ccversion='', gccversion='3.3.2', gccosandvers='solaris2.9' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=8, prototype=define
Do not see anything 64-bit here... Show quoted text
> gcc -c -I../../pari-2.1.7/src/headers -I../../pari-2.1.7/src/graph - > I. -fno-strict-aliasing -pipe -I/usr/local/include - > D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" - > DXS_VERSION=\"\" -fPIC -Derr=pari_err -DSOLARIS -DASMINLINE - > DGCC_INLINE -DDYNAMIC_PLOTTING -o es.o ../../pari- > 2.1.7/src/language/es.c > pariinl.h: In function `mulssmod': > pariinl.h:887: error: asm-specifier for variable `hiremainder' > conflicts with asm clobber list > pariinl.h:887: confused by earlier errors, bailing out
Another user who had the same problem had the ACTUAL gcc versions 4.0. What you get from gcc --version ? Did you compile Perl on your machine yourself, as required per docs? Thanks, Ilya
From: TLoD_Snake

Message body is not shown because it is too large.

CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #18447] Compile Failure on 64-bit sparcv9 SunOS 5.9
Date: Sun, 9 Apr 2006 00:14:44 -0700
To: Guest via RT <bug-Math-Pari [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Sat, Apr 08, 2006 at 01:55:47PM -0400, Guest via RT wrote: Show quoted text
> > Queue: Math-Pari > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=18447 > > > I have problems with compilation Math::Pari on FedoraCore 5
Show quoted text
> t/zz_leak........Can't load > '/root/.cpan/build/Math-Pari-2.010704/blib/arch/auto/Math/Pari/Pari.so' > for module Math::Pari: > /root/.cpan/build/Math-Pari-2.010704/blib/arch/auto/Math/Pari/Pari.so: > cannot restore segment prot after reloc: Permission denied at > /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230. > at t/zz_leak.t line 17
I googled for "cannot restore segment prot after reloc" and the first hit on the list says: Topic: Some Linux distributions with SELinux enabled may prevent IDL from running under the default security context. This TechTip is a workaround for CR#41937 Discussion: Newer Linux distributions have enabled new kernel security extensions from the SELinux project at the NSA. These extensions allow finer-grained control over system security. However, SELinux also changes some default system behaviors, such as shared library loading, that can be problematic to third party programs. If you receive the error message "cannot restore segment prot after reloc: Permission denied" when launching IDL, then your SELinux configuration is preventing IDL from launching. To rectify this issue, you can either: * Change the default security context for IDL by issuing the command: chcon -t texrel_shlib_t /usr/local/rsi/idl_6.1/bin/bin.linux.x86/*.so * Disabling SELinux altogether by setting the line SELINUX=disabled in your /etc/sysconfig/selinux file. For more information about SELinux, please consult your Linux distribution vendor. Looks like extension build on your platform is seriously hosed. Please report after rectifying the problem. Hope this helps, Ilya
From: Dave
On Wed Mar 29 21:45:03 2006, guest wrote: Show quoted text
> Please assist. I have been trying to install this for three days > without any success. My make and C skills are limited, so please be > kind if I am making a stupid mistake. > > Here is perl -V > > root@nvlv-ncobserv-d:/# perl -V > Summary of my perl5 (revision 5 version 8 subversion 8) configuration: > Platform: > osname=solaris, osvers=2.9, archname=sun4-solaris > uname='sunos nvlv-ncobserv-d 5.9 generic_117171-14 sun4u sparc > sunw,ultra-60 ' > config_args='-de' > hint=recommended, useposix=true, d_sigaction=define > usethreads=undef use5005threads=undef useithreads=undef > usemultiplicity=undef > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=undef use64bitall=undef uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='gcc', ccflags ='-fno-strict-aliasing -pipe - > I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', > optimize='-O', > cppflags='-fno-strict-aliasing -pipe -I/usr/local/include' > ccversion='', gccversion='3.3.2', gccosandvers='solaris2.9' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=8, prototype=define > Linker and Libraries: > ld='gcc', ldflags =' -L/usr/local/lib ' > libpth=/usr/local/lib /usr/lib /usr/ccs/lib > libs=-lsocket -lnsl -ldl -lm -lc > perllibs=-lsocket -lnsl -ldl -lm -lc > libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' > cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib' > > > Characteristics of this binary (from libperl): > Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO > Built under solaris > Compiled at Mar 27 2006 17:07:41 > @INC: > /usr/local/lib/perl5/5.8.8/sun4-solaris > /usr/local/lib/perl5/5.8.8 > /usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris > /usr/local/lib/perl5/site_perl/5.8.8 > /usr/local/lib/perl5/site_perl > . > > > Here is attempt to compile: > > root@nvlv-ncobserv-d:/tmp/Math-Pari-2.010704# perl Makefile.PL > Setting up Math::Pari with Perl 5.008008 on solaris version 2.9; > cc=gcc, gccversion=3.3.2, ccflags='-fno-strict-aliasing -pipe - > I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', > ld=gcc, ldflags=' -L/usr/local/lib ', optimize='-O'. > Found GP/PARI build directory in ../pari-2.1.7 > (integer-formatted version 2001007). > ...Generating libPARI/paricfg.h ... > Scanning header files... > ...ulong > ...getrusage > Creating libPARI/paricfg.h... > ...Processor of family `sparcv9' detected > Checking if your kit is complete... > Looks good > ...Processor of family `sparcv9' detected > ...I will use assembler build of type 'sparcv8_micro'. > ...Assembler is not GNU assembler > Writing Makefile for Math::PARI::libPARI > Writing Makefile for Math::Pari > > root@nvlv-ncobserv-d:/tmp/Math-Pari-2.010704# make > cp libPARI.dumb.pod blib/lib/Math/libPARI.dumb.pod > cp PariInit.pm blib/lib/Math/PariInit.pm > cp Pari.pm blib/lib/Math/Pari.pm > cp libPARI.pod blib/lib/Math/libPARI.pod > cd libPARI && make LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="- > O" PREFIX="/usr/local" PASTHRU_DEFINE="" PASTHRU_INC="" > make[1]: Entering directory `/tmp/Math-Pari-2.010704/libPARI' > /usr/bin/perl -pe1 ../../pari- > 2.1.7/src/kernel/sparcv8/level0.h ../../pari- > 2.1.7/src/kernel/none/level1.h > pariinl.h > gcc -c -I../../pari-2.1.7/src/headers -I../../pari-2.1.7/src/graph - > I. -fno-strict-aliasing -pipe -I/usr/local/include - > D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" - > DXS_VERSION=\"\" -fPIC -Derr=pari_err -DSOLARIS -DASMINLINE - > DGCC_INLINE -DDYNAMIC_PLOTTING -o es.o ../../pari- > 2.1.7/src/language/es.c > pariinl.h: In function `mulssmod': > pariinl.h:887: error: asm-specifier for variable `hiremainder' > conflicts with asm clobber list > pariinl.h:887: confused by earlier errors, bailing out > make[1]: *** [es.o] Error 1 > make[1]: Leaving directory `/tmp/Math-Pari-2.010704/libPARI' > make: *** [libPARI/libPARI.a] Error 2 > > > Thanks a million if you are able to help me get this straightened out. > > Regards, > > Kenn >
This has been floating around the web for over 18 months without a clear solution. Very annoying. After this failure, I eventually tried this: make clean perl Makefile.PL machine=none Everything now compiles cleanly. The tests apparently ran cleanly enough: # make test cd libPARI && make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PREFIX="" OPTIMIZE="-O" PASTHRU_DEFINE="-I/usr/local/ssl/include" PASTHRU_INC="" make[1]: Entering directory `/var/tmp/SPA_PERL/Math-Pari-2.010706/libPARI' make[1]: Leaving directory `/var/tmp/SPA_PERL/Math-Pari-2.010706/libPARI' make[1]: Entering directory `/var/tmp/SPA_PERL/Math-Pari-2.010706/libPARI' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/var/tmp/SPA_PERL/Math-Pari-2.010706/libPARI' PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00_Pari........ok t/55_analyz......ok t/55_elliptic....ok t/55_graph.......# Can't locate Term/Gnuplot.pm in @INC, ignoring plotting t/55_graph.......ok 1/28 skipped: plot() - can't test it yet t/55_linear......ok t/55_nfields.....ok 23/161PARI: *** Warning: insufficient precision for fundamental units, not given. t/55_nfields.....ok 156/161PARI: *** Warning: not a fundamental discriminant in quadclassunit. t/55_nfields.....ok 2/161 skipped: (possibly FATAL nfisincl) t/55_number......ok t/55_objets......ok 1/62 skipped: test producing error unsupported yet (impossible inverse modulo: Mod(131, 49649).) t/55_ploth.......# Can't locate Term/Gnuplot.pm in @INC, ignoring plotting t/55_ploth.......ok 10/34 skipped: various reasons t/55_polyser.....ok t/55_program.....ok 13/37 skipped: various reasons t/55_sumiter.....ok t/55_trans.......ok t/PlotRect.......# Can't locate Term/Gnuplot.pm in @INC, ignoring the test skipped all skipped: Can't locate Term/Gnuplot.pm in @INC t/zz_leak........ok All tests successful, 1 test and 27 subtests skipped. Files=15, Tests=1244, 242 wallclock secs (121.62 cusr + 30.27 csys = 151.89 CPU) make[1]: Entering directory `/var/tmp/SPA_PERL/Math-Pari-2.010706/libPARI' make[1]: Nothing to be done for `test'. make[1]: Leaving directory `/var/tmp/SPA_PERL/Math-Pari-2.010706/libPARI' # Hope this helps.
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #18447] Compile Failure on 64-bit sparcv9 SunOS 5.9
Date: Fri, 9 Jun 2006 19:25:06 -0700
To: Guest via RT <bug-Math-Pari [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Fri, Jun 09, 2006 at 03:43:50PM -0400, Guest via RT wrote: Show quoted text
> > pariinl.h: In function `mulssmod': > > pariinl.h:887: error: asm-specifier for variable `hiremainder' > > conflicts with asm clobber list
Show quoted text
> This has been floating around the web for over 18 months without a clear > solution. Very annoying.
Do not remember anybody who saw this following up. I *suspect* this is a problem with (misinstalled?) gcc about 4., but without details, it is hard to be sure. Thanks, Ilya