Closed devurandom closed 8 years ago
I have yet to get to your build log but first thing first, is fflas-ffpack
present? And if it is, what is the output of fflas-ffpack-config --libs
.
$ eix ffpack
[I] sci-libs/fflas-ffpack [1]
Available versions: (~)1.6.0-r5^m {static-libs}
Installed versions: 1.6.0-r5^m(10:17:16 25/06/15)(-static-libs)
Homepage: http://linalg.org/projects/fflas-ffpack
Description: FFLAS-FFPACK is a LGPL-2.1+ library for dense linear algebra over word-size finite fields.
[1] "sage-on-gentoo" /var/lib/layman/sage-on-gentoo
$ fflas-ffpack-config --libs
-lgmpxx -lgmp -lgivaro -L/usr/lib64/blas/reference -llapack -lblas -lcblas
...
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llapack
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lblas
...
# eix lapack-reference
[I] sci-libs/lapack-reference
Available versions: [m]3.1.1-r1 [m](~)3.2.1-r1 [m]**3.2.1-r3 (~)3.4.2[1] (~)3.5.0[1] **9999[1] {doc int64 static-libs test xblas ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 3.5.0[1](14:34:29 31/10/15)(-int64 -static-libs -test -xblas ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
Homepage: http://www.netlib.org/lapack/
Description: Reference implementation of LAPACK
[1] "science" /var/lib/layman/science
# q list sci-libs/lapack-reference
/usr/lib64/pkgconfig/reflapack.pc
/usr/lib64/libreflapack.so
/usr/lib/cmake/lapack-3.4.2/lapack-config.cmake
/usr/lib/cmake/lapack-3.4.2/lapack-config-version.cmake
/usr/lib/cmake/lapack-3.4.2/lapack-targets.cmake
/usr/lib/cmake/lapack-3.4.2/lapack-targets-gentoo.cmake
/usr/share/doc/lapack-reference-3.5.0/README.xz
/etc/env.d/alternatives/lapack/reference/_importance
/etc/env.d/alternatives/lapack/reference/usr/lib64/pkgconfig/lapack.pc
# eselect lapack list
Available providers for lapack:
[1] reference *
What about blas
and cblas
, what are you using for these? The output of fflas-ffpack-config
is certainly not correct.
$ eix blas-ref
[I] sci-libs/blas-reference
Available versions: [m]20070226 [m](~)20070226-r2 [m]**20070226-r3 (~)20131116[1] (~)20131116-r1[1] **99999999[1] {doc int64 static-libs test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 20131116-r1[1](14:32:23 31/10/15)(-int64 -static-libs -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
Homepage: http://www.netlib.org/lapack/
Description: Reference implementation of BLAS
[I] sci-libs/cblas-reference
Available versions: [m]20030223-r4 [m](~)20030223-r5 (~)20110218[1] (~)20110218-r1[1] {int64 static-libs}
Installed versions: 20110218-r1[1](14:32:45 31/10/15)(-int64 -static-libs ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
Homepage: http://www.netlib.org/blas/
Description: C wrapper interface to the F77 reference BLAS implementation
[1] "science" /var/lib/layman/science
Found 2 matches.
$ eselect blas list
Available providers for blas:
[1] reference *
$ eselect cblas list
Available providers for cblas:
[1] gsl
[2] reference *
OK, the configuration of fflas-ffpack
is incorrect. Can you re-emerge it. If the problem persist I would need the config.log
from fflas-ffpack
.
Actually I want the contents of /usr/lib64/pkgconfig/{blas,cblas,lapack}.pc
as well.
$ for f in /usr/lib64/pkgconfig/{blas,cblas,lapack}.pc ; do echo ===$f=== ; cat $f ; done
===/usr/lib64/pkgconfig/blas.pc===
prefix=/usr
libdir=/usr/lib64
Name: refblas
Description: Basic Linear Algebra Subprograms F77 reference implementations
Version:
URL: http://www.netlib.org/blas/
Libs: -L/usr/lib64 -lrefblas
Libs.private: -lm
===/usr/lib64/pkgconfig/cblas.pc===
prefix=/usr
libdir=${prefix}/lib64
includedir=${prefix}/include
Name: refcblas
Description: C wrapper interface to the F77 reference BLAS implementation
Version: 20110218
URL: http://www.netlib.org/blas/
Libs: -L${libdir} -lrefcblas
Private: -lm
Cflags: -I${includedir}/cblas
Requires: refblas
Fflags=
===/usr/lib64/pkgconfig/lapack.pc===
prefix=/usr
libdir=/usr/lib64
Name: reflapack
Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage
Version: 3.4.2
URL: http://www.netlib.org/lapack/
Libs: -L/usr/lib64 -lreflapack
Requires: refblas
Fflags=
All those are good, I don't see why you get crap in fflas-ffpack
so far.
Do you even have a /usr/lib64/blas
folder?
Do you even have a
/usr/lib64/blas
folder?
Yes
fflas-ffpack-1.6.0-r5::sage-on-gentoo
just finished building. Afterwards sci-libs/linbox-1.3.2-r2::sage-on-gentoo
built without issues, too.
Can this brokenness be somehow detected / prevented by the fflas-ffpack
or linbox
ebuilds? Through (sub-)slot dependencies or something?
No. This is probably due to an incomplete/incorrect migration from the main tree blas/lapack infrastructure to the one of the science overlay. You shouldn't have that folder at all. https://wiki.gentoo.org/wiki/User_talk:Houseofsuns
I followed that guide, but overlooked to set FEATURES=-preserved-libs
. So maybe the folder was there just because portage preserved the library in it for linbox
. I'll check later whether it is gone, now that linbox
was rebuilt successfully.
I think we can close this. You can still comment or suggest something if you wish.
sci-libs/linbox-1.3.2-r2 from sage-on-gentoo fails to build after enabling the science overlay (which sage-on-gentoo's layout.conf says is required):
build.log (It's not actually image/png but text/plain - the filename extension was only chosen to fool GitHub.)