cschwan / sage-on-gentoo

(Unofficial) Gentoo Overlay for Sage- and Sage-related ebuilds
84 stars 26 forks source link

sci-mathematics/giac-1.5.0.67 #554

Closed welele08 closed 5 years ago

welele08 commented 5 years ago

Try to install giac on a clean sabayon distribution. Installation failed with :

configure: error: Package requirements (lapack) were not met:

No package 'lapack' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

Alternatively, you may set the environment variables LAPACK_CFLAGS and LAPACK_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.

Looking in /var/tmp/portage/.../work/config.log. It show the ebuild search without succes for lapack.pc

Is there something i do wrong or something i forgot?

Thanks

kiwifb commented 5 years ago

This is strange. A lapack should have been pulled by virtual/lapack. Do you have a lapack installed? And if so why don't you have a lapack.pc in /usr/lib64/pkgconfig?

welele08 commented 5 years ago

I have a virtual/lapack and sci-libs/lapack-reference-3.7.0 installed. I have a lapack.rc file in /usr/lib64/lapack/reference/ but non in /usr/lib64/pkgconfig.

kiwifb commented 5 years ago

I would say that it means that your lapack is not eselect-ed. What does eselect lapack show says?

welele08 commented 5 years ago

Thank for help.

eselect lapack show give me : lib64: reference

kiwifb commented 5 years ago

Hum, looking at lapack-reference-3.7.0 from the main tree, lapack.pc should be shipped in the right place. Do you have virtual/lapack-3.8 available, or are you stuck at 3.7?

welele08 commented 5 years ago

I'm running a sabayon system, with precompiled gentoo package. I try a "pkgconfig --libs lapack" which give a

Package lapack was not found in the pkg-config search path. Perhaps you should add the directory containing `lapack.pc' to the PKG_CONFIG_PATH environment variable No package 'lapack' found

I try to recompile lapack-reference ("merge lapack-reference"). After install, still no /usr/lib64/pkgconfig/lapack.pc. eselect didn't find lapack anymore "eselect lapakc list" => Available LAPACK (lib32) candidates: (none found) Available LAPACK (lib64) candidates: (none found)

kiwifb commented 5 years ago

Which version of eselect-lapack is this? I think you may have a mismatch between the eselect module and the lapack version.

welele08 commented 5 years ago

eselect-lapack-0.2

kiwifb commented 5 years ago

Yes, that's the trouble. eselect-lapack-0.2 should be used with virtual/lapack-3.8, lapack-3.7 should be using eselect-lapack-0.1. And similarly for eselect-blas (by design there is no eselect-cblas-0.2). They have incompatible selection mechanism.

welele08 commented 5 years ago

Thank you so much for your help! Downgrading eselect-lapack form 0.2 to 0.1 solve the problem.