Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381377 - sci-libs/clapack-3.2.1-r6: Linking fails: ld: cannot find -lmkl_core, -lmkl_sequential, -lmkl_intel_lp64
Summary: sci-libs/clapack-3.2.1-r6: Linking fails: ld: cannot find -lmkl_core, -lmkl_s...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 00:56 UTC by K. Posern
Modified: 2011-09-20 20:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge log (sci-libs:clapack-3.2.1-r6:20110831-235334.log,107.26 KB, text/plain)
2011-09-01 00:59 UTC, K. Posern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description K. Posern 2011-09-01 00:56:30 UTC
I will just focus on mkl_core for now:

======================================================
OUTPUT OF: ldconfig -v:
======================================================
...
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64:
    libmkl_core.so -> libmkl_core.so
    ...
/opt/intel/composerxe-2011.4.191/mkl/lib/ia32:
    libmkl_core.so -> libmkl_core.so
    ...
======================================================

So the library is there, but ld probably does not use the right path -L to look for it?!

I think this should/could be a bug, no?

I tried playing around with ld manual:
=================================
OUTPUT OF: ld -t -lmkl_core
=================================
ld: mode elf_x86_64
ld: cannot find -lmkl_core
=================================

... but of course, THIS works:
ld -t -L/opt/intel/composerxe-2011.4.191/mkl/lib/intel64 -lmkl_core


So is the setup supposed to be in a way that ld without -L finds the mkl_core lib?

Thanks for any hint!!!


Reproducible: Always

Steps to Reproduce:
1. emerge clapack
2.
3.
Actual Results:  
...
[ 99%] [100%] Building C object SRC/CMakeFiles/clapack.dir/__/INSTALL/ilaver.c.o
Building C object SRC/CMakeFiles/clapack.dir/__/INSTALL/lsame.c.o
Linking C shared library libclapack.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmkl_intel_lp64
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmkl_sequential
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmkl_core
collect2: ld returned 1 exit status
make[2]: *** [SRC/libclapack.so.3.2.1] Error 1
make[1]: *** [SRC/CMakeFiles/clapack.dir/all] Error 2
make: *** [all] Error 2
 * ERROR: sci-libs/clapack-3.2.1-r6 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =sci-libs/clapack-3.2.1-r6',
 * the complete build log and the output of 'emerge -pqv =sci-libs/clapack-3.2.1-r6'.
 * The complete build log is located at '/vola/emerge-logse/sci-libs:clapack-3.2.1-r6:20110831-235334.log'.
 * The ebuild environment file is located at '/mnt/gentoo.build/portage/sci-libs/clapack-3.2.1-r6/temp/environment'.
 * S: '/mnt/gentoo.build/portage/sci-libs/clapack-3.2.1-r6/work/clapack-3.2.1-CMAKE'


Expected Results:  
Successful emerge.

emerge --info clapack:

