Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258832 - dev-util/valgrind-3.4.0 should support IUSE=mpi
Summary: dev-util/valgrind-3.4.0 should support IUSE=mpi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Maurice van der Pot (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 258964
Blocks:
  Show dependency tree
 
Reported: 2009-02-13 09:53 UTC by Max
Modified: 2009-07-26 12:09 UTC (History)
1 user (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 Max 2009-02-13 09:53:33 UTC
Ebuild dev-util/valgrind-3.4.0 compiles always valgrind w/o mpi support, even if an mpi library is installed. No USE flag is available to trigger this feature.

Reproducible: Always

Steps to Reproduce:
1. run emerge -v valgrind

2. once that the configure process is completed, stop the emerge (CTRL+C)

3. the following lines appear in the config.log file (/var/tmp/portage/dev-util/valgrind-3.4.0/work/valgrind-3.4.0/config.log)
<skip>
  $ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-x --without-mpicc --build=i686-pc-linux-gnu
<skip>
configure:9651: checking primary target for usable MPI2-compliant C compiler and mpi.h
<skip>
configure:9711: result: no

Note the configure option --without-mpicc and the subsequent (obvious) failed search of the MPI support.
Actual Results:  
No libmpiwrap.so library is available for debugging MPI-programs.

Expected Results:  
If the mpi USE flag has been activated and a mpi2 library is available, valgrind has to be compile with the MPI2 support.

vt-numerik13 valgrind-3.4.0 # emerge --info
Portage 2.1.6.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.24-gentoo-r8-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-glibc2.0
Timestamp of tree: Mon, 09 Feb 2009 08:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.intergenia.de ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles/"
LANG="en_US@euro"
LC_ALL="en_US@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X Xaw3d acl acpi alsa bluetooth branding bzip2 cairo cdr cli cracklib crypt cups cxx dbus dri dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg fftw firefox fortran gd gdbm gif glut gpm graphviz gstreamer gtk hal iconv idn imagemagick ipv6 isdnlog java jpeg kde kdehiddenvisibility latex lcms ldap libnotify mad midi mikmod mmx mng mp3 mpeg mpi mudflap ncurses netcdf nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pic png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tetex tiff tk truetype type1 unicode usb vorbis win32codecs wmf wxwindows x86 xattr xine xml xorg xscreensaver xulrunner xv xvid 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Maurice van der Pot (RETIRED) gentoo-dev 2009-02-14 12:17:37 UTC
The reason this was added is bug #202684. Valgrind's upstream has explained what's going on in http://bugs.kde.org/show_bug.cgi?id=154240.

I added a bug to bugzilla for the root cause. Once that has been solved, I can fix this one.

Comment 2 Max 2009-02-14 15:12:31 UTC
(In reply to comment #1)
> The reason this was added is bug #202684. Valgrind's upstream has explained
> what's going on in http://bugs.kde.org/show_bug.cgi?id=154240.
> 
> I added a bug to bugzilla for the root cause. Once that has been solved, I can
> fix this one.
> 

I see, but I think it is a matter of which mpi-implementation is provided. On my PC the sys-cluster/mpich2/mpich2-1.0.3 ebuild is installed, and I can compile valgrind by the following steps:

1- (like in the bug description)

2- (like in the bug description)

3- cd /var/tmp/portage/dev-util/valgrind-3.4.0/work/valgrind-3.4.0

4- ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-x --build=i686-pc-linux-gnu
(actually these are the original ebuild-options, except for the missing --without-mpicc)

5- make && make install

and everything works fine.

Would be possible to introduce a configure-dependence of the mpi flag on the installed mpi-version?

Thanks & regards,
Max




Comment 3 Maurice van der Pot (RETIRED) gentoo-dev 2009-07-26 12:09:33 UTC
I just added valgrind-3.4.1-r1, which supports the mpi use flag. Thanks.