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 *
Created attachment 581130 [details] config.log
Created attachment 581132 [details] emerge -pqv '=sci-libs/umfpack-5.6.2::gentoo'
Created attachment 581134 [details] emerge --info '=sci-libs/umfpack-5.6.2::gentoo'
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)
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/
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
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.
*** Bug 688924 has been marked as a duplicate of this bug. ***