Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191528 - dev-lang/perl-5.8.8 error when running perl apps - Errno architecture does not match executable
Summary: dev-lang/perl-5.8.8 error when running perl apps - Errno architecture does no...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 200271 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-06 19:50 UTC by Brian Toovey
Modified: 2007-11-25 20:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Toovey 2007-09-06 19:50:40 UTC
After upgrading perl my installation is hosed.  Whenever I try to run a perl program, for instance CPAN, I bomb out with the following:

toovey4 linux-2.6.22-gentoo-r6 # cpan
Errno architecture (x86_64-linux-2.6.16-gentoo-r7) does not match executable architecture (x86_64-linux-thread-multi-2.6.21-gentoo-r3) at /usr/lib64/perl5/site_perl/5.8.8/Errno.pm line 11.
Compilation failed in require at /usr/lib64/perl5/5.8.8/File/Path.pm line 185.
BEGIN failed--compilation aborted at /usr/lib64/perl5/5.8.8/File/Path.pm line 185.
Compilation failed in require at /usr/lib64/perl5/5.8.8/ExtUtils/MakeMaker.pm line 9.
BEGIN failed--compilation aborted at /usr/lib64/perl5/5.8.8/ExtUtils/MakeMaker.pm line 9.
Compilation failed in require at /usr/lib64/perl5/5.8.8/CPAN.pm line 16.
BEGIN failed--compilation aborted at /usr/lib64/perl5/5.8.8/CPAN.pm line 16.
Compilation failed in require at /usr/bin/cpan line 119.
BEGIN failed--compilation aborted at /usr/bin/cpan line 119.

I tried upgrading glibc to see if that would help no avail.

Reproducible: Always




I cannot run perl-info because it relies on perl.

toovey4 linux-2.6.22-gentoo-r6 # perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=linux, osvers=2.6.21-gentoo-r3, archname=x86_64-linux-thread-multi
    uname='linux toovey4 2.6.21-gentoo-r3 #3 smp fri jun 8 14:08:58 est 2007 x86_64 dual core amd opteron(tm) processor 265 authenticamd gnulinux '
    config_args='-des -Darchname=x86_64-linux-thread -Dcccdlflags=-fPIC -Dccdlflags=-rdynamic -Dcc=x86_64-pc-linux-gnu-gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=  -Doptimize=-march=opteron -O2 -pipe -Duselargefiles -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1 -Dinstallman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm -Dinc_version_list=5.8.0 5.8.0/x86_64-linux-thread-multi 5.8.2 5.8.2/x86_64-linux-thread-multi 5.8.4 5.8.4/x86_64-linux-thread-multi 5.8.5 5.8.5/x86_64-linux-thread-multi 5.8.6 5.8.6/x86_64-linux-thread-multi 5.8.7 5.8.7/x86_64-linux-thread-multi  -Dinc_version_list=5.8.0 5.8.0/x86_64-linux-thread-multi 5.8.2 5.8.2/x86_64-linux-thread-multi 5.8.4 5.8.4/x86_64-linux-thread-multi 5.8.5 5.8.5/x86_64-linux-thread-multi 5.8.6 5.8.6/x86_64-linux-thread-multi 5.8.7 5.8.7/x86_64-linux-thread-multi  -Dcf_by=Gentoo -Ud_csh -Dusenm -Dusethreads -Di_ndbm -Di_gdbm -Di_db -Dusrinc=/usr/include/gentoo-multilib/amd64 -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='x86_64-pc-linux-gnu-gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-march=opteron -O2 -pipe',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/include/gdbm'
    ccversion='', gccversion='4.1.1 (Gentoo 4.1.1-r3)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='x86_64-pc-linux-gnu-gcc', ldflags =' -L/usr/local/lib64'
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.6.1.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.6.1'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib64'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_64_BIT_ALL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_REENTRANT_API
  Built under linux
  Compiled at Sep  6 2007 15:23:52
  @INC:
    /etc/perl
    /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.8.8
    /usr/lib64/perl5/vendor_perl
    /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.8
    /usr/lib64/perl5/site_perl
    /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi
    /usr/lib64/perl5/5.8.8
    /usr/local/lib/site_perl
    .
toovey4 linux-2.6.22-gentoo-r6 #
Comment 1 Brian Toovey 2007-09-06 21:01:29 UTC
I got medeval on my system.  I uninstalled perl and libperl and did a:
#rm -rf /usr/lib/perl5

I don't suggest this because you will delete perl modules installed via emerge.  If you don't mind that though this worked for me.

Brian
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-09-06 21:08:10 UTC
Uh, you only need to edit /usr/lib/perl5/5.8.8/i686-linux/Errno.pm to work around this, no need for such drastic solutions. Though I still fail to see why'd you be hitting something this in the first place.
Comment 3 Brian Toovey 2007-09-06 21:10:59 UTC
I ran into this does it help?

https://bugs.launchpad.net/ubuntu/+source/perl/+bug/13668
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-09-06 21:13:23 UTC
(In reply to comment #3)
> I ran into this does it help?
> 
> https://bugs.launchpad.net/ubuntu/+source/perl/+bug/13668

Uhm, not much I'm afraid. This issue is ages old, and noone hit it ever since, see Bug 84868. Not reproducible at all.
Comment 5 Brian Toovey 2007-09-06 21:19:29 UTC
Well something to keep an eye out for if more reports come in.

Thanks for you hard work with Gentoo.

Brian
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-11-25 10:57:22 UTC
*** Bug 200271 has been marked as a duplicate of this bug. ***
Comment 7 Smiffy 2007-11-25 20:49:43 UTC
Can anyone explain why http://bugs.gentoo.org/show_bug.cgi?id=200271 is marked a duplicate of this bug?  I fail to see the connection between being unable to compile gtk+ and Perl breaking, or where I should go to fix the gtk+ issue.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-11-25 20:52:30 UTC
http://bugs.gentoo.org/attachment.cgi?id=136962&action=view