Skip Menu |

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

Report information
The Basics
Id: 4364
Status: resolved
Priority: 0/
Queue: Math-GMP

People
Owner: Nobody in particular
Requestors: robert.l.hornsby [...] boeing.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.03
Fixed in: (no value)



Subject: Lib error during make
System is Solaris 8 (64 bit.) GMP library is 4.1.2 Below is the sequence which gives the error: # perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Math::GMP # make cp lib/Math/GMP.pm blib/lib/Math/GMP.pm AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP) /usr/bin/perl -I/ots/perl-5.6.1/lib/sun4-solaris -I/ots/perl-5.6.1/lib /ots/perl-5.6.1/lib/ExtUtils/xsubpp -typemap /ots/perl-5.6.1/lib/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc && mv GMP.xsc GMP.c gcc -c -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.03\" -DXS_VERSION=\"2.03\" -fPIC -I/ots/perl-5.6.1/lib/sun4-solaris/CORE GMP.c cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory Running Mkbootstrap for Math::GMP () chmod 644 GMP.bs rm -f blib/arch/auto/Math/GMP/GMP.so LD_RUN_PATH="/usr/local/lib" gcc -G -L/usr/local/lib GMP.o -o blib/arch/auto/Math/GMP/GMP.so -lgmp ld: fatal: file /usr/local/lib/libgmp.so: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to blib/arch/auto/Math/GMP/GMP.so collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/Math/GMP/GMP.so' Looks like 32 bit versus 64 bit compiled library... not sure
From: rjoost [...] yahoo.com
I'm in the same boat. Can't use Net::SSH::Perl without being able to compile Math::GMP Platform: Solaris 8 make error: gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.03\" -DXS_VERSION=\"2.03\" -fPIC "-I/usr/local/lib/perl5/5.8.2/sun4-solaris/CORE" GMP.c GMP.xs:4: gmp.h: No such file or directory *** Error code 1 make: Fatal error: Command failed for target `GMP.o' Doesn't look like this guy is around anymore. Please let me know if you had any luck otherwise. Thx, Rob [guest - Tue Nov 11 19:35:03 2003]: Show quoted text
> System is Solaris 8 (64 bit.) GMP library is 4.1.2 > Below is the sequence which gives the error: > # perl Makefile.PL > Checking if your kit is complete... > Looks good > Writing Makefile for Math::GMP > # make > cp lib/Math/GMP.pm blib/lib/Math/GMP.pm > AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP) > /usr/bin/perl -I/ots/perl-5.6.1/lib/sun4-solaris -I/ots/perl-5.6.1/lib > /ots/perl-5.6.1/lib/ExtUtils/xsubpp -typemap /ots/perl- > 5.6.1/lib/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc && mv > GMP.xsc GMP.c > gcc -c -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.03\" -DXS_VERSION=\"2.03\" > -fPIC -I/ots/perl-5.6.1/lib/sun4-solaris/CORE GMP.c > cc1: warning: changing search order for system directory > "/usr/local/include" > cc1: warning: as it has already been specified as a non-system > directory > Running Mkbootstrap for Math::GMP () > chmod 644 GMP.bs > rm -f blib/arch/auto/Math/GMP/GMP.so > LD_RUN_PATH="/usr/local/lib" gcc -G -L/usr/local/lib GMP.o -o > blib/arch/auto/Math/GMP/GMP.so -lgmp > ld: fatal: file /usr/local/lib/libgmp.so: wrong ELF class: ELFCLASS64 > ld: fatal: File processing errors. No output written to > blib/arch/auto/Math/GMP/GMP.so > collect2: ld returned 1 exit status > *** Error code 1 > make: Fatal error: Command failed for target > `blib/arch/auto/Math/GMP/GMP.so' > > Looks like 32 bit versus 64 bit compiled library... not sure
[guest - Tue Feb 17 18:39:42 2004]: Show quoted text
> I'm in the same boat. Can't use Net::SSH::Perl without being able to > compile Math::GMP > Platform: Solaris 8 > > make error: > > gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.03\" -DXS_VERSION=\"2.03\" > -fPIC "-I/usr/local/lib/perl5/5.8.2/sun4-solaris/CORE" GMP.c > GMP.xs:4: gmp.h: No such file or directory > *** Error code 1 > make: Fatal error: Command failed for target `GMP.o' > > Doesn't look like this guy is around anymore. Please let me know if you > had any luck otherwise. > Thx, > Rob > > > > [guest - Tue Nov 11 19:35:03 2003]: >
> > System is Solaris 8 (64 bit.) GMP library is 4.1.2 > > Below is the sequence which gives the error: > > # perl Makefile.PL > > Checking if your kit is complete... > > Looks good > > Writing Makefile for Math::GMP > > # make > > cp lib/Math/GMP.pm blib/lib/Math/GMP.pm > > AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP) > > /usr/bin/perl -I/ots/perl-5.6.1/lib/sun4-solaris -I/ots/perl-5.6.1/lib > > /ots/perl-5.6.1/lib/ExtUtils/xsubpp -typemap /ots/perl- > > 5.6.1/lib/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc && mv > > GMP.xsc GMP.c > > gcc -c -I/usr/local/include -D_LARGEFILE_SOURCE > > -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.03\" -DXS_VERSION=\"2.03\" > > -fPIC -I/ots/perl-5.6.1/lib/sun4-solaris/CORE GMP.c > > cc1: warning: changing search order for system directory > > "/usr/local/include" > > cc1: warning: as it has already been specified as a non-system > > directory > > Running Mkbootstrap for Math::GMP () > > chmod 644 GMP.bs > > rm -f blib/arch/auto/Math/GMP/GMP.so > > LD_RUN_PATH="/usr/local/lib" gcc -G -L/usr/local/lib GMP.o -o > > blib/arch/auto/Math/GMP/GMP.so -lgmp > > ld: fatal: file /usr/local/lib/libgmp.so: wrong ELF class: ELFCLASS64 > > ld: fatal: File processing errors. No output written to > > blib/arch/auto/Math/GMP/GMP.so > > collect2: ld returned 1 exit status > > *** Error code 1 > > make: Fatal error: Command failed for target > > `blib/arch/auto/Math/GMP/GMP.so' > > > > Looks like 32 bit versus 64 bit compiled library... not sure
> >
Sorry for not getting back to this... I ended up loading Math::GMP -- 1.07 stand alone then I was able to do the build... Something not right with the compile of 2.03
From: Guillaume Tamboise <gtamboise [...] houston.sns.slb.com>
[guest - Tue Mar 23 13:16:09 2004]: Show quoted text
> [guest - Tue Feb 17 18:39:42 2004]: > Sorry for not getting back to this... I ended up loading Math::GMP -- > 1.07 stand alone then I was able to do the build... > Something not right with the compile of 2.03
From http://www.swox.com/list-archives/gmp-discuss/2003-October/000806.html ************************************************************* "Al Pacheco" <pacheco at fas.harvard.edu> writes: Show quoted text
> > ld: fatal: file /usr/local/lib/libgmp.so: wrong ELF class: ELFCLASS64
You have probably built libgmp in the 64-bit ABI (the default for gmp on sparcv9 solaris), but it looks like perl was built for the 32-bit. You can build gmp with ./configure ABI=32 to make it match. (See ABI and ISA in the manual for more info.) PS. All bug reports to the gmp-bugs list, not gmp-discuss. *********************************************************** I have recompiled gmp-4.1.2 with " ./configure ABI=32", installed, and then Math-GMP-2.03 compiles just fine.
Resolving, appears to be build problems 32/64 out of the control of this module.