Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114431 - valgrind 3.1.0, assembler fails
Summary: valgrind 3.1.0, assembler fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Maurice van der Pot (RETIRED)
URL:
Whiteboard:
Keywords:
: 114942 122490 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-04 04:15 UTC by Devils-Hawk
Modified: 2006-02-19 09:09 UTC (History)
4 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 Devils-Hawk 2005-12-04 04:15:06 UTC
funny thing is, that the if I just untar the valgrind-3.1.0.tar.bz2 package and
compile it by hand, everything seems to be working fine.

Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.6-r0,
2.6.14-gentoo-r2-reiser4-devh i686)
=================================================================
System uname: 2.6.14-gentoo-r2-reiser4-devh i686 AMD Athlon(TM) XP 2200+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
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.15.92.0.2-r10, 2.16.1-r1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"


Reproducible: Always
Steps to Reproduce:
1. emerge valgrind
2.
3.

Actual Results:  
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 -O -g -Wmissing-prototypes -Winline -Wall -Wshadow
-Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -O3 -march=athlon-xp
-pipe -fno-pie -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}:811: 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.0/work/valgrind-3.1.0/coregrind'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/valgrind-3.1.0/work/valgrind-3.1.0/coregrind'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/valgrind-3.1.0/work/valgrind-3.1.0'
make: *** [all] Error 2

!!! ERROR: dev-util/valgrind-3.1.0 failed.


Expected Results:  
emerge succeeds
Comment 1 Maurice van der Pot (RETIRED) gentoo-dev 2005-12-05 10:50:34 UTC
This is an odd one. Could you try with MAKEOPTS="-j1" and CFLAGS="-O2"?
Comment 2 Raimondo Giammanco 2005-12-05 10:59:32 UTC
With gcc-3.4.4-r1 it emerged correcly.

The problem was with  3.3.6. It would be nice to have it working with 3.3.6 as well.
Comment 3 Josef Grunig 2005-12-05 12:27:36 UTC
Here it fails also with gcc-3.4.4-r1; 
using suggestions in comment #1 it emerges correctly.

Many thanks.
Comment 4 Maurice van der Pot (RETIRED) gentoo-dev 2005-12-06 13:02:42 UTC
I have been able to reproduce it with gcc-3.3.6, but not with 3.4.4.
Josef, are you sure about 3.4.4?

Comment 5 Josef Grunig 2005-12-06 17:27:29 UTC
Perhaps I'm doing something wrong, because: 

I have gcc-3.4.4-r1 installed:.

*  sys-devel/gcc
      Latest version available: 3.4.4-r1
      Latest version installed: 3.4.4-r1

and trying to do: 

# emerge valgrind

I get this:

{standard input}: Assembler messages:
{standard input}:800: 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.0/work/valgrind-3.1.0/coregrind'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/valgrind-3.1.0/work/valgrind-3.1.0/coregrind'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/valgrind-3.1.0/work/valgrind-3.1.0'
make: *** [all] Error 2

!!! ERROR: dev-util/valgrind-3.1.0 failed.
!!! Function src_compile, Line 49, Exitcode 2
!!! Make failed!
!!! If you need support, post the topmost build error, NOT this status message.


but doing emerge info:

# emerge info
Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.3.4, glibc-2.3.5-r3,
2.6.14-gentoo i686)
=================================================================
System uname: 2.6.14-gentoo i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.0_pre11
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.16
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.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3ds X a52 aac aalib acpi acpi4linux alsa amarok apache2 arts
artswrappersuid asf atm audiofile automount avi bash-completion bitmap-fonts
blender-game bzip2 cacheemu ccache cdparanoia cdr chroot cjk clamav codecs crypt
css cups curl dba dhcp directfb divx4linux dpms dv dvd dvdr dvdread eds emboss
encode esd fam fbcon fbdev ffmpeg flash font-server foomaticdb fortran ftp gd
gdbm gif gimp gimpprint gkrellm glut gnokii gphoto2 gpm gstreamer gtk2 ieee1394
imagemagick imlib ipv6 irda jack java javascript joystick jpeg jpeg2k junit kde
kdeenablefinal kig-scripting libcaca libg++ libwww logitech-mouse lzo mad mikmod
ming mjpeg mmx motif moznocompose moznoirc moznomail mozsvg mp3 mpeg mplayer
mpm-threadpool msn musicbrainz mysql mysqli ncurses nls nsplugin nvidia ogg
oggvorbis openexr opengl oss pam pascal pcmcia pdflib perl php pic png pnp
povray pthreads python qt quicktime rdesktop readline real samba scanner screen
sdl simplexml slang slp smp soap sockets speex spell sql sse sse2 ssl subversion
svg svga tcltk tcpd tetex theora threads tidy tiff truetype truetype-fonts
type1-fonts usb v4l v4l2 vcd vidix visualization vorbis wifi win32codecs wmf
wxgtk1 xine xinerama xml xml2 xmms xosd xprint xscreensaver xv xvid zeroconf zip
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

it seems that I have gcc-3.3.4; probably I have to re-emerge some system ebuild.
can you tell me which one? 

Thanks for your work!
Comment 6 Raimondo Giammanco 2005-12-07 00:12:36 UTC
(In reply to comment #5)

> it seems that I have gcc-3.3.4; probably I have to re-emerge some system ebuild.
> can you tell me which one? 
> 
> Thanks for your work!
> 
If you do gcc-config -l, it will list the available compilers and an asterisc 
will tell you which one is in use, but maybe you are already aware of that.
Comment 7 Maurice van der Pot (RETIRED) gentoo-dev 2005-12-07 08:52:17 UTC
I'm closing this one, because it looks like it is due to a bug in gcc 3.3.6
that is fixed in 3.4.4-r1.

The latest stable version of gcc is 3.4.4-r1 on all architectures supported
by valgrind, so the final solution is: use gcc 3.4.4-r1

Thanks everyone.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-12-08 23:04:43 UTC
*** Bug 114942 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-02-19 09:09:25 UTC
*** Bug 122490 has been marked as a duplicate of this bug. ***