Open mjrlgue opened 5 years ago
It's been days trying to compile caffe-segnet but with no luck, I m using cuda 9.0, cudnn v2 and opencv 3.3.0 Here is the output error when using make all:
make all
... CXX src/caffe/common.cpp /usr/bin/g++-4.8 src/caffe/common.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/usr/local/hdf5 -I/usr/local/hdf5/include -I.build_release/src -I./src -I./include -I/usr/local/cuda/include -Wall -Wno-sign-compare -std=c++11 -MMD -MP -pthread -fPIC -DNDEBUG -O2 -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I/usr/local/hdf5 -I/usr/local/hdf5/include -I.build_release/src -I./src -I./include -I/usr/local/cuda/include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/common.o 2> .build_release/src/caffe/common.o.warnings.txt \ || (cat .build_release/src/caffe/common.o.warnings.txt; exit 1) CXX src/caffe/internal_thread.cpp /usr/bin/g++-4.8 src/caffe/internal_thread.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/usr/local/hdf5 -I/usr/local/hdf5/include -I.build_release/src -I./src -I./include -I/usr/local/cuda/include -Wall -Wno-sign-compare -std=c++11 -MMD -MP -pthread -fPIC -DNDEBUG -O2 -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I/usr/local/hdf5 -I/usr/local/hdf5/include -I.build_release/src -I./src -I./include -I/usr/local/cuda/include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/internal_thread.o 2> .build_release/src/caffe/internal_thread.o.warnings.txt \ || (cat .build_release/src/caffe/internal_thread.o.warnings.txt; exit 1) NVCC src/caffe/layers/upsample_layer.cu /usr/local/cuda/bin/nvcc -D_FORCE_INLINES -ccbin=/usr/bin/g++-4.8 -Xcompiler -fPIC -DNDEBUG -O2 -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I/usr/local/hdf5 -I/usr/local/hdf5/include -I.build_release/src -I./src -I./include -I/usr/local/cuda/include -std=c++11 -ccbin=/usr/bin/g++-4.8 -Xcompiler -fPIC -DNDEBUG -O2 -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I/usr/local/hdf5 -I/usr/local/hdf5/include -I.build_release/src -I./src -I./include -I/usr/local/cuda/include -M src/caffe/layers/upsample_layer.cu -o .build_release/cuda/src/caffe/layers/upsample_layer.d \ -odir .build_release/cuda/src/caffe/layers nvcc fatal : redefinition of argument 'compiler-bindir' Makefile:544: recipe for target '.build_release/cuda/src/caffe/layers/upsample_layer.o' failed make: *** [.build_release/cuda/src/caffe/layers/upsample_layer.o] Error 1
and the line 544 in Makefile which the error come from:
Makefile
... @ cat $@.$(WARNS_EXT) $(BUILD_DIR)/cuda/%.o: %.cu | $(ALL_BUILD_DIRS) 544> @ echo NVCC $< $(Q)$(CUDA_DIR)/bin/nvcc $(NVCCFLAGS) $(CUDA_ARCH) -M $< -o ${@:.o=.d} \ -odir $(@D) ...
I also added this CUSTOM_CXX := /usr/bin/g++-4.8 to Makefile.config Anyone encountered such a problem ?
CUSTOM_CXX := /usr/bin/g++-4.8
Makefile.config
It's been days trying to compile caffe-segnet but with no luck, I m using cuda 9.0, cudnn v2 and opencv 3.3.0 Here is the output error when using
make all
:and the line 544 in
Makefile
which the error come from:I also added this
CUSTOM_CXX := /usr/bin/g++-4.8
toMakefile.config
Anyone encountered such a problem ?