When trying to emerge libstdc++-v3 the emerging process stops before starting to configure the package, "/bin/bash /usr/lib/portage/bin/ebuild.sh compile" takes 100% of the CPU and starts eating the system resources and filling the RAM until its killed or the systems becomes totally unresponsable. It is possible that this is related to the fact that I recently switched to "-nls", actually I was performing an emerge -uDN world while I hit this issue. Reproducible: Always Steps to Reproduce: 1. emerge -1 libstdc++-v3 2. wait 3. Actual Results: Emerge hangs at: >>> Compiling source in /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/work/gcc-3.3.6 ... Expected Results: The package should go on configuring and building $ emerge --info Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo i686) ================================================================= System uname: 2.6.26-gentoo i686 Genuine Intel(R) CPU T2400 @ 1.83GHz Timestamp of tree: Wed, 06 Aug 2008 09:30:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p33 dev-lang/python: 2.5.2-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/init.d/ipw3945d /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=prescott -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mirror.muntinternet.net/pub/gentoo/ ftp://mirror.switch.ch/mirror/gentoo http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo http://mirror.ing.unibo.it/gentoo/ ftp://mirror.ing.unibo.it/gentoo/ " LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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/mine /usr/local/portage/layman/sunrise /usr/local/portage/layman/science" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa bash-completion berkdb blas branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode evo fam ffmpeg firefox fortran ftp gb gdbm gif glitz gnome gphoto2 gpm gstreamer gtk hal iconv imagemagick ipv6 isdnlog jabber javascript jpeg kerberos lapack latex ldap libnotify mad midi mikmod mime mmx mozilla mp3 mpeg msn mudflap mysql ncurses nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python quicktime readline reflection samba sdl session spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd tetex theora tiff truetype unicode usb vim-syntax vorbis win32codecs x86 xcomposite xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia nv" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** Bug 234367 has been marked as a duplicate of this bug. ***
As I reportaed in #234367 I got the same issue. I think it could be related to the flag-o-matic.eclass. I did an upgrade to gcc 4.3.1 and wanted to do a reemerge of the whole system. The reemerge sys-libs/libstdc++ took a long time with only annoucing the compile function but not showing the einfo which is before the configure command in the ebuild. There is no output neither to stdout nor to build.log. ebuild.sh is running with 100% cpu. Further investigation showed that it breaks in line 14 at "replace-cpu-flags pentium-m pentium3m pentium3". If this commented out the next break is at line 18. If line 191 the do_filter_flag call is commented out, it builds fine. Also if CXXFLAGS are unset. Used env: portage-2.2-rc6 gcc-4.3.1 glibc-2.6.1 CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe" CXXFLAGS="${CFLAGS}"
Same problem here: top shows that ebuild.sh is taking up all of my memory and cause system unresponsiveness
emerge --info -v please. i think i have an idea where it's going wrong.
I was able to reproduce this by setting FFLAGS. If you sync up after an hour or so and try again it should work.
(In reply to comment #5) > I was able to reproduce this by setting FFLAGS. If you sync up after an hour > or so and try again it should work. > Works for me. Thanks!
Works here too. Thanks!