Portage 2.2.0_alpha51 (default/linux/amd64/10.0, gcc-4.4.6, glibc-2.11.3-r0, 3.0.3-nogo-pixel x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.3-nogo-pixel-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 31 Aug 2011 20:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.7-r2, 2.7.2-r2, 3.2-r2
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1::pentoo
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.6-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.11.3
Repositories: gentoo science vmware x11 dev-jokey java-overlay lisp pentoo mozilla mysql sunrise kPosern-local test
Installed sets: @dev, @games, @gentoo, @info, @mm, @net, @office, @sys, @sys.specific, @tmp, @virt, @x
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 LOKI-EULA sun-bcla-java-vm skype-eula AdobeFlash-10.1 Introversion"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mcx16 -msahf -msse4 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -mcx16 -msahf -msse4 -pipe"
DISTDIR="/vola/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner -1"
FEATURES="assume-digests binpkg-logs buildsyspkg collision-protect distlocks ebuild-locks fail-clean fixlafiles fixpackages metadata-transfer news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict suidctl unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=native -mcx16 -msahf -msse4 -pipe"
GENTOO_MIRRORS="http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.netnitco.net http://gentoo.mirrors.tds.net/gentoo http://mirror.the-best-hosting.net rsync://de-mirror.org/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de fr en_GB"
MAKEOPTS="-j7"
PKGDIR="/vola/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS=" --exclude-from="/etc/portage/rsync_excludes" --delete-excluded --quiet"
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="/mnt/gentoo.build"
PORTDIR="/vola/portage"
PORTDIR_OVERLAY="/vola/layman/science /vola/layman/vmware /vola/layman/x11 /vola/layman/jokey /vola/layman/java-overlay /vola/layman/lisp /vola/layman/pentoo /vola/layman/mozilla /vola/layman/mysql /vola/layman/sunrise /LINKS/overlays/mine /LINKS/overlays/test"
SYNC="rsync://rsync1.de.gentoo.org/gentoo-portage"
USE="3ds 64bit 7zip R X a52 aac aalib ace acl acpi activefilter additions administrator agg aio alsa amd64 amr amrnb amrwb animgif apache2 apng applet ares async atm atmo atop audio auth bash-completion battery berkdb bittorrent bl blender blender-game bs2b bugzilla bundledlibevent bzip2 cairo ccache cdaudio cdda cddax cddb cdinstall cdio cdparanoia cdr cdrom cdsound cgi chipcard chm chroot clamd clamdtop cli clisp common-lisp connection-sharing corefonts cpufreq cpulimit cracklib crypt css cuda cue cups curl cxx dc1394 device-mapper devil dga dhclient dia dirac directfb disk-partition djvu dmi dnd docbook dot dri drm dts dv dvb dvd dvdnav dvdr dvdread dvi eap-tls eclipse emovix enca encode eolconv escreen exif expat extensions extra extra-algorithms extra-cardsets faac faad fat fbcon fbcondecor festival ffmpeg fftw flac flash flite fltk fluidsynth fontconfig foomaticdb fortran fpx freesound ftp fts3 fuse galago gallium games garmin gcdmaster gcj gcrypt gd gdal gdbm gdl gdu gecko geldkarte geoip ggi gif gimp git github glade glib glitz glsa glut gme gmp gnome-keyring gnuplot gnutls gpac gpg gpgme gphoto2 gpm grace grammar graphics graphviz gre grub gs gsl gtk gtkhtml guile gzip h323 hbci hddtemp hdri hpn hvm icecast iconv icoutils icu id3 id3tag idea idn ieee1394 imagemagick imap imlib inkjar inotify inquisitio ioctl iptc ipv6 jabber jadetex java6 jbig jce jingle jpeg jpeg2k kate kernel-helper key-screen keyring keyscrub kqemu kvm ladspa lame laptop lastfm lastfmradio latex lcms libass libburn libcaca libgda libsamplerate libsexy libssh2 libsysfs libtiger libv4l2 lightning linuxthreads-tls live lm_sensors logrotate logwatch lua lvm lvm2 lyrics lyrics-screen lyx lzma lzo mad madwifi maildir mailwrapper maps matroska mbox mbrola md5sum mdev mem-scramble metalink metric midi mikmod mime mimencode ming mixer mjpeg mkl mmx mmxext mng moc modplug modules moneyplex monolithic-build mp2 mp3 mpd mpeg mpi mplayer mtp mudflap multilib multiprocess multiuser musepack music musicbrainz nas ncurses nemesi net nethack network networking nntp nocd normalize nptl nptlonly nut nvidia objc objc++ objc-gc ocaml ocamlopt odbc offlinehelp ofx ogg ogm ole openal opencl openct openexr opengl openmp openssl opensslcrypt openvg openvpn pam pango parted passwordsave pcap pcmcia pcre pcsc-lite pda pdf perl php phyp pink pkcs11 player plotutils pm-utils pmu png pnm pop portage portaudio posix postscript pppd pptp preview-latex proj projectm pstricks publishers pvr pygrub python q32 q64 qa qdbm qemu qt3support quicktime quotes radio radius rar raw rcs rdesktop rdesktop-vrdp readline realmedia regex reiser4 replaygain rle romio rtc rtf rtmp rtsp samba sasl scanner schroedinger science screen screenshot script scripting scripts sdl sdl-image sdl-sound sdlaudio search search-index search-screen secure-delete security session shine shout sid sidebar sieve sift skey skins slang smartcard smi smime sndfile snmp socks5 sound sounds soup sox speech speex spell spice sqlite sqlite3 srt sse sse2 sse3 sse4 sse4a ssh ssh2 ssl ssse3 stream stream4udp svg svgz sysfs syslog system-sqlite t1lib taglib tagwriting tetex tex4ht tga theora thesaurus threads threadsafe thunderbird tidy tiff timidity tivo tk tls tools tor tordns truetype twolame type1 udev uml unicode unlock-notify unzip usb userlocales utils v4l2 vaapi vapigen vcd vcdinfo vcdx vdpau vhost-net video videos vim vim-pager vim-syntax vim-with-x virtualbox visibility visualizer vlm vmware-tools vmx voice vorbis vpx wav wavpack webkit webmail webp win32 wineappdb winetriks wma wma-fixed wmf wmp wxwindows x264 xanim xattr xcomposite xen xetex xfce xft xinerama xml xmp xorg xosd xpm xscreensaver xslt xterm xv xvfb xvid xvmc yv12 zip zlib zoran zsh-completion zvbi" 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 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="fuji" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de fr en_GB" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa i810 fbdev intel nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 K. Posern 2011-09-01 00:59:09 UTC
Created attachment 285219 [details]
emerge log
Comment 2 K. Posern 2011-09-01 03:15:09 UTC
eselect for these:
  blacs                     Alternatives for blacs
  blas                      Alternatives for blas
  cblas                     Alternatives for cblas
  lapacke                   Alternatives for lapacke
  lapack                    Alternatives for lapack
  scalapack                 Alternatives for scalapack

I first tried it with all of these being set to:
   mkl64-intel
And now I tried setting all of these to:
   mkl64-int64-intel

Both with the result as seen in the emerge log attachment.

---

This morning I had installed mkl:

[I] sci-libs/mkl (10.3.4.191(10.3)[1]@08/31/2011): Intel Math Kernel Library: linear algebra, fft, math functions
[1] "science" /mnt/vola/sd/layman/science (multilib)

Maybe this info can be helpful?
Comment 3 K. Posern 2011-09-20 20:25:50 UTC
After reading: http://www.gentoo.org/proj/en/science/blas-lapack.xml

I think I figured it out:

clapack was pulled in [only] by media-libs/opencv.

And media-libs/opencv-2.2.0.ebuild depending on:
>--->=sci-libs/clapack-3.2.1-r4
AND ON:
>---virtual/lapack

But I noticed that media-libs/opencv-2.3.0 does not depend on either anymore :)
Comment 4 K. Posern 2011-09-20 20:36:31 UTC
I forgot to mention my conclusion after reading the gentoo.org link:

There was written to just redepend on virtual/lapack... so was the explicit clapack rdepend really necessary for opencv-2.2.0? - I didn't [yet] try to compile opencv-2.2.0 just without the explicit clapack rdepend line... but that could be the solution to avoid this problem I ran into? [beside updating to opencv-2.3.0 :]