-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: when build tools/extract_features.bin #985
Comments
Ask installation questions on the caffe-users mailing list please! Some versions of Anaconda seem to come with a bad libm. |
Also would be good to have on the installation page http://caffe.berkeleyvision.org/installation.html |
Thx shelhamer. After removing the libm files of Anaconda, my problem is solved. |
Thanks @shelhamer, this is really helpful. Thanks alot |
This also fixed my problem. Thanks! |
It fixed my problem |
Fixed my problem too. (I fixed by commenting the PYTHON_LIB in Makefile.config - I had added path to anaconda libs while building the python wrapper!) +1 for adding to installation page. |
fixed my problem too! |
also fixed my problem by commenting the PYTHON_LIB in Makefile.config - thanks |
I am facing same sort of error while installing caffe with Anaconda.
|
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.
The text was updated successfully, but these errors were encountered: