문제

When I try to build Octave from source (to use the OpenBLAS optimized BLAS and LAPACK libraries), I am stuck on the following error from ./configure:

checking for sgemm_ in /usr/lib/libopenblas_sandybridgep-r0.2.8.so... yes
checking whether LSAME is called correctly from Fortran... yes
checking whether ISAMAX is called correctly from Fortran... yes
checking whether SDOT is called correctly from Fortran... no
checking whether DDOT is called correctly from Fortran... yes
checking whether CDOTU is called correctly from Fortran... no
checking whether ZDOTU is called correctly from Fortran... no
checking whether the integer size is correct... no
checking for sgemm_ in /usr/lib/libopenblas_sandybridgep-r0.2.8.so... yes
checking whether LSAME is called correctly from Fortran... yes
checking whether ISAMAX is called correctly from Fortran... yes
checking whether SDOT is called correctly from Fortran... no
checking whether DDOT is called correctly from Fortran... yes
checking whether CDOTU is called correctly from Fortran... no
checking whether ZDOTU is called correctly from Fortran... no
checking whether the integer size is correct... no
configure: error: A BLAS library was detected but found incompatible with your Fortran 77    compiler settings.

EDIT: I managed to fix my problem by moving the OpenBLAS files from /usr/lib to /usr/lib64, though I am not sure why this fixed the problem. Why did it?

도움이 되었습니까?

해결책 2

The problem was that OpenBLAS was under /usr/lib and not /usr/lib64. This led to dynamic link problems.

다른 팁

As you said I moved the libs from OpenBLAS to

/usr/lib64 

and it worked. But I also had to add the argument --with-blas="-lopenblas" in order to run

./configure
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top