Build fails in nvidia docker; cuda:9.2-cudnn7-devel-ubuntu16.04

asked 2020-02-25 03:21:06 -0600

jhk gravatar image

got following error when install opencv in nvidia docker; nvidia/cuda:9.2-cudnn7-devel-ubuntu16.04

> [ 30%] Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_normalize.cu.o
cd /root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda && /usr/bin/cmake -E make_directory /root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/.
cd /root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda && /usr/bin/cmake -D verbose:BOOL=1 -D build_configuration:STRING=RELEASE -D generated_file:STRING=/root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_normalize.cu.o -D generated_cubin_file:STRING=/root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_normalize.cu.o.cubin.txt -P /root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_normalize.cu.o.cmake
-- Removing /root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_normalize.cu.o
/usr/bin/cmake -E remove /root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_normalize.cu.o
-- Generating dependency file: /root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_normalize.cu.o.NVCC-depend
/usr/local/cuda/bin/nvcc -M -D__CUDACC__ /root/opencv/modules/dnn/src/cuda/normalize.cu -o /root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_normalize.cu.o.NVCC-depend -ccbin /usr/bin/gcc-5 -m64 -D__OPENCV_BUILD=1 -D_USE_MATH_DEFINES -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -DCV_OCL4DNN=1 -DCV_CUDA4DNN=1 -DHAVE_PROTOBUF=1 -Xcompiler ,\"-fsigned-char\",\"-ffast-math\",\"-W\",\"-Wall\",\"-Werror=return-type\",\"-Werror=non-virtual-dtor\",\"-Werror=address\",\"-Werror=sequence-point\",\"-Wformat\",\"-Werror=format-security\",\"-Winit-self\",\"-Wpointer-arith\",\"-Wuninitialized\",\"-Winit-self\",\"-Wno-comment\",\"-fdiagnostics-show-option\",\"-Wno-long-long\",\"-pthread\",\"-fomit-frame-pointer\",\"-ffunction-sections\",\"-fdata-sections\",\"-msse\",\"-msse2\",\"-msse3\",\"-fvisibility=hidden\",\"-Wno-deprecated\",\"-Wno-missing-declarations\",\"-Wno-shadow\",\"-Wno-unused-parameter\",\"-Wno-sign-compare\",\"-Wno-undef\",\"-Wno-invalid-offsetof\",\"-Wno-unused-but-set-variable\",\"-O3\",\"-DNDEBUG\",\"-DNDEBUG\" -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -D_FORCE_INLINES --use_fast_math -Xcompiler -DCVAPI_EXPORTS -Xcompiler -fPIC --std=c++11 -DNVCC -I/usr/local/cuda/include -I/root/opencv/build/3rdparty/ippicv/ippicv_lnx/icv/include -I/root/opencv/build/3rdparty/ippicv/ippicv_lnx/iw/include -I/root/opencv/build -I/usr/include/gdal -I/usr/include/eigen3 -I/root/opencv/modules/dnn/include -I/root/opencv/build/modules/dnn -I/root/opencv_contrib/modules/cudev/include -I/root/opencv/modules/core/include -I/root/opencv/modules/imgproc/include -I/root/opencv/modules/dnn/misc/caffe -I/root/opencv/modules/dnn/misc/tensorflow -I/root/opencv/modules/dnn/misc/onnx -I/root/opencv/3rdparty/include/opencl/1.2 -I/usr/local/cuda/include -I/usr/include
-- Generating temporary cmake readable file: /root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_normalize.cu.o.depend.tmp
/usr/bin/cmake -D input_file:FILEPATH=/root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_normalize.cu.o.NVCC-depend -D output_file:FILEPATH=/root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_normalize.cu.o.depend.tmp -P /root/opencv/cmake/FindCUDA/make2cmake.cmake
-- Copy if different /root/opencv/build/modules/dnn/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_normalize.cu ...
(more)
edit retag flag offensive close merge delete