src/mathfunc.h:34:18: error: call of overloaded ‘isnan(double&)’ is ambiguous

 

001、问题,gemma编译, make报错如下:

src/mathfunc.h:34:18: error: call of overloaded ‘isnan(double&)’ is ambiguous

 

002、感觉像是c++编译器版本低的问题,升级gcc编辑器

a、

yum -y install centos-release-scl
yum install devtoolset-11-gcc* -y
scl enable devtoolset-11 bash
gcc --version
g++ --version

 

003、再次编译测试,刚才的报错消失。

[root@pc1 GEMMA-0.98.5]# make
g++  -DOPENBLAS -isystem/usr/local/opt/openblas/include -DNDEBUG -O3 -DHAVE_INLINE -pthread -Wall -std=gnu++11   -Icontrib/catch-1.9.7 -Isrc  -c -o src/gemma.o src/gemma.cpp
src/gemma.cpp:79:10: fatal error: openblas_config.h: No such file or directory
   79 | #include <openblas_config.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [src/gemma.o] Error 1

 。

 

posted @ 2023-12-31 10:11  小鲨鱼2018  阅读(18)  评论(0编辑  收藏  举报