develooper Front page | perl.perl5.porters | Postings from June 2009

[perl #66604] 64bit compilation Problem on Solaris x86_64

Thread Previous | Thread Next
From:
Alois Wiedenhofer
Date:
June 15, 2009 10:47
Subject:
[perl #66604] 64bit compilation Problem on Solaris x86_64
Message ID:
rt-3.6.HEAD-2145-1245081140-286.66604-75-0@perl.org
# New Ticket Created by  Alois Wiedenhofer 
# Please include the string:  [perl #66604]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66604 >


To: perlbug@perl.org
Subject: 64bit compilation Problem on Solaris X86_64
Cc: alois.wiedenhofer@culturall.com
Reply-To: root@mqtst.dom
Message-Id: <5.10.0_29421_1245071858@mqtst.dom>

This is a bug report for perl from root@mqtst.dom,
generated with the help of perlbug 1.36 running under perl 5.10.0.


-----------------------------------------------------------------
[Please enter your report here]
1) I can do ./Configure -Dcc=gcc ; make ; make test ; make install and 
get this 32 bit Version of perl.
BUT I want a 64 bit Version.
2) I do ./Configure -Dcc=gcc -Duse64bitall -d
tried this too ./Configure -Dcc="gcc -B/usr/ccs/bin/"  -Duse64bitall -d
which works with Warnings
make: Warning: Both `makefile' and `Makefile' exist

make works with same warnings

make test ends up with:

Failed 561 tests out of 1030, 45.53% okay.
..
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You may have to set your dynamic library search path,
### LD_LIBRARY_PATH, to point to the build directory:
###   setenv LD_LIBRARY_PATH `pwd`; cd t; ./perl harness
###   LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH; cd t; ./perl harness
###   export LD_LIBRARY_PATH=`pwd`; cd t; ./perl harness
### for csh-style shells, like tcsh; or for traditional/modern
### Bourne-style shells, like bash, ksh, and zsh, respectively.
u=1.14  s=1.13  cu=91.12  cs=6.50  scripts=1030  tests=129837
*** Error code 1
make: Fatal error: Command failed for target `_test_tty'
Current working directory /opt/install/perl-5.10.0
*** Error code 1
make: Fatal error: Command failed for target `_test'
Current working directory /opt/install/perl-5.10.0
*** Error code 1
make: Fatal error: Command failed for target `test'
(root@mqtst:MQTST) $

--
the Errors have in common, that a library could not be loaded due to
ld.so.1: perl: fatal: relocation error: R_AMD64_PC32: file

for example
lib/Pod/t/termcap.............................................Can't load 
'../lib/auto/Fcntl/Fcntl.so' for module Fcntl: ld.so.1: perl: fatal: 
relocation error: R_AMD64_PC32: file ../lib/auto/Fcntl/Fcntl.so: symbol 
main: value 0x280013c21ac does not fit at ../lib/XSLoader.pm line 64.
 at ../lib/Fcntl.pm line 215
BEGIN failed--compilation aborted at ../lib/Fcntl.pm line 216.
Compilation failed in require at ../lib/POSIX.pm line 16.
BEGIN failed--compilation aborted at ../lib/POSIX.pm line 16.
Compilation failed in require at ../lib/Pod/Text/Termcap.pm line 22.
BEGIN failed--compilation aborted at ../lib/Pod/Text/Termcap.pm line 22.
Compilation failed in require at ../lib/Pod/t/termcap.t line 32.
BEGIN failed--compilation aborted at ../lib/Pod/t/termcap.t line 32.
FAILED at test 1
lib/Pod/t/text-options........................................ok

--
I used the gcc as shipped with that Soalris Release
(root@mqtst:MQTST) $ which gcc
/usr/sfw/bin/gcc
(root@mqtst:MQTST) $ gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure 
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as 
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ 
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
(root@mqtst:MQTST) $






[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=install
    severity=low
---
Site configuration information for perl 5.10.0:

Configured by root at Mon Jun  8 16:24:10 CEST 2009.

Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.10, archname=i86pc-solaris
    uname='sunos mqtst 5.10 generic_138889-03 i86pc i386 i86pc '
    config_args='-Dcc=gcc -d'
    hint=recommended, useposix=true, d_sigaction=define
    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 -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV',
    optimize='-O',
    cppflags='-fno-strict-aliasing -pipe'
    ccversion='', gccversion='3.4.3 (csl-sol210-3_4-branch+sol_rpath)', 
gccosandvers='solaris2.10'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=4, 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'

Locally applied patches:
    

---
@INC for perl 5.10.0:
    /usr/local/lib/perl5/5.10.0/i86pc-solaris
    /usr/local/lib/perl5/5.10.0
    /usr/local/lib/perl5/site_perl/5.10.0/i86pc-solaris
    /usr/local/lib/perl5/site_perl/5.10.0
    .

---
Environment for perl 5.10.0:
    HOME=/
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    
PATH=/usr/sfw/bin:/usr/sbin:/usr/bin:/opt/oracle/product/10.2.0/bin:/usr/ccs/bin:/usr/local/bin:/usr/openwin/bin:/usr/sbin:/opt/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About