Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184827 - sys-devel/gcc-4.1.2 emerge parallel make w/ USE=mudflap
Summary: sys-devel/gcc-4.1.2 emerge parallel make w/ USE=mudflap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-10 11:51 UTC by Waldo
Modified: 2007-07-11 04:29 UTC (History)
1 user (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 Waldo 2007-07-10 11:51:31 UTC
while doing a revdep-rebuild, I'm getting a strange crash building gcc 4.2.1.  I haven't had any problem building this package previously, so something new must have happened:

/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/libmudflap -I. -Wall -ffunction-sections -fdata-sections -O2 -O2 -march=athlon64 -pipe -MT mf-hooks2.lo -MD -MP -MF .deps/mf-hooks2.Tpo -c /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/libmudflap/mf-hooks2.c  -fPIC -DPIC -o .libs/mf-hooks2.o
/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/libmudflap -I. -Wall -ffunction-sections -fdata-sections -O2 -O2 -march=athlon64 -pipe -MT mf-hooks2.lo -MD -MP -MF .deps/mf-hooks2.Tpo -c /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/libmudflap/mf-hooks2.c -o mf-hooks2.o >/dev/null 2>&1
make[3]: *** [mf-hooks2.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/x86_64-pc-linux-gnu/libmudflap'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/x86_64-pc-linux-gnu/libmudflap'
make[1]: *** [install-target-libmudflap] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build'
make: *** [install] Error 2

!!! ERROR: sys-devel/gcc-4.1.2 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_install
  ebuild.sh, line 1067:   Called qa_call 'src_install'
  ebuild.sh, line 44:   Called src_install
  ebuild.sh, line 1311:   Called toolchain_src_install
  toolchain.eclass, line 35:   Called gcc-compiler_src_install
  toolchain.eclass, line 1614:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.1.2/temp/build.log'.

Any help with this would be appreciated.

Reproducible: Always

Steps to Reproduce:
1. revdep-rebuild
2.  It tries to build gcc.
3.  an hour and a half in... boom.
Comment 1 Waldo 2007-07-10 11:51:58 UTC
Sorry that's 4.1.2 not 4.2.1.

W
Comment 2 Waldo 2007-07-10 11:53:47 UTC
Also, FWIW:

 # emerge --info
Portage 2.1.2.9 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo x86_64)
=================================================================
System uname: 2.6.22-gentoo x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System release 1.12.10
Timestamp of tree: Tue, 10 Jul 2007 07:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.22
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer -msse3 -frerun-loop-opt -ftracer -fprefetch-loop-arrays -fforce-addr -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer -msse3 -frerun-loop-opt -ftracer -fprefetch-loop-arrays -fforce-addr -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://mirror.espri.arizona.edu/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo"
LANG="en_US,UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amd64 asf avahi avi berkdb bitmap-fonts browserplugin bzip2 cairo canvas cddb cdparanoia cdr cli cracklib cups curl daap dbus divx4linux dri dts dv dvd dvdr dvdread eds emboss encode evo evolution faad fam ffmpeg firefox flac foomatic fortran freetype gcj gdbm gif gimpprint glib glitz glut glx gmail gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl-compat iconv ieee1394 imagemagick imlib ipod ipv6 isdnlog java jpeg kerberos lame lcms ldap libg++ libgda libnotify libsndfile libwww live lm_sensors mad matroska mdnsresponder-compat midi mikmod mjpeg mmx mng mono mozilla mozsvg mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin nvidia offensive ofx ogg oggvorbis openal opengl openmp oscar oss pam pch pcre pdf perl png pop ppds pppd python qt-static qt3 qt3support qt4 quicktime quotes readline reflection regex rtc rtsp sasl scanner sdl session spell spl sse sse2 ssl svg symlink tagwriting tcpd theora threads tiff tokenizer truetype truetype-fonts type1 type1-fonts unicode usb vcd vorbis widescreen wxwindows xcomposite xine xinerama xml xml2 xorg xprint xv xvid yahoo zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I just noticed i added mudflap to the use flags (can't remember when or why).. maybe i'll get rid of that and see if it fixes the problem...

W
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-10 11:54:39 UTC
Well, there's no error above. Try again w/ MAKEOPTS="-j1"
Comment 4 Waldo 2007-07-10 12:02:12 UTC
trying w/-j1 but I have a dual-core amd64.  Shouldn't it be jCORES+1?

W
Comment 5 Waldo 2007-07-10 15:13:09 UTC
Wow.  That fixed it!  But why?

W
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-07-10 18:50:12 UTC
Reopen.
Comment 7 Waldo 2007-07-10 20:04:28 UTC
It looks like it's already re-opened.  That's the strangest thing.  How'd you know to fix it?  Also, when it's -j3, it should use both cores, right?  I always see it at 50% cpu usage in top rather than 100%...  dunno if that's not related...

W
Comment 8 SpanKY gentoo-dev 2007-07-10 20:06:29 UTC
can you post the full build log as an attachment please

emerge gcc >& log
Comment 9 Waldo 2007-07-10 20:09:35 UTC
Sure.. do you want the successful build with -j1 or the busted one with -j3?

W
Comment 10 SpanKY gentoo-dev 2007-07-10 20:15:26 UTC
busted
Comment 11 Waldo 2007-07-10 20:30:05 UTC
k, it's started.  This'll be a HUGE log as it blows up after an hour & a half of compiling, but stay tuned.. just watching top, CPU(s) never gets above 48%..

W
Comment 12 SpanKY gentoo-dev 2007-07-10 20:33:53 UTC
that's what compression (bzip2) is for
Comment 13 Waldo 2007-07-11 04:29:24 UTC
Well amazingly somehow it built successful this time with -j3.  I can't explain it, but i'm going to close this bug.

Thanks to whomever suggested the change... I'm gonna leave it on -j3 for now, and if i experience the bug again I'll include a log.

W