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.63 -- undefined reference to 'dgemm_' #552

Closed sheerluck closed 5 years ago

sheerluck commented 5 years ago

If I open giac-1.5.0/src/Makefile and change line 420 from

LAPACK_LIBS = -llapack

to

LAPACK_LIBS = -llapack -lblas

then everything works

kiwifb commented 5 years ago

Hum... That's curious unless dgemm is being called from libgiac. In any case how do you get that message? The Makefile is absolutely not the place to put a change. Also which blas and lapack are you using?

sheerluck commented 5 years ago

I use sci-libs/lapack-3.8.0 and three virtuals: virtual/blas virtual/cblas virtual/lapack I get that message after sudo emerge giac

kiwifb commented 5 years ago

OK, after code inspection direct linking with blas is needed. I will fix this shortly.

kiwifb commented 5 years ago

Synchronize and emerge giac again. It should work nicely out of the box for you now.

sheerluck commented 5 years ago

Thank you

kiwifb commented 5 years ago

Please leave a comment if it works, so the issue can be closed.

sheerluck commented 5 years ago

It works! Thank you!