검색결과 리스트
글
anaconda make error /usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to `__exp_finite@GLIBC_2.15'
I get following errors while trying to build on Ubuntu 14.04:
g++ tools/extract_features.cpp -pthread -fPIC -DNDEBUG -O2 -I/usr/include/python2.7 -I/usr /lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -I/usr/local/cuda/include -Wall -Wno-sign-compare -c -o .build_release/tools/extract_features.o 2> .build_release/tools/extract_features.o.warnings.txt \
|| (cat .build_release/tools/extract_features.o.warnings.txt; exit 1)
g++ .build_release/tools/extract_features.o .build_release/lib/libcaffe.a -o .build_release/tools/extract_features.bin -fPIC -DNDEBUG -O2 -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -I/usr/local/cuda/include -Wall -Wno-sign-compare -L/home/mender/anaconda/lib -L/usr/local/lib -L/usr/lib -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib -lcudart -lcublas -lcurand -lglog -lgflags -lpthread -lprotobuf -lleveldb -lsnappy -llmdb -lboost_system -lhdf5_hl -lhdf5 -lopencv_core -lopencv_highgui -lopencv_imgproc -lcblas -latlas
//usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to __exp_finite@GLIBC_2.15'//usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to
__log10_finite@GLIBC_2.15'
//usr/lib/x86_64-linux-gnu/libxvidcore.so.4: undefined reference to __logf_finite@GLIBC_2.15'//usr/lib/x86_64-linux-gnu/libvorbis.so.0: undefined reference to
__acosf_finite@GLIBC_2.15'
//usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to __pow_finite@GLIBC_2.15'//usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to
__log2_finite@GLIBC_2.15'
//usr/lib/x86_64-linux-gnu/libxvidcore.so.4: undefined reference to __log10f_finite@GLIBC_2.15'//usr/lib/x86_64-linux-gnu/libxvidcore.so.4: undefined reference to
__log_finite@GLIBC_2.15'
//usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to __powf_finite@GLIBC_2.15'//usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to
__log2f_finite@GLIBC_2.15'
collect2: ld returned 1 exit status
make: *** [.build_release/tools/extract_features.bin] Error 1
My Makefile.config setting likes this:
CUDA_DIR := /usr/local/cuda
CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
-gencode arch=compute_20,code=sm_21 \
-gencode arch=compute_30,code=sm_30 \
-gencode arch=compute_35,code=sm_35 \
-gencode arch=compute_50,code=sm_50 \
-gencode arch=compute_50,code=compute_50
BLAS := atlas
MATLAB_DIR := /usr/local/MATLAB/R2012b
PYTHON_INCLUDE := $(HOME)/anaconda/include \
$(HOME)/anaconda/include/python2.7 \
$(HOME)/anaconda/lib/python2.7/site-packages/numpy/core/include
PYTHON_LIB := $(HOME)/anaconda/lib
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
BUILD_DIR := build
DISTRIBUTE_DIR := distribute
TEST_GPUID := 0
g++ --version
g++ (Ubuntu/Linaro 4.6.4-6ubuntu2) 4.6.4
echo $LD_LIBRARY_PATH
/home/anaconda/lib:/usr/local/cuda-6.0/lib64:/usr/local/lib:/usr/lib:
This problem seems like #757, but I don't know how to get ride of the error. Where things go wrong?
Thanks.
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
Ask installation questions on the caffe-users mailing list please!
Some versions of Anaconda seem to come with a bad libm. rm ~/anaconda/lib/libm.*
takes care of this by reverting to the system libm.