Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688792 - sci-libs/umfpack-5.6.2 - configure: error: Cannot find blas libraries
Summary: sci-libs/umfpack-5.6.2 - configure: error: Cannot find blas libraries
Status: UNCONFIRMED
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:
: 688924 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-06-27 10:02 UTC by email200202
Modified: 2020-03-02 00:50 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,77.70 KB, text/plain)
2019-06-27 10:03 UTC, email200202
Details
emerge -pqv '=sci-libs/umfpack-5.6.2::gentoo' (file_688792.txt,121 bytes, text/plain)
2019-06-27 10:04 UTC, email200202
Details
emerge --info '=sci-libs/umfpack-5.6.2::gentoo' (file_688792.txt,7.50 KB, text/plain)
2019-06-27 10:05 UTC, email200202
Details

Note You need to log in before you can comment on or make changes to this bug.
Description email200202 2019-06-27 10:02:14 UTC
After sync/world update and then emerge @preserved-rebuild, sci-libs/umfpack-5.6.2 failed to build with the error message:

checking for sgemm_ in -lcomplib.sgimath... no
checking for sgemm_ in -lblas... (cached) no
checking for sgemm_ in -lblas... (cached) no
configure: error: Cannot find blas libraries

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sci-libs/umfpack-5.6.2/work/umfpack-5.6.2_build/config.log
 * ERROR: sci-libs/umfpack-5.6.2::gentoo failed (configure phase):
 *   econf failed
 *
Comment 1 email200202 2019-06-27 10:03:08 UTC
Created attachment 581130 [details]
config.log
Comment 2 email200202 2019-06-27 10:04:34 UTC
Created attachment 581132 [details]
emerge -pqv '=sci-libs/umfpack-5.6.2::gentoo'
Comment 3 email200202 2019-06-27 10:05:39 UTC
Created attachment 581134 [details]
emerge --info '=sci-libs/umfpack-5.6.2::gentoo'
Comment 4 email200202 2019-06-27 10:18:47 UTC
blas, cblas, and lapack are installed.

# emerge -av1 blas cblas lapack lapack blas-reference cblas-reference lapack-reference
[ebuild   R    ] sci-libs/blas-reference-20161223::gentoo  USE="-doc" 0 KiB
[ebuild   R    ] virtual/blas-3.7::gentoo  0 KiB
[ebuild   R    ] sci-libs/cblas-reference-20161223::gentoo  0 KiB
[ebuild   R    ] sci-libs/lapack-reference-3.7.0::gentoo  USE="deprecated" 0 KiB
[ebuild   R    ] virtual/cblas-3.7::gentoo  0 KiB
[ebuild   R    ] virtual/lapack-3.7::gentoo  0 KiB

But eselect can find only cblas library

# eselect blas list
Available BLAS/CBLAS (lib) candidates:
  (none found)
Available BLAS/CBLAS (lib64) candidates:
  (none found)

# eselect cblas list
Installed CBLAS for library directory lib64
  [1]   reference *

# eselect lapack list
Available LAPACK (lib) candidates:
  (none found)
Available LAPACK (lib64) candidates:
  (none found)
Comment 5 email200202 2019-06-27 10:32:49 UTC
There is an error in the middle of emerging "blas-reference" and "lapack-reference" but it does not stop the emerge which continues to finish successfully in both cases.

# emerge -av1 blas-reference

-- Installing: /var/tmp/portage/sci-libs/blas-reference-20161223/image/usr/lib64/libblas.so
!!! Error: invalid blas libdir!     
exiting
>>> Completed installing sci-libs/blas-reference-20161223 into /var/tmp/portage/sci-libs/blas-reference-20161223/image/


# emerge -av1 lapack-reference

-- Installing: /var/tmp/portage/sci-libs/lapack-reference-3.7.0/image/usr/lib64/liblapack.so
!!! Error: invalid lapack libdir!
exiting
>>> Completed installing sci-libs/lapack-reference-3.7.0 into /var/tmp/portage/sci-libs/lapack-reference-3.7.0/image/
Comment 6 email200202 2019-06-27 13:32:00 UTC
Here is a list of some relevant directories and files.

There are some files from yesterday's update (Jun 26) v3.8.0 which were not deleted by today's update (Jun 27) v3.7.0. 

Also the directories /etc/env.d/blas/lib64/ and /etc/env.d/lapack/lib64 are empty.


# ls -l /usr/lib64/lib*blas* /usr/lib64/liblapack* /usr/lib64/blas/reference/ /usr/lib64/lapack/reference/ /etc/env.d/cblas/lib64/  /etc/env.d/blas/lib64/ /etc/env.d/lapack/lib64/
lrwxrwxrwx 1 root root      16 Jun 26 18:58 /usr/lib64/libblas.so.3 -> libblas.so.3.8.0
-rwxr-xr-x 1 root root  350032 Jun 26 18:58 /usr/lib64/libblas.so.3.8.0
lrwxrwxrwx 1 root root      25 Jun 27 20:29 /usr/lib64/libcblas.a -> blas/reference/libcblas.a       (broken)
lrwxrwxrwx 1 root root      26 Jun 27 20:29 /usr/lib64/libcblas.so -> blas/reference/libcblas.so
lrwxrwxrwx 1 root root      16 Aug  7  2018 /usr/lib64/libcblas.so.0 -> libgslcblas.so.0             (broken)
lrwxrwxrwx 1 root root      28 Jun 27 20:29 /usr/lib64/libcblas.so.3 -> blas/reference/libcblas.so.3 (broken)
lrwxrwxrwx 1 root root      28 Aug 24  2018 /usr/lib64/liblapack.a -> lapack/reference/liblapack.a   (broken)
lrwxrwxrwx 1 root root      18 Jun 26 18:58 /usr/lib64/liblapack.so.3 -> liblapack.so.3.8.0
-rwxr-xr-x 1 root root 6710744 Jun 26 18:58 /usr/lib64/liblapack.so.3.8.0

/etc/env.d/blas/lib64/:
total 0

/etc/env.d/cblas/lib64/:
total 8
-rw-r--r-- 1 root root  99 Jun 27 20:29 config
-rw-r--r-- 1 root root 481 Jun 27 20:28 reference

/etc/env.d/lapack/lib64/:
total 0

/usr/lib64/blas/reference/:
total 528
-rw-r--r-- 1 root root    281 Jun 27 20:17 blas.pc
-rw-r--r-- 1 root root  21243 Dec 24  2016 cblas_f77.h
-rw-r--r-- 1 root root  29918 Dec 24  2016 cblas.h
-rw-r--r-- 1 root root    542 Jun 27 20:28 cblas_mangling.h
-rw-r--r-- 1 root root    275 Jun 27 20:28 cblas.pc
-rw-r--r-- 1 root root   8051 Dec 24  2016 cblas_test.h
lrwxrwxrwx 1 root root     12 Jun 27 20:17 libblas.so -> libblas.so.3
lrwxrwxrwx 1 root root     16 Jun 27 20:17 libblas.so.3 -> libblas.so.3.7.0
-rwxr-xr-x 1 root root 350032 Jun 27 20:17 libblas.so.3.7.0
-rwxr-xr-x 1 root root 109632 Jun 27 20:28 libcblas.so

/usr/lib64/lapack/reference/:
total 6956
-rw-r--r-- 1 root root     281 Jun 27 20:24 blas.pc
-rw-r--r-- 1 root root     276 Jun 27 20:24 lapack.pc
lrwxrwxrwx 1 root root      12 Jun 27 20:26 libblas.so -> libblas.so.3
lrwxrwxrwx 1 root root      16 Jun 27 20:26 libblas.so.3 -> libblas.so.3.7.0
-rwxr-xr-x 1 root root  350032 Jun 27 20:26 libblas.so.3.7.0
lrwxrwxrwx 1 root root      14 Jun 27 20:26 liblapack.so -> liblapack.so.3
lrwxrwxrwx 1 root root      18 Jun 27 20:26 liblapack.so.3 -> liblapack.so.3.7.0
-rwxr-xr-x 1 root root 6755832 Jun 27 20:26 liblapack.so.3.7.0
Comment 7 email200202 2019-06-27 16:12:05 UTC
This is what I have done to restore the system to a working condition:

- Added the missing links and fixed the broken links for blas and lapack
- Cleaned v3.8 files
- Restored the missing files in /etc/env.d/blas and /etc/env.d/lapack from my backup
- Masked eselect-blas-0.2 and eselect-lapack-0.2 and downgraded to version 0.1

Now, I can build sci-libs/umfpack with no errors.
Comment 8 Michael Orlitzky gentoo-dev 2020-03-02 00:50:29 UTC
*** Bug 688924 has been marked as a duplicate of this bug. ***