CentOS 6.7 link error - building tools/extract_features.bin

187 views
Skip to first unread message

pgriff...@gmail.com

unread,
Feb 29, 2016, 2:56:10 PM2/29/16
to Caffe Users
Hi All,

   I have all the dependencies but during linking of caffe, it fails.

/eecs/local/pkg/caffe-brain-rc3/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used

/eecs/local/pkg/caffe-brain-rc3/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used

/eecs/local/pkg/caffe-brain-rc3/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used

/eecs/local/pkg/caffe-brain-rc3/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used

AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0-rc3
/cs/local/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/cs/local/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/cs/local/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
CXX tools/convert_imageset.cpp
CXX/LD -o .build_release/tools/convert_imageset.bin
/cs/local/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/cs/local/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/cs/local/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
CXX tools/upgrade_net_proto_text.cpp
CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin
/cs/local/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/cs/local/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/cs/local/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
CXX tools/finetune_net.cpp
CXX/LD -o .build_release/tools/finetune_net.bin
/cs/local/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/cs/local/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/cs/local/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
CXX tools/net_speed_benchmark.cpp
CXX/LD -o .build_release/tools/net_speed_benchmark.bin
/cs/local/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/cs/local/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/cs/local/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
CXX tools/upgrade_net_proto_binary.cpp
CXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin
/cs/local/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/cs/local/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/cs/local/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
CXX tools/extract_features.cpp
CXX/LD -o .build_release/tools/extract_features.bin
/cs/local/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/cs/local/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/cs/local/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
.build_release/tools/extract_features.o: In function `int feature_extraction_pipeline<float>(int, char**)':
extract_features.cpp:(.text._Z27feature_extraction_pipelineIfEiiPPc[int feature_extraction_pipeline<float>(int, char**)]+0xb58): undefined reference to `caffe::Net<float>::Forward(float*)'
collect2: ld returned 1 exit status
make: *** [.build_release/tools/extract_features.bin] Error 1


Makefile.config

grep -v ^# Makefile.config

USE_CUDNN := 1
 CUDA_DIR := /eecs/local/pkg/cuda-7.5.18

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
BLAS_INCLUDE := /eecs/local/pkg/caffe-brain-rc3/include
BLAS_LIB := /eecs/local/pkg/caffe-brain-rc3/lib

MATLAB_DIR := /eecs/local/pkg/matlab

ANACONDA_HOME := /eecs/local/pkg/anaconda-python27-2.5.0
PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
                  $(ANACONDA_HOME)/include/python2.7
        # $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include \

PYTHON_LIB := $(ANACONDA_HOME)/lib

INCLUDE_DIRS := $(PYTHON_INCLUDE) /eecs/local/pkg/caffe-brain-rc3/include /eecs/local/include /usr/local/include
LIBRARY_DIRS := $(PYTHON_LIB) /eecs/local/pkg/caffe-brain-rc3/lib /eecs/local/lib64 /usr/local/lib /usr/lib

BUILD_DIR := build
DISTRIBUTE_DIR := distribute

TEST_GPUID := 0
Q ?= @


Any ideas on how to fix this?  While I would love to use Docker, it  isn't a option at this time.

Thank you
Paul


pgriff...@gmail.com

unread,
Mar 1, 2016, 1:39:41 PM3/1/16
to Caffe Users
Found the problem,  I had  old libraries in my path. Removed them and recompiled without any issues.

pfre...@gmail.com

unread,
Aug 3, 2017, 10:54:04 PM8/3/17
to Caffe Users
i am getting the following information without any error 
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
can i ignore it?
Reply all
Reply to author
Forward
0 new messages