[ebuild U ] dev-util/valgrind-3.1.1 [2.4.0] -X 0 kB default CFLAGS: -mcpu=pentium2 -O3 -pipe, result: if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../coregrind -I.. -I../coregrind/x86 -I../coregrind/linux -I../coregrind/x86-linux -I../include -I../VEX/pub -DVG_PLATFORM="\"x86-linux\"" -DVGA_x86=1 -DVGO_linux=1 -DVGP_x86_linux=1 -DVG_LIBDIR="\"/usr/lib/valgrind"\" -m32 -mpreferred-stack-boundary=2 -fno-stack-protector -O -g -Wmissing-prototypes -Winline -Wall -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -mcpu=pentium2 -O3 -pipe -Wno-long-long -MT libcoregrind_x86_linux_a-m_libcassert.o -MD -MP -MF ".deps/libcoregrind_x86_linux_a-m_libcassert.Tpo" -c -o libcoregrind_x86_linux_a-m_libcassert.o `test -f 'm_libcassert.c' || echo './'`m_libcassert.c; \ then mv -f ".deps/libcoregrind_x86_linux_a-m_libcassert.Tpo" ".deps/libcoregrind_x86_linux_a-m_libcassert.Po"; else rm -f ".deps/libcoregrind_x86_linux_a-m_libcassert.Tpo"; exit 1; fi {standard input}: Assembler messages: {standard input}:977: Error: symbol `m_libcassert_get_ip' is already defined make[3]: *** [libcoregrind_x86_linux_a-m_libcassert.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/valgrind-3.1.1/work/valgrind-3.1.1/coregrind' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/valgrind-3.1.1/work/valgrind-3.1.1/coregrind' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/valgrind-3.1.1/work/valgrind-3.1.1'make: *** [all] Error 2 !!! ERROR: dev-util/valgrind-3.1.1 failed. !!! Function src_compile, Line 61, Exitcode 2 !!! Make failed! I changed my CFLAGS to have O2 instead of O3 and it compiled fine. I suggest replacing the O3 flag with O2 in the ebuild. Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r3, 2.6.14-orakel-gentoo-r2 i686) ================================================================= System uname: 2.6.14-orakel-gentoo-r2 i686 Pentium III (Katmai) Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 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.4.19, 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mcpu=pentium2 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=pentium2 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://portage.orakel.ods.org/gentoo-portage" USE="x86 acl berkdb bzip2 crypt curl dri emboss expat gd gdbm gif gmp gpm idn imagemagick imlib ipv6 isdnlog java jpeg junit ldap libwww maildir mhash mysql ncurses nls pam pcre pdflib perl php png postgres pppd python readline recode slang spell ssl svga tcpd tiff truetype udev usb xml2 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
It looks like a problem with gcc 3.3.6 to me. gcc 3.4.6 compiles it just fine. Do you have 3.4.5(-r1) (the latest stable gcc) installed? I'd like to know how it handles this.
Oops... (hermes:~) # gcc-config --list-profiles [1] i686-pc-linux-gnu-3.3.6 * [2] i686-pc-linux-gnu-3.3.6-hardened [3] i686-pc-linux-gnu-3.3.6-hardenednopie [4] i686-pc-linux-gnu-3.3.6-hardenednopiessp [5] i686-pc-linux-gnu-3.3.6-hardenednossp [6] i686-pc-linux-gnu-3.4.5 [7] i686-pc-linux-gnu-3.4.5-hardened [8] i686-pc-linux-gnu-3.4.5-hardenednopie [9] i686-pc-linux-gnu-3.4.5-hardenednopiessp [10] i686-pc-linux-gnu-3.4.5-hardenednossp (hermes:~) # gcc-config i686-pc-linux-gnu-3.4.5 * Switching native-compiler to i686-pc-linux-gnu-3.4.5 ... [ ok ] No idea why that wasn't set to 3.4.5. with that compiler -O3 isn't an issue.
*** Bug 130352 has been marked as a duplicate of this bug. ***
*** Bug 130474 has been marked as a duplicate of this bug. ***
*** Bug 131175 has been marked as a duplicate of this bug. ***
*** Bug 135158 has been marked as a duplicate of this bug. ***
*** Bug 135303 has been marked as a duplicate of this bug. ***
*** Bug 136281 has been marked as a duplicate of this bug. ***
*** Bug 136752 has been marked as a duplicate of this bug. ***
*** Bug 137007 has been marked as a duplicate of this bug. ***