Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26637 - configure for valgrind-2.0_pre20030725 fails with a 2.6.0-test1 kernel
Summary: configure for valgrind-2.0_pre20030725 fails with a 2.6.0-test1 kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Caleb Tennis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-14 11:21 UTC by Joseph Nievelt
Modified: 2003-11-14 01:48 UTC (History)
2 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 Joseph Nievelt 2003-08-14 11:21:14 UTC
Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.6.0-test1 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="3dnow apm cups encode foomaticdb libg++ mad mikmod nls quicktime spell xv
gtkhtml gdbm berkdb slang tetex bonobo svga guile tcpd pam imlib gtk motif X kde
-gnome -gnome2 aalib arts avi cdr crypt dvd esd gif gpm icc java jpeg ldap
libwww memlimit mmx mozilla mpeg mpi ncurses oav oggvorbis opengl oss pdflib
perl png python qt readline samba sdl sse ssl truetype usb xml xml2 xmms zlib
x86 ~x86 alsa tcltk"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"



Reproducible: Always
Steps to Reproduce:
1. Install and boot 2.6.0-test1 linux kernel (presumably anything 2.5.x or later)
2. emerge valgrind

Actual Results:  
checking for the kernel version... unsupported (2.6.0-test1)
configure: error: Valgrind works on kernels 2.2 and 2.4

!!! ERROR: dev-util/valgrind-2.0_pre20030725 failed.
!!! Function econf, Line 320, Exitcode 1
!!! econf failed


Simply adding 2.6.* cases to configure and configure.in (and config.in.h) seems
to work for me, but I am just using it casually.
Comment 1 solar (RETIRED) gentoo-dev 2003-08-15 09:29:26 UTC
Joseph,

Ok I have created a small patch that will allow valgrind-2.0_pre20030725 to compile on 2.6 (Not sure about run)

I would appreciate it if you or somebody else could please test its functionality on 2.6 and report back results here.

emerge sync
ACCEPT_KEYWORDS="~x86" emerge valgrind
Comment 2 Joseph Nievelt 2003-08-17 13:04:36 UTC
I will say that this works.  The only issue I have is that when compiling with only -W*, -pedantic, and -g flags, I get the following from valgrind:

Syscall param write(buf) contains uninitialised or unadressable byte(s)
IN SUMMARY: 1 errors from 1 contexts (supressed 0 from 0)
at 0x4033B4B8 __GI___libc_write (in /lib/libc-2.3.2.so)
by 0x402D995D: new_do_write (in /lib/libc-2.3.2.so)
by 0x402D98F5: _IO_do_write@@GLIBC_2.1 (in /lib/libc-2.3.2.so)
by 0x402D9237: _IO_file_close_it@@GLIBC_2.1 (in /lib/libc-2.3.2.so)
Address 0x412490C5 is not stack'd, malloc'd, or free'd

I also get this when I compile with -O3 and -pg.  It may just be something that needs to be added to the default suppression, until it gets fixed for real?
Comment 3 solar (RETIRED) gentoo-dev 2003-10-02 18:51:30 UTC
valgrind is in need of a gentoo maintainer.

Comment 4 Brian Jackson (RETIRED) gentoo-dev 2003-10-16 15:34:47 UTC
We don't really need this. It's not really something that we have the capacity
for more packages at the moment.
--kernel team
Comment 5 Mark Gilbert 2003-10-16 18:45:56 UTC
As I told solar on irc yesterday, give it a shot with 20031012 (which I suggested
he update to, as it is as usual a vast improvement over the previous release).
 Should work vanilla.
Lemme know if it doesn't.
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2003-11-01 23:48:55 UTC
what's the story joseph?
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2003-11-13 09:01:17 UTC
No response - closing and assuming fixed in lastest valgrind.
Comment 8 Joseph Nievelt 2003-11-14 01:48:12 UTC
Sorry for falling off the face of the earth for so long.

It looks like the 2.0 final ebuild does not require the patch, so you can remove it.  To be more specific, the patch can no longer be applied and will cause emerge to fail.