Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129776 - valgrind 3.1.1 fails to compile on x86
Summary: valgrind 3.1.1 fails to compile on x86
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Maurice van der Pot (RETIRED)
URL:
Whiteboard:
Keywords:
: 130352 130474 131175 135158 135303 136281 136752 137007 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-13 00:38 UTC by Fabian Groffen
Modified: 2009-07-27 16:09 UTC (History)
8 users (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 Fabian Groffen gentoo-dev 2006-04-13 00:38:51 UTC
[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
Comment 1 Maurice van der Pot (RETIRED) gentoo-dev 2006-04-13 12:01:48 UTC
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.
Comment 2 Fabian Groffen gentoo-dev 2006-04-13 12:17:26 UTC
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.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-18 06:17:55 UTC
*** Bug 130352 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-04-19 07:24:12 UTC
*** Bug 130474 has been marked as a duplicate of this bug. ***
Comment 5 Maurice van der Pot (RETIRED) gentoo-dev 2006-04-27 11:33:50 UTC
*** Bug 131175 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-06-01 07:08:02 UTC
*** Bug 135158 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-06-02 11:56:42 UTC
*** Bug 135303 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-06-10 05:39:24 UTC
*** Bug 136281 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-06-14 02:47:01 UTC
*** Bug 136752 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-06-16 12:32:34 UTC
*** Bug 137007 has been marked as a duplicate of this bug. ***