Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492802 - [science overlay] sci-libs/mkl-11.1.0.080 installs invalid pkg-config files for dynamic and intel openmp versions of libraries
Summary: [science overlay] sci-libs/mkl-11.1.0.080 installs invalid pkg-config files f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-28 16:34 UTC by Andrew Savchenko
Modified: 2013-12-08 17:31 UTC (History)
1 user (show)

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


Attachments
hpl_build.log (build.log,85.16 KB, text/x-log)
2013-11-28 16:36 UTC, Andrew Savchenko
Details
mkl-11.1.0.080.ebuild.patch (mkl-11.1.0.080.ebuild.patch,665 bytes, patch)
2013-11-28 16:38 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2013-11-28 16:34:28 UTC
Hello,

I found that MKL installs incorrect .pc files for the following variations:
mkl64-{,int64}-{dynamic,intel}-openmp*.pc

All these files contain references to -liomp5, but this library is located not at MKL libdir, but rather at compiler's lib dir:
/opt/intel/composerxe-2013.0.080/compiler/lib/${IARCH}/

This path is not preset in *.pc files, thus link stage fails when affected alternatives are selected. See hpl build log below, which fails when e.g. mkl64-gfortran-openmp is selected as BLAS implementation.

This can be fixed by addition of compiler's lib path in *.pc files generation code. See attached patch. Works fine for me, though I want to discuss this patch prior commit since this package is quite important.
Comment 1 Andrew Savchenko gentoo-dev 2013-11-28 16:36:57 UTC
Created attachment 364138 [details]
hpl_build.log
Comment 2 Andrew Savchenko gentoo-dev 2013-11-28 16:38:13 UTC
Created attachment 364140 [details, diff]
mkl-11.1.0.080.ebuild.patch

Proposed ebuild fix.
Comment 3 Andrew Savchenko gentoo-dev 2013-12-07 10:55:59 UTC
Ping.

I'll fix this in a week if there are no objections.
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2013-12-08 17:31:15 UTC
+  08 Dec 2013; Justin Lecher <jlec@gentoo.org> -mkl-11.0.3.163.ebuild,
+  -mkl-11.0.5.192.ebuild, -mkl-11.1.0.080.ebuild, +mkl-11.1.0.080-r1.ebuild:
+  Fix linking problems with openmp support, #492802; thanks Andrew Savchenko
+  for the patch
+