Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224913 - sci-mathematics/octave-2.1.73 dependency error when compiled with USE="mpi"
Summary: sci-mathematics/octave-2.1.73 dependency error when compiled with USE="mpi"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-04 17:16 UTC by Jelle de Plaa
Modified: 2010-06-23 09:28 UTC (History)
0 users

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 Jelle de Plaa 2008-06-04 17:16:23 UTC
The ebuild sci-mathematics/octave-2.1.73 fails to merge with the "mpi" use flag, when sys-cluster/mpich2 was not (manually) installed before. Portage installs sys-cluster/lam-mpi-7.1.2 automatically, however, the octave ebuild needs sys-cluster/mpich2 and stops compiling.


Reproducible: Always

Steps to Reproduce:
1.emerge -C mpich2 octave
2.emerge octave


Actual Results:  
Error message following emerge octave:

 * 
 * ERROR: sci-mathematics/octave-2.1.73 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3059:  Called built_with_use 'src_compile' 'src_compile'
 *             environment, line  495:  Called die
 * The specific snippet of code:
 *       [[ -z ${PKG} ]] && die "Unable to resolve $1 to an installed package";
 *  The die message:
 *   Unable to resolve sys-cluster/mpich2 to an installed package


Expected Results:  
The "mpi" use flag for sci-mathematics/octave-2.1.73 should trigger portage to install sys-cluster/mpich2 instead of sys-cluster/lam-mpi-7.1.2.

There is an easy work-around:
* Emerge sys-cluster/mpich2 manually before sci-mathematics/octave.  

-------------------------------------------
Output of emerge --info:

Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r8 x86_64 Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz
Timestamp of tree: Wed, 04 Jun 2008 03:48:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-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/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="C"
MAKEOPTS="--jobs=3"
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"
PORTDIR_OVERLAY="/usr/local/overlay/xeffects"
SYNC="rsync://192.168.1.1/gentoo-portage"
USE="3dnow X a52 acl acpi alsa amd64 arts avahi berkdb bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dv dvd dvdr dvdread encode esd exif fame fbcondecor ffmpeg flac fortran gdbm gnome gpm gs gtk hal iconv ieee1394 ipv6 isdnlog jack java jpeg kde mad midi mmx mp3 mpeg mplayer mudflap multilib ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl png pppd python qt3 qt4 quicktime readline reflection session smp spl sse sse2 ssl ssse3 svg tcpd tetex theora tiff timidity truetype unicode v4l v4l2 vorbis wma x264 xinerama xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2008-06-05 12:45:04 UTC
Thanks much for your note! With USE='mpi' octave depends
on virtual/mpi which will actually pull in mpich by
default. However, lam-mpi satisfies the virtual as well
and this seems to be the problem. I'll have a look at this
and check what mpi implementations works or won't.

Thanks,
Markus
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2008-08-28 15:06:50 UTC
The issue with this bug is much more simple -- it has to do with the 'checks' that were implemented for bug "182904".

The problem is that there is a test for 'built_with_use sys-cluster/mpich2 cxx', which fails when mpich2 isn't installed.  These if statements need to be rearranged so that an if test of 'has_version sys-cluster/mpich2' is run before the check for the 'cxx' use flag.

I hacked a solution to get it to compile on my system, but since i only use lam-mpi and I wasn't careful, I can't provide a trustworthy patch to fix this bug.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2010-06-23 09:28:07 UTC
+  23 Jun 2010; Justin Lecher <jlec@gentoo.org> octave-2.1.73.ebuild,
+  octave-2.1.73-r1.ebuild:
+  Fix check if mpich2 is not installed, #224913
+