I was testing "www-client/firefox-5.0-r2" with "pgo" use enabled: it compiles fine but the produced executable segfaults immediately. So i decided to enable the "debug" use but it doesn't complete the linking phase, as it is missing "gcov" symbols: "undefined reference to `__gcov_*`". P.S.: As i'm writing it's compiling with the debug use, without the pgo one. I also tried to emerge -e my whole @system and @world, without success. Reproducible: Always Steps to Reproduce: 1. Emerge www-client/firefox-5.0-r2 with USE="debug pgo" - emerge --info =www-client/firefox-5.0-r2 Portage 2.2.0_alpha43 (default/linux/x86/10.0, gcc-4.5.2, glibc-2.12.2-r0, 2.6.38.5-zen-zizo i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.38.5-zen-zizo-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.2 Timestamp of tree: Wed, 13 Jul 2011 04:45:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.4-r1 dev-util/pkgconfig: 0.25-r2 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.3-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.5.2 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.12.2 Repositories: gentoo local Installed sets: ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n" FEATURES="assume-digests binpkg-logs candy compress-build-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/" LANG="it_IT.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="it" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/lost+found" 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/portage/local/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl alsa berkdb bzip2 cli cracklib crypt cups cxx dbus dri fortran gdbm gpm iconv modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline session ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="intel8x0" 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="it" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS - Ending of ebuild log: /usr/bin/python2.7 /var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/config/pythonpath.py -I../../config /var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/config/expandlibs_exec.py --uselist -- i686-pc-linux-gnu-g++ -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -march=prescott -O2 -fno-strict-aliasing -fshort-wchar -pthread -pipe -DDEBUG -D_DEBUG -DTRACING -g -O2 -o nsIFileEnumerator nsIFileEnumerator.o -lpthread -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu/dist/bin -Wl,-rpath-link,/usr/lib -L../../dist/bin -L../../dist/lib -L/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu/dist/bin -lxpcom -lmozalloc -lxul /var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu/dist/lib/libxpcomglue_s.a -L/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu/dist/bin -lxpcom -lmozalloc -Wl,-R/usr/lib -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl ../../dist/lib/libxpcomglue_s.a(nsCOMPtr.o): In function `global constructors keyed to 65535_0_nsCOMPtr.cpp': /var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/xpcom/glue/nsCOMPtr.cpp:160: undefined reference to `__gcov_init' ../../dist/lib/libxpcomglue_s.a(nsCOMPtr.o):(.data.rel+0x24): undefined reference to `__gcov_merge_add' ../../dist/lib/libxpcomglue_s.a(nsCOMPtr.o):(.data.rel+0x30): undefined reference to `__gcov_merge_single' ../../dist/lib/libxpcomglue_s.a(nsComponentManagerUtils.o): In function `global constructors keyed to 65535_0_nsComponentManagerUtils.cpp': /var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/xpcom/glue/nsComponentManagerUtils.cpp:295: undefined reference to `__gcov_init' ../../dist/lib/libxpcomglue_s.a(nsComponentManagerUtils.o):(.data.rel+0x24): undefined reference to `__gcov_merge_add' ../../dist/lib/libxpcomglue_s.a(nsComponentManagerUtils.o):(.data.rel+0x30): undefined reference to `__gcov_merge_single' ../../dist/lib/libxpcomglue_s.a(nsStringAPI.o): In function `global constructors keyed to 65535_0_nsStringAPI.cpp': /var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/xpcom/glue/nsStringAPI.cpp:1180: undefined reference to `__gcov_init' ../../dist/lib/libxpcomglue_s.a(nsStringAPI.o):(.data.rel+0x24): undefined reference to `__gcov_merge_add' ../../dist/lib/libxpcomglue_s.a(nsStringAPI.o):(.data.rel+0x30): undefined reference to `__gcov_merge_single' ../../dist/lib/libxpcomglue_s.a(nsCRTGlue.o): In function `global constructors keyed to 65535_0_nsCRTGlue.cpp': /var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/xpcom/glue/nsCRTGlue.cpp:305: undefined reference to `__gcov_init' ../../dist/lib/libxpcomglue_s.a(nsCRTGlue.o):(.data.rel+0x24): undefined reference to `__gcov_merge_add' collect2: ld returned 1 exit status make[6]: *** [nsIFileEnumerator] Error 1 make[6]: *** Waiting for unfinished jobs.... make[6]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu/xpcom/tests' make[5]: *** [tools] Error 2 make[5]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu/xpcom' make[4]: *** [tools_tier_platform] Error 2 make[4]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu' make[3]: *** [tier_platform] Error 2 make[3]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu' make[2]: *** [default] Error 2 make[2]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release/obj-i686-pc-linux-gnu' make[1]: *** [realbuild] Error 2 make[1]: Leaving directory `/var/tmp/portage/www-client/firefox-5.0-r2/work/mozilla-release' make: *** [profiledbuild] Error 2 emake failed
Created attachment 279929 [details] Full log This is the last attempt in building firefox.
EDIT: Firefox doesn't compile also with USE="debug -pgo"