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

Bug 525366

Summary: media-gfx/povray-3.7.0.0 fails src_configure w/ USE=mkl ( configure: error: Cannot find working mkl library )
Product: Gentoo Linux Reporter: Kent Fredric (IRC: kent\n) <kentnl>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: CONFIRMED ---    
Severity: normal CC: frp.bissey, kripton
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: config.log
emerge --info

Description Kent Fredric (IRC: kent\n) gentoo-dev 2014-10-14 02:04:00 UTC
Created attachment 386636 [details]
config.log

checking boost/system/error_code.hpp usability... yes
checking boost/system/error_code.hpp presence... yes
checking for boost/system/error_code.hpp... yes
checking for the Boost system library... yes
checking boost/thread.hpp usability... yes
checking boost/thread.hpp presence... yes
checking for boost/thread.hpp... yes
checking for the Boost thread library... (cached) yes
checking for sin in -lmkl... no
configure: error: Cannot find working mkl library

emerge -pqv '=media-gfx/povray-3.7.0.0::gentoo' mkl
[ebuild   R   ] sci-libs/mkl-10.0.5.025  USE="-doc -fftw -fortran95 -int64 -mpi" 
[ebuild   R   ] media-gfx/povray-3.7.0.0  USE="X io-restrictions mkl* tiff -debug -openexr -static-libs {-test}"
Comment 1 Kent Fredric (IRC: kent\n) gentoo-dev 2014-10-14 02:04:33 UTC
Created attachment 386638 [details]
emerge --info
Comment 2 Fran├žois Bissey 2014-10-14 02:32:44 UTC
--with-libmkl=/usr/lib64 isn't mkl supposed to be in /opt? Do you have a link to it under /usr/lib64?
Comment 3 Kent Fredric (IRC: kent\n) gentoo-dev 2014-10-14 02:57:23 UTC
Indeed, it is in opt:

qlist mkl | grep libmkl.so
/opt/intel/mkl/10.0.5.025/lib/em64t/libmkl.so
/opt/intel/mkl/10.0.5.025/lib/em64t/libmkl_solver_ilp64_sequential.a
/opt/intel/mkl/10.0.5.025/lib/em64t/libmkl_solver_lp64_sequential.a
/opt/intel/mkl/10.0.5.025/lib/em64t/libmkl_solver.a
/opt/intel/mkl/10.0.5.025/lib/em64t/libmkl_solver_lp64.a
/opt/intel/mkl/10.0.5.025/lib/em64t/libmkl_solver_ilp64.a

However, there's no symlink in /usr/lib64/ that I can see.

find /usr/lib64/ | grep -i mkl
/usr/lib64/rsyslog/imklog.so
/usr/lib64/go/include/plan9/mklibc.rc
/usr/lib64/debug/usr/sbin/mklost+found.debug
/usr/lib64/debug/usr/lib64/rsyslog/imklog.so.debug
/usr/lib64/debug/usr/bin/grub2-mklayout.debug

Also, I have this failing in the same way on two distinct systems, initially it was a paludis box, so I replicated it with a fresh install of mkl on a box that had never had mkl on it before. ( as evidenced by the initial lack of the intel license file ;) )

SO the absence of the symlink in conjuction with:

  $(use_with mkl libmkl "${EPREFIX}/usr/$(get_libdir)")

Probably explains the issue.