Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 189369

Summary: vtk-5.0.3 doesn't compile with mpich2 and python/tcl wrapers
Product: Gentoo Linux Reporter: Marek <mwojc>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marek 2007-08-18 14:38:10 UTC
When I try to compile vtk-5.0.3 with USE="mpi python tcl tk" then compilation fails when linking to libmpich.so (i'm using mpich2):

...
Scanning dependencies of target pvtk
[ 99%] Building CXX object Wrapping/Tcl/CMakeFiles/pvtk.dir/vtkParaTkAppInit.o
Linking CXX executable ../../bin/pvtk
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libmpich.so: undefined reference to `aio_read64'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libmpich.so: undefined reference to `aio_error64'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libmpich.so: undefined reference to `aio_suspend64'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libmpich.so: undefined reference to `aio_write64'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libmpich.so: undefined reference to `aio_return64'
collect2: ld returned 1 exit status
make[2]: *** [bin/pvtk] B??d 1
make[1]: *** [Wrapping/Tcl/CMakeFiles/pvtk.dir/all] B??d 2
make: *** [all] B??d 2

!!! ERROR: sci-libs/vtk-5.0.3 failed.
Call stack:
  ebuild.sh, line 1632:   Called dyn_compile
  ebuild.sh, line 983:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  vtk-5.0.3.ebuild, line 174:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sci-libs/vtk-5.0.3/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="/usr/share/blackdown-java3d-bin/lib/j3dcore.jar:/usr/share/blackdown-java3d-bin/lib/vecmath.jar:/usr/share/blackdown-java3d-bin/lib/j3daudio.jar:/usr/share/blackdown-java3d-bin/lib/j3dutils.jar:." JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info


And below my emerge --info:

Portage 2.1.2.11 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-suspend2-r1 i686)
=================================================================
System uname: 2.6.22-suspend2-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 17 Aug 2007 14:00:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LINGUAS="pl en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gentopia /usr/portage/local/layman/science /usr/portage/local/layman/wrobel /usr/portage/local/layman/wschlich /usr/portage/local/layman/liquidx /usr/portage/local/layman/ecatmur /usr/portage/local/myown /usr/portage/local/mysiar"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="radeon vga vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Thanks
Marek

Reproducible: Always

Steps to Reproduce:
1. USE="mpe" emerge mpich2
2. ACCEPT_KEYWORDS="~x86" USE="mpi python tcl tk" emerge vtk

Actual Results:  
vtk compilation crashes

Expected Results:  
vtk should install
Comment 1 Marek 2007-08-18 14:44:59 UTC
I suppose the solution can be found there: 
http://www.nabble.com/MPICH2-and-errors....-t2882004.html

I seems vtk ebuild should ensure there is mpicc compiler used for mpi parts instead of gcc. 
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-08-18 15:19:26 UTC

*** This bug has been marked as a duplicate of bug 155920 ***