Re: [gentoo-user] Perl update = emerge cannot create executables
After fixinf fs errors with fsck emerge stopped working so i fixed with http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml Then downloaded a stage3, chrooted, compiled gcc, created a binpkg and emerged it on the broken system with emerge -K Now i'm rebuilding the whole system. Thanks for all :) 2010/11/8 Mick michaelkintz...@gmail.com: On Monday 08 November 2010 18:28:58 Pau Peris wrote: Please, is there any developer/geek who can help to solve the situation? Why do i get : [code]/usr/bin/x86_64-pc-linux-gnu-gcc: Exec format error [/code] I did nothing than updating the system, also /etc/make.conf (which i took a look before getting errors) seems ok. I can't say why you *suddenly* started getting problems, but it may indicate that there is some hardware problem which caused a fs corruption. So, check the obvious for errors like hard drive (smartmontools) and memory (memtest86+). If I were you I would follow the instructions in the previous link I sent you, and use that to rebuild portage and tool chain before you finish off rebuilding the packages that were giving you errors. -- Regards, Mick
[gentoo-user] Perl update = emerge cannot create executables
Hi, yesterday i was updating some trivial packages when i noticed emerge got broken after updating perl (from [b]perl-5.12.2-r1[/b] to [b]perl-5.12.2-r2[/b]). I've also took a look at /etc/make.conf but i think i did not modify it and after checking it it seems to have no errors. Right not every emerge fails, i think the problem is perl is failing to find need headers or whatever. GCC and system libraries seems ok: $gcc-config -l [1] x86_64-pc-linux-gnu-4.4.4 * $gcc-config -c x86_64-pc-linux-gnu-4.4.4 $binutils-config -l [1] x86_64-pc-linux-gnu-2.20.1 * $binutils-config -c x86_64-pc-linux-gnu-2.20.1 GCC is working fine: $cat /tmp/test.c #include stdio.h void main(){ printf(Hello world\n); } $gcc test.c -o test ./test Hello world $cat /etc/make.conf CHOST=x86_64-pc-linux-gnu LDFLAGS=${LDFLAGS} -Wl,-O1,--hash-style=gnu CFLAGS=-march=native -O2 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2 CXXFLAGS=-march=native -O3 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2 ACCEPT_KEYWORDS=amd64 ACCEPT_LICENSE=Nero-EULA-US dlj-1.1 sun-bcla-java-vm AdobeFlash-10.1 MAKEOPTS=-j6 USE=-acl alsa -berkdb custom-cxxflags -ipv6 -esd exceptions -gdbm -gnome -gstreamer gtkstyle -handbook icu -ldap -kdeprefix -mysql mmx mmxext opengl -pam -perl pic -python qt-copy -semantic-desktop samba sse sse2 sse3 ssse3 -ssl -tcpd v4l v4l2 webkit xinerama xcomposite PORTAGE_TMPDIR=/var/tmp PORTDIR=/usr/portage DISTDIR=${PORTDIR}/distfiles PKGDIR=${PORTDIR}/packages PORT_LOGDIR=/var/log/portage PORTDIR_OVERLAY= PORTDIR_OVERLAY=${PORTDIR_OVERLAY} /usr/local/portage PORTAGE_BUILDDIR=/var/tmp/portage PORTAGE_TMPFS=/dev/shm PORTAGE_ECLASS_WARNING_ENABLE=0 CFLAGS_KERNEL=-march=native -O2 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2 LINGUAS=es es_ES APACHE2_MODULES=actions alias auth_basic authn _alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias filter NETBEANS_MODULES=php ide apisupport harness java nb websvccommon INPUT_DEVICES=keyboard mouse joystick penmount evdev VIDEO_CARDS=nvidia v4l source /usr/local/portage/layman/make.conf FEATURES=metadata-transfer parallel-fetch ccache WANT_MP=true $emerge --info [code] Portage 2.1.9.24 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.32-reiser4-r7 x86_64) = System uname: linux-2.6.32-reiser4-r7-x86_64-intel-r-_core-tm-_i7_cpu_9...@_2.67ghz-with-gentoo-1.12.14 Timestamp of tree: Mon, 08 Nov 2010 13:00:01 + ccache version 2.4 [enabled] app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.14-r1 sys-apps/sandbox:2.3-r1 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS=amd64 ACCEPT_LICENSE=* -...@eula Nero-EULA-US dlj-1.1 sun-bcla-java-vm AdobeFlash-10.1 CBUILD=x86_64-pc-linux-gnu CFLAGS=-march=native -O2 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2 CHOST=x86_64-pc-linux-gnu CONFIG_PROTECT=/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo CXXFLAGS=-march=native -O3 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2 DISTDIR=/usr/portage/distfiles FEATURES=assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch GENTOO_MIRRORS=http://distfiles.gentoo.org; LANG=es...@euro LC_ALL=es...@euro LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,-O1,--hash-style=gnu LINGUAS=es es_ES MAKEOPTS=-j6 PKGDIR=/usr/portage/packages PORTAGE_CONFIGROOT=/ PORTAGE_RSYNC_OPTS=--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages PORTAGE_TMPDIR=/var/tmp PORTDIR=/usr/portage PORTDIR_OVERLAY=/usr/local/portage/layman/java-overlay /usr/local/portage/layman/qting-edge /usr/local/portage/layman/linuxdna /usr/local/portage SYNC=rsync://rsync.gentoo.org/gentoo-portage USE=X a52 aac acpi alsa amd64 bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups custom-cxxflags cxx dbus
Re: [gentoo-user] Perl update = emerge cannot create executables
On Monday 08 November 2010 13:33:23 Pau Peris wrote: Hi, yesterday i was updating some trivial packages when i noticed emerge got broken after updating perl (from [b]perl-5.12.2-r1[/b] to [b]perl-5.12.2-r2[/b]). I've also took a look at /etc/make.conf but i think i did not modify it and after checking it it seems to have no errors. Right not every emerge fails, i think the problem is perl is failing to find need headers or whatever. [snip ...] I hope someone can help as a working emerge is critical on any Gentoo system, thanks in advanced :) A few quick things to check: Did you run 'perl-cleaner --all'? Did you run 'lafilefixer --justfixit'? Did you run 'revdep-rebuild -v -i -- --ask'? Did you try to remerge what is failing with MAKEOPTS=-j1? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Perl update = emerge cannot create executables
On 11/08/2010 05:33 AM, Pau Peris wrote: Hi, yesterday i was updating some trivial packages when i noticed emerge got broken after updating perl (from [b]perl-5.12.2-r1[/b] to [b]perl-5.12.2-r2[/b]). I've also took a look at /etc/make.conf but i think i did not modify it and after checking it it seems to have no errors. Right not every emerge fails, i think the problem is perl is failing to find need headers or whatever. GCC and system libraries seems ok: snipped I hope someone can help as a working emerge is critical on any Gentoo system, thanks in advanced :) I had to re-emerge two perl packages - extutils-depends and extutils-pkgconfig, then I was fine.
Re: [gentoo-user] Perl update = emerge cannot create executables
Thanks for the answers :) Yes, i've run al of the above commands except the oen with MAKEOPTS=-j1 Also re-emerge extutils-depends and extutils-pkgconfig didn't helped, but is strange that they emerged fine. One thing which took my atention but seem not to be critical was: [code] * Updating ph files. * Ignore all No such file... messages! Can't open syslimits.h: No existe el fichero o el directorio Can't open stddef.h: No existe el fichero o el directorio Can't open stdarg.h: No existe el fichero o el directorio Can't open stddef.h: No existe el fichero o el directorio Can't open stddef.h: No existe el fichero o el directorio Can't open stddef.h: No existe el fichero o el directorio Can't open stddef.h: No existe el fichero o el directorio Can't open stddef.h: No existe el fichero o el directorio [/code] Also strange the path which is returned by running: [b]perl-cleaner --leftovers[/b] [code] * Finding left over modules and header * The following files remain. These were either installed by hand * or edited. This script cannot deal with them. /usr/lib32/perl5/5.8.8/i686-linux/auto/B/B.so /usr/lib32/perl5/5.8.8/i686-linux/auto/B/C/C.so /usr/lib32/perl5/5.8.8/i686-linux/auto/ByteLoader/ByteLoader.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Cwd/Cwd.so /usr/lib32/perl5/5.8.8/i686-linux/auto/DB_File/DB_File.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Data/Dumper/Dumper.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Devel/DProf/DProf.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Devel/PPPort/PPPort.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Devel/Peek/Peek.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Digest/MD5/MD5.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Encode/Byte/Byte.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Encode/CN/CN.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Encode/EBCDIC/EBCDIC.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Encode/Encode.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Encode/JP/JP.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Encode/KR/KR.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Encode/Symbol/Symbol.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Encode/TW/TW.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Encode/Unicode/Unicode.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Fcntl/Fcntl.so /usr/lib32/perl5/5.8.8/i686-linux/auto/File/Glob/Glob.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Filter/Util/Call/Call.so /usr/lib32/perl5/5.8.8/i686-linux/auto/GDBM_File/GDBM_File.so /usr/lib32/perl5/5.8.8/i686-linux/auto/I18N/Langinfo/Langinfo.so /usr/lib32/perl5/5.8.8/i686-linux/auto/IO/IO.so /usr/lib32/perl5/5.8.8/i686-linux/auto/IPC/SysV/SysV.so /usr/lib32/perl5/5.8.8/i686-linux/auto/List/Util/Util.so /usr/lib32/perl5/5.8.8/i686-linux/auto/MIME/Base64/Base64.so /usr/lib32/perl5/5.8.8/i686-linux/auto/NDBM_File/NDBM_File.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Opcode/Opcode.so /usr/lib32/perl5/5.8.8/i686-linux/auto/POSIX/POSIX.so /usr/lib32/perl5/5.8.8/i686-linux/auto/PerlIO/encoding/encoding.so /usr/lib32/perl5/5.8.8/i686-linux/auto/PerlIO/scalar/scalar.so /usr/lib32/perl5/5.8.8/i686-linux/auto/PerlIO/via/via.so /usr/lib32/perl5/5.8.8/i686-linux/auto/SDBM_File/SDBM_File.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Socket/Socket.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Storable/Storable.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Sys/Hostname/Hostname.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Sys/Syslog/Syslog.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Time/HiRes/HiRes.so /usr/lib32/perl5/5.8.8/i686-linux/auto/Unicode/Normalize/Normalize.so /usr/lib32/perl5/5.8.8/i686-linux/auto/XS/APItest/APItest.so /usr/lib32/perl5/5.8.8/i686-linux/auto/XS/Typemap/Typemap.so /usr/lib32/perl5/5.8.8/i686-linux/auto/attrs/attrs.so /usr/lib32/perl5/5.8.8/i686-linux/auto/re/re.so /usr/lib32/perl5/5.8.8/i686-linux/auto/threads/shared/shared.so /usr/lib32/perl5/5.8.8/i686-linux/auto/threads/threads.so /usr/lib64/perl5/vendor_perl/5.8.8/XML/SAX/ParserDetails.ini /usr/lib64/perl5/5.8.8/x86_64-linux/Encode/ConfigLocal.pm /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Encode/ConfigLocal.pm [/code] [b]$ls /usr/lib32/perl5/[/b] [code] 5.8.8[/code] [b]$ls /usr/lib64/perl5/[/b] [code]5.12.2 5.8.8 vendor_perl[/code] Would it be safe to remove 5.8.8 directory? what's also strange is that the system has been running fine for years... That's the error i get when trying to emerge perl and chost is set to [b]CHOST=x86_64-pc-linux-gnu[/b] at /etc/make.conf emerge perl [code]emerge -va perl * Mounting 2048M of memory to /var/tmp/portage ... [ ok ] * emerging -va perl * IMPORTANT: 2 news items need reading for repository 'gentoo'. * Use eselect news to read news items. These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-lang/perl-5.12.2-r2 USE=ithreads -berkdb -build -debug -doc -gdbm 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] Verifying ebuild manifests Emerging (1 of 1) dev-lang/perl-5.12.2-r2 * perl-5.12.2.tar.bz2
Re: [gentoo-user] Perl update = emerge cannot create executables
I've also noticed [b]/usr/bin/x86_64-pc-linux-gnu-gcc: Exec format error[/b] on some emerge error logs. i don't know any clue about the error.
Re: [gentoo-user] Perl update = emerge cannot create executables
I'm starting to think the erroris not related to perl package, so i'm totally lost as i think /etc/make.conf is ok.
Re: [gentoo-user] Perl update = emerge cannot create executables
Apparently, though unproven, at 17:13 on Monday 08 November 2010, Pau Peris did opine thusly: I'm starting to think the erroris not related to perl package, so i'm totally lost as i think /etc/make.conf is ok. Correct. Your configure scripts cannot find header directories - nothing to do with perl at all. I assume the directories and their contents do still exist? If not, do you have buildpkg's of packages in @system? I'd start by unpacking the entire toolchain, something is missing or corrupt. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Perl update = emerge cannot create executables
On Monday 08 November 2010 15:20:45 Alan McKinnon wrote: Apparently, though unproven, at 17:13 on Monday 08 November 2010, Pau Peris did opine thusly: I'm starting to think the erroris not related to perl package, so i'm totally lost as i think /etc/make.conf is ok. Correct. Your configure scripts cannot find header directories - nothing to do with perl at all. I assume the directories and their contents do still exist? If not, do you have buildpkg's of packages in @system? I'd start by unpacking the entire toolchain, something is missing or corrupt. You may find this link handy: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Perl update = emerge cannot create executables
Hi, i do not have buildpkg's of packages in @system so i don't know how to proceed. It's very strange cause i was emerging sometrivial packages without problems, last one was perl and then i was taking a look at /etc/make.conf when tried to re-emerge php and start getting errors (no reboot, no errors before, no deleting anything, really strange). At this point i'm starting to hate computers 2010/11/8 Mick michaelkintz...@gmail.com: On Monday 08 November 2010 15:20:45 Alan McKinnon wrote: Apparently, though unproven, at 17:13 on Monday 08 November 2010, Pau Peris did opine thusly: I'm starting to think the erroris not related to perl package, so i'm totally lost as i think /etc/make.conf is ok. Correct. Your configure scripts cannot find header directories - nothing to do with perl at all. I assume the directories and their contents do still exist? If not, do you have buildpkg's of packages in @system? I'd start by unpacking the entire toolchain, something is missing or corrupt. You may find this link handy: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml -- Regards, Mick
Re: [gentoo-user] Perl update = emerge cannot create executables
Please, is there any developer/geek who can help to solve the situation? Why do i get : [code]/usr/bin/x86_64-pc-linux-gnu-gcc: Exec format error [/code] I did nothing than updating the system, also /etc/make.conf (which i took a look before getting errors) seems ok. I've tried with a simple make.conf as follows with no luck: [code]# These settings were set by the catalyst build script that automatically # built this stage. # Please consult /etc/make.conf.example for a more detailed example. CFLAGS=-march=native -O2 -pipe CXXFLAGS=-march=native -O2 -pipe # WARNING: Changing your CHOST is not something that should be done lightly. # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing. #CHOST=ia64-unknown-linux-gnu CHOST=x86_64-pc-linux-gnu [/code] 2010/11/8 Pau Peris sibok1...@gmail.com: Hi, i do not have buildpkg's of packages in @system so i don't know how to proceed. It's very strange cause i was emerging sometrivial packages without problems, last one was perl and then i was taking a look at /etc/make.conf when tried to re-emerge php and start getting errors (no reboot, no errors before, no deleting anything, really strange). At this point i'm starting to hate computers 2010/11/8 Mick michaelkintz...@gmail.com: On Monday 08 November 2010 15:20:45 Alan McKinnon wrote: Apparently, though unproven, at 17:13 on Monday 08 November 2010, Pau Peris did opine thusly: I'm starting to think the erroris not related to perl package, so i'm totally lost as i think /etc/make.conf is ok. Correct. Your configure scripts cannot find header directories - nothing to do with perl at all. I assume the directories and their contents do still exist? If not, do you have buildpkg's of packages in @system? I'd start by unpacking the entire toolchain, something is missing or corrupt. You may find this link handy: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml -- Regards, Mick
Re: [gentoo-user] Perl update = emerge cannot create executables
On Monday 08 November 2010 18:28:58 Pau Peris wrote: Please, is there any developer/geek who can help to solve the situation? Why do i get : [code]/usr/bin/x86_64-pc-linux-gnu-gcc: Exec format error [/code] I did nothing than updating the system, also /etc/make.conf (which i took a look before getting errors) seems ok. I can't say why you *suddenly* started getting problems, but it may indicate that there is some hardware problem which caused a fs corruption. So, check the obvious for errors like hard drive (smartmontools) and memory (memtest86+). If I were you I would follow the instructions in the previous link I sent you, and use that to rebuild portage and tool chain before you finish off rebuilding the packages that were giving you errors. -- Regards, Mick signature.asc Description: This is a digitally signed message part.