OpenBLAS-0.3.13.tar.gz 在 linux 上编译失败

问题描述

由于当前版本的 SciPy 需要 BLAS,我尝试使用 OpenBLAS 并按照说明从源代码构建:

tar xfz OpenBLAS-0.3.13.tar.gz
cd OpenBLAS-0.3.13
make

这会导致以下错误:

cc -O2 -DMAX_STACK_ALLOC=2048 -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DNO_AVX2 -DNO_AVX512 
-DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=8 -DMAX_PARALLEL_NUMBER=1 -DBUILD_SINGLE=1 
-DBUILD_DOUBLE=1 -DBUILD_COMPLEX=1 -DBUILD_COMPLEX16=1 -DVERSION=\"0.3.13\" -msse3 -mssse3 
-msse4.1 -mavx -mfma -UASMNAME -UASMFNAME -UNAME -UCNAME -UCHAR_NAME -UCHAR_CNAME 
-DASMNAME=sgemm_kernel -DASMFNAME=sgemm_kernel_ -DNAME=sgemm_kernel_ -DCNAME=sgemm_kernel 
-DCHAR_NAME=\"sgemm_kernel_\" -DCHAR_CNAME=\"sgemm_kernel\" -DNO_AFFINITY -I.. -UDOUBLE  
-UCOMPLEX -c -UDOUBLE -UCOMPLEX ../kernel/x86_64/sgemm_kernel_8x4_haswell_2.c -o sgemm_kernel.o

../kernel/x86_64/srot.c: In function ‘srot_kernel’:
../kernel/x86_64/srot.c:42: warning: implicit declaration of function ‘_mm256_fmadd_ps’
../kernel/x86_64/srot.c:42: error: incompatible types when assigning to type ‘v_f32’ from type ‘int’
../kernel/x86_64/srot.c:43: error: incompatible types when assigning to type ‘v_f32’ from type ‘int’
../kernel/x86_64/srot.c:44: error: incompatible types when assigning to type ‘v_f32’ from type ‘int’
../kernel/x86_64/srot.c:45: error: incompatible types when assigning to type ‘v_f32’ from type ‘int’
../kernel/x86_64/srot.c:57: warning: implicit declaration of function ‘_mm256_fmsub_ps’
../kernel/x86_64/srot.c:57: error: incompatible types when assigning to type ‘v_f32’ from type ‘int’
../kernel/x86_64/srot.c:58: error: incompatible types when assigning to type ‘v_f32’ from type ‘int’
../kernel/x86_64/srot.c:59: error: incompatible types when assigning to type ‘v_f32’ from type ‘int’
../kernel/x86_64/srot.c:60: error: incompatible types when assigning to type ‘v_f32’ from type ‘int’
../kernel/x86_64/srot.c:74: error: incompatible types when assigning to type ‘v_f32’ from type ‘int’
../kernel/x86_64/srot.c:78: error: incompatible types when assigning to type ‘v_f32’ from type ‘int’
make[1]: *** [Makefile.L1:831: srot_k.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/jenkins/jenkins_slave/workspace/Python3-linux64/OpenBLAS-0.3.13/kernel'
make: *** [Makefile:165: libs] Error 1

参考。到compile python 3.8 + numpy + scipy

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...