I recently added a bunch of CFLAGS to a bunch of different computers, and discovered when you recompile bash, it doesn't finish the emerge with: /usr/lib/portage/bin/ebuild.sh: line 1524: : No such file or directory !!! FAILED prerm: 2816 and then emerge won't work, and the only way to fix it is to restore an old version of bash from a backup. Reproduceable: Always Steps to Reproduce: 1. Put in the CFLAGS I used. 2. Recompile bash. Actual Results: matthew@MJD ~ $ sudo emerge bash Calculating dependencies ...done! >>> emerge (1 of 1) app-shells/bash-3.0-r12 to / /usr/lib/portage/bin/ebuild.sh: line 1524: : No such file or directory !!! ERROR: app-shells/bash-3.0-r12 failed. !!! Function inherit, Line 1525, Exitcode 1 !!! died sourcing in inherit() !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Should just finish merge of bash, and then emerge still work. emerge --info: Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-suspend2-r8 i686) ================================================================= System uname: 2.6.15-suspend2-r8 i686 Intel(R) Celeron(R) M processor 1400MHz Gentoo Base System version 1.6.14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 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=pentium4 -pipe -fomit-frame-pointer -mmmx -funroll-loops -ftracer -fno-align-labels -maccumulate-outgoing-args -ffast-math -freduce-all-givs -fno-crossjumping -fmove-all-movables -msse -mfpmath=sse -msse2" 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/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -mmmx -funroll-loops -ftracer -fno-align-labels -maccumulate-outgoing-args -ffast-math -freduce-all-givs -fno-crossjumping -fmove-all-movables -msse -mfpmath=sse -msse2 -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://gentoo.mirrored.ca/" LINGUAS="en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X Xaw3d a52 aac acpi alsa apache2 arts audiofile avi bidi bitmap-fonts bzip2 cdda cddb cdparanoia cdr cli crypt ctype cups curl dba dbus dhcp dlloader doc dri dts dvd dvdr dvdread emboss encode esd exif expat fam fastbuild fbsplash ffmpeg flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glibc-omitfp glut gmp gnutls gpm gstreamer gtk gtk2 hal httpd idn imagemagick imlib ipv6 java joystick jpeg jpeg2k kde kqemu lcms libclamav libg++ libwww live logrotate mad madwifi mailwrapper matroska mbox memlimit mhash mikmod mmx mng motif mozsvg mp3 mpeg mppe-mppc ncurses nls nptl nptlonly nsplugin ogg opengl openntpd pam pcmcia pcre pda pdflib perl php pic png posix ppds python qt quicktime readline recode samba scanner sdl session simplexml skey soap sockets spell spl sql sse ssl stream svga tcpd theora threads tidy tiff tokenizer tools truetype truetype-fonts type1-fonts udev usb v4l v4l2 vcd videos vlm vorbis win32codecs wxwindows xml xml2 xmms xprint xsl xv zlib linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Please try to reproduce the error with some sane flags.
(In reply to comment #1) > Please try to reproduce the error with some sane flags. > It worked before with fewer CFLAGS. I can try each CFLAG to see what the problem, just right now I can't because I have other things I have to do. I can do that maybe on the weekend.