我正在尝试从此仓库https://github.com/mahyarnajibi/SNIPER/tree/cvpr3k构建MXNET。我安装了cuda,cudnn和openblas。我使用以下命令构建代码:make -j 8 USE_CUDA_PATH=/usr/local/cuda
错误消息如下:
/usr/local/lib/libopenblas.so: undefined reference to `_gfortran_concat_string'
/usr/local/liblibopenblas.so: undefined reference to `_gfortran_etime'
collect2: error: ld returned 1 exit status
Makefile:454: recipe for target 'bin/im2rec' failed
make: *** [bin/im2rec] Error 1
make: *** Waiting for unfinished jobs....
我的config.mk文件具有一些相关(我认为)变量的设置:
ADD_LDFLAGS=
ADD_CFLAGS=
USE_CUDA=1
USE_CUDNN=1
USE_OPENCV=1
USE_BLAS=openblas
USE_LAPACK=1
答案 0 :(得分:2)
这是链接器错误。如作者所述,可以通过在LDFLAGS中指定gfortran来解决此错误。将您的config.mk
修改为:
ADD_LDFLAGS=-lgfortran