KAIST-VCLAB / EgocentricReconstruction

EgocentricReconstruction
Other
122 stars 17 forks source link

setup.sh problem #14

Open Followmeczx opened 1 year ago

Followmeczx commented 1 year ago

When I run $ sh setup.sh, I face this error `$ sh setup.sh CMake Error at /usr/local/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:751 (message): Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.

Compiler: /usr/bin/nvcc

Build flags:

Id flags: --keep;--keep-dir;tmp -v

The output was:

1

$ _NVVMBRANCH=nvvm

$ SPACE=

$ CUDART=cudart

$ HERE=/usr/lib/nvidia-cuda-toolkit/bin

$ THERE=/usr/lib/nvidia-cuda-toolkit/bin

$ _TARGETSIZE=

$ _TARGETDIR=

$ _TARGETSIZE=64

$ NVVMIR_LIBRARY_DIR=/usr/lib/nvidia-cuda-toolkit/libdevice

$

PATH=/usr/lib/nvidia-cuda-toolkit/bin:/data/S221000776-CZX/.conda/envs/egocentric/bin:/data/conda/anaconda3/condabin:/data/S221000776-CZX/.vscode-server/bin/252e5463d60e63238250799aef7375787f68b4ee/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

$ LIBRARIES= -L/usr/lib/x86_64-linux-gnu/stubs -L/usr/lib/x86_64-linux-gnu

$ rm tmp/a_dlink.reg.c

$ gcc -D__CUDA_ARCH=520 -DCUDA_ARCH_LIST__=520 -E -x c++

-DCUDA_DOUBLE_MATH_FUNCTIONS -DCUDACC -DNVCC -DCUDACC_VER_MAJOR=11 -DCUDACC_VER_MINOR=5 -DCUDACC_VER_BUILD=119 -DCUDA_API_VER_MAJOR=11 -DCUDA_API_VER_MINOR=5 -D__NVCC_DIAG_PRAGMA_SUPPORT__=1 -include "cuda_runtime.h" -m64 "CMakeCUDACompilerId.cu" -o "tmp/CMakeCUDACompilerId.cpp1.ii"

$ cicc --c++14 --gnu_version=70500 --display_error_number

--orig_src_file_name "CMakeCUDACompilerId.cu" --orig_src_path_name "/data/S221000776-CZX/D2L/EgocentricReconstruction/dmc/build/CMakeFiles/3.26.0-rc6/CompilerIdCUDA/CMakeCUDACompilerId.cu" --allow_managed -arch compute_52 -m64 --no-version-ident -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 --include_file_name "CMakeCUDACompilerId.fatbin.c" -tused --gen_module_id_file --module_id_file_name "tmp/CMakeCUDACompilerId.module_id" --gen_c_file_name "tmp/CMakeCUDACompilerId.cudafe1.c" --stub_file_name "tmp/CMakeCUDACompilerId.cudafe1.stub.c" --gen_device_file_name "tmp/CMakeCUDACompilerId.cudafe1.gpu" "tmp/CMakeCUDACompilerId.cpp1.ii" -o "tmp/CMakeCUDACompilerId.ptx"

/usr/include/c++/11/type_traits(1406): error: type name is not allowed

/usr/include/c++/11/type_traits(1406): error: type name is not allowed

/usr/include/c++/11/type_traits(1406): error: identifier "__is_same" is undefined

/usr/include/c++/11/type_traits(3250): error: type name is not allowed

/usr/include/c++/11/type_traits(3250): error: type name is not allowed

/usr/include/c++/11/bits/stl_pair.h(460): error: argument list for class template "std::pair" is missing

/usr/include/c++/11/bits/stl_pair.h(460): error: expected a ")"

/usr/include/c++/11/bits/stl_pair.h(460): error: template parameter "_T1" may not be redeclared in this scope

/usr/include/c++/11/bits/stl_pair.h(460): error: expected a ";"

9 errors detected in the compilation of "CMakeCUDACompilerId.cu".

--error 0x1 --

Call Stack (most recent call first): /usr/local/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /usr/local/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test) /usr/local/share/cmake-3.26/Modules/CMakeDetermineCUDACompiler.cmake:307 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:7 (project)`