nc6220bfk ~ # emerge --info Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686) ================================================================= System uname: 2.6.14-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1.73GHz Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 crypt cups curl eds emboss encode esd exif expat fam foomaticdb fortran gd gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml idn imlib ipv6 java jpeg kde lcms libg++ libwww mad mikmod mng motif mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline samba sdl spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xml2 xmms xv zlib video_cards_i810 video_cards_i915 userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Please bare with me .. This is my first bug report.
Post/attach the messages here, *never* use pastebin for bug reports.
# nc6220bfk ~ # emerge perl # Calculating dependencies ...done! # >>> emerge (1 of 2) sys-devel/libperl-5.8.7 to / # Please specify a valid command. # # # Portage # Copyright 1999-2004 Gentoo Foundation # # How to use the ebuild command: # # The first argument to ebuild should be an existing .ebuild file. # # One or more of the following options can then be specified. If more # than one option is specified, each will be executed in order. # # help : show this help screen # setup : execute package specific setup actions # fetch : download source archive(s) and patches # digest : creates a digest and a manifest file for the package # manifest : creates a manifest file for the package # unpack : unpack/patch sources (auto-fetch if needed) # compile : compile sources (auto-fetch/unpack if needed) # test : test package (auto-fetch/unpack/compile if needed) # preinst : execute pre-install instructions # postinst : execute post-install instructions # install : installs the package to the temporary install directory # qmerge : merge image into live filesystem, recording files in db # merge : does fetch, unpack, compile, install and qmerge # prerm : execute pre-removal instructions # postrm : execute post-removal instructions # unmerge : remove package from live filesystem # config : execute package specific configuration actions # package : create tarball package in /usr/portage/packages/All # rpm : builds a RedHat RPM package # clean : clean up all source and temporary files # # The following settings will be used for the ebuild process: # # package : libperl-5.8.7 # slot : 1 # category : sys-devel # description : Larry Wall's Practical Extraction and Reporting Language # system : i686-pc-linux-gnu # c flags : -O3 -march=pentium3 -pipe -fomit-frame-pointer # c++ flags : -O3 -march=pentium3 -pipe -fomit-frame-pointer # make flags : -j2 # build mode : production (stripped) # merge to : / # # Additionally, support for the following optional features will be enabled: # # x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 crypt cups curl eds emboss encode esd exif expat fam foomaticdb fortran gd gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml idn imlib ipv6 java jpeg kde lcms libg++ libwww mad mikmod mng motif mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline samba sdl spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xml2 xmms xv zlib video_cards_i810 video_cards_i915 userland_GNU kernel_linux elibc_glibc
Preemptive question: Did you do any of the following? a) modify any portage sources b) use /etc/portage/bashrc c) create any portage related bash functions / aliases / helper scripts in $PATH If not, please attach (don't post inline) the output of the following commands: # emerge -dv perl # declare Looks like some very weird env/alias issue to me, for some reason emerge calls ebuild which can't occur in normal circumstances.
Ehm, was mistaken, it calls ebuild.sh not ebuild which is normal. But looks like it gets called with invalid arguments, so still need debug info.
Created attachment 79057 [details, diff] patch so ebuild.sh outputs invalid arguments This little patch may help us diagnose the problem. If you save it as /tmp/ebuild_invalid_command.patch then you can apply it and use it like this: su cd /usr/lib/portage patch -p1 -i /tmp/ebuild_invalid_command.patch emerge perl
I dont know why, but when I started my machine today, and ran the command you asked me to run "emerge -dv perl" it worked great and emerged the package just fine. I no longer have any problems emerging anything. Thanks for you help.