CTU-IIG / kcf

Kernelized Correlation Filter tracker
13 stars 6 forks source link

Failure with nvcc 9.1 #10

Closed wentasah closed 6 years ago

wentasah commented 6 years ago

When building with nvcc 9.1, I get the following error. Can you please investigate what's going on?

ninja: Entering directory `build-cufft'
[0/1] Re-running CMake...
-- OpenCV_LIB_DIR:  
-- OpenCV_INCLUDE_DIRS: /usr/include;/usr/include/opencv
-- FFT implementation: cuFFT
-- ComplexMat abstract class version.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wsh/students/karafvit/kcf/build-cufft
[3/14] Building NVCC (Device) object src/CMakeFiles/cuda_func.dir/cuda_func_generated_cuda_functions.cu.o
FAILED: src/CMakeFiles/cuda_func.dir/cuda_func_generated_cuda_functions.cu.o 
cd /home/wsh/students/karafvit/kcf/build-cufft/src/CMakeFiles/cuda_func.dir && /usr/bin/cmake -E make_directory /home/wsh/students/karafvit/kcf/build-cufft/src/CMakeFiles/cuda_func.dir//. && /usr/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/wsh/students/karafvit/kcf/build-cufft/src/CMakeFiles/cuda_func.dir//./cuda_func_generated_cuda_functions.cu.o -D generated_cubin_file:STRING=/home/wsh/students/karafvit/kcf/build-cufft/src/CMakeFiles/cuda_func.dir//./cuda_func_generated_cuda_functions.cu.o.cubin.txt -P /home/wsh/students/karafvit/kcf/build-cufft/src/CMakeFiles/cuda_func.dir//cuda_func_generated_cuda_functions.cu.o.Release.cmake
/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: identifier "__is_assignable" is undefined

3 errors detected in the compilation of "/tmp/tmpxft_00005742_00000000-6_cuda_functions.cpp1.ii".
CMake Error at cuda_func_generated_cuda_functions.cu.o.Release.cmake:275 (message):
  Error generating file
  /home/wsh/students/karafvit/kcf/build-cufft/src/CMakeFiles/cuda_func.dir//./cuda_func_generated_cuda_functions.cu.o
wentasah commented 6 years ago

And for nvcc 8.0, the error is the following:

ninja: Entering directory `build-cufft/'
[1/12] Building NVCC (Device) object src/CMakeFiles/complexmat.dir/complexmat_generated_complexmat.cu.o
FAILED: src/CMakeFiles/complexmat.dir/complexmat_generated_complexmat.cu.o 
cd /home/sojka/hercules/kcf/build-cufft/src/CMakeFiles/complexmat.dir && /usr/bin/cmake -E make_directory /home/sojka/hercules/kcf/build-cufft/src/CMakeFiles/complexmat.dir//. && /usr/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/sojka/hercules/kcf/build-cufft/src/CMakeFiles/complexmat.dir//./complexmat_generated_complexmat.cu.o -D generated_cubin_file:STRING=/home/sojka/hercules/kcf/build-cufft/src/CMakeFiles/complexmat.dir//./complexmat_generated_complexmat.cu.o.cubin.txt -P /home/sojka/hercules/kcf/build-cufft/src/CMakeFiles/complexmat.dir//complexmat_generated_complexmat.cu.o.Release.cmake
/usr/include/math_functions.h(8897): error: cannot overload functions distinguished by return type alone

/usr/include/math_functions.h(8901): error: cannot overload functions distinguished by return type alone

2 errors detected in the compilation of "/tmp/tmpxft_00020463_00000000-7_complexmat.cpp1.ii".
CMake Error at complexmat_generated_complexmat.cu.o.Release.cmake:278 (message):
  Error generating file
  /home/sojka/hercules/kcf/build-cufft/src/CMakeFiles/complexmat.dir//./complexmat_generated_complexmat.cu.o