Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

/usr/bin/ld: cannot find /usr/local/cuda-10.2/include #279

Open
shilongshen opened this issue Jan 6, 2021 · 1 comment
Open

/usr/bin/ld: cannot find /usr/local/cuda-10.2/include #279

shilongshen opened this issue Jan 6, 2021 · 1 comment

Comments

@shilongshen
Copy link

shilongshen commented Jan 6, 2021

(densepose) wag@wag-SYS-7049GP-TRT:/home/ssl/ssl/DensePose/build$ cmake .. && make -j8
-- Caffe2: CUDA detected: 10.2
-- Caffe2: CUDA nvcc is: /usr/local/cuda-10.2/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda-10.2
-- Caffe2: Header version is: 10.2
-- Found cuDNN: v7.6.5 (include: /usr/local/cuda-10.2/targets/x86_64-linux/include, library: /usr/local/cuda-10.2/include)
-- Autodetected CUDA architecture(s): 7.5 7.5 7.5 7.5
-- Added CUDA NVCC flags for: -gencode;arch=compute_75,code=sm_75
-- Summary:
-- CMake version : 3.5.1
-- CMake command : /usr/bin/cmake
-- System name : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 5.4.0
-- CXX flags : -std=c++11 -O2 -fPIC -Wno-narrowing
-- Caffe2 version : 1.1.0
-- Caffe2 include path : /home/wag/anaconda3/envs/densepose/lib/python3.6/site-packages/torch/include
-- Caffe2 found CUDA : True
-- CUDA version : 10.2
-- CuDNN version : 7.6.5
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ssl/ssl/DensePose/build
[ 12%] Building NVCC (Device) object CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/caffe2_detectron_custom_ops_gpu_generated_pool_points_interp.cu.o
[ 25%] Building NVCC (Device) object CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/caffe2_detectron_custom_ops_gpu_generated_zero_even_op.cu.o
[ 37%] Building CXX object CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/pool_points_interp.cc.o
[ 50%] Building CXX object CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/zero_even_op.cc.o
[ 62%] Linking CXX shared library libcaffe2_detectron_custom_ops.so
[ 62%] Built target caffe2_detectron_custom_ops
[ 75%] Building CXX object CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/pool_points_interp.cc.o
[ 87%] Building CXX object CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/zero_even_op.cc.o
[100%] Linking CXX shared library libcaffe2_detectron_custom_ops_gpu.so
/usr/bin/ld: 找不到 /usr/local/cuda-10.2/include: 不可识别的文件格式
collect2: error: ld returned 1 exit status
CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/build.make:1303: recipe for target 'libcaffe2_detectron_custom_ops_gpu.so' failed
make[2]: *** [libcaffe2_detectron_custom_ops_gpu.so] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/all' failed
make[1]: *** [CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2


(base) wag@wag-SYS-7049GP-TRT:/usr/local/cuda-10.2$ ll
总用量 136
drwxr-xr-x 18 root root 4096 1月 6 16:58 ./
drwxr-xr-x 13 root root 4096 1月 6 18:53 ../
drwxr-xr-x 3 root root 4096 8月 6 08:32 bin/
drwxr-xr-x 5 root root 4096 8月 6 08:32 doc/
-rw-r--r-- 1 root root 60244 8月 6 08:32 EULA.txt
drwxr-xr-x 6 root root 4096 8月 6 08:32 extras/
lrwxrwxrwx 1 root root 49 1月 6 16:58 include -> /usr/local/cuda-10.2/targets/x86_64-linux/include/
lrwxrwxrwx 1 root root 24 8月 6 08:32 lib64 -> targets/x86_64-linux/lib/
drwxr-xr-x 8 root root 4096 8月 6 08:32 libnsight/
drwxr-xr-x 7 root root 4096 8月 6 08:32 libnvvp/
drwxr-xr-x 7 root root 4096 8月 6 08:32 nsight-compute-2019.5.0/
drwxr-xr-x 2 root root 4096 8月 6 08:32 nsightee_plugins/
drwxr-xr-x 6 root root 4096 8月 6 08:32 nsight-systems-2019.5.2/
drwxr-xr-x 3 root root 4096 8月 6 08:32 nvml/
drwxr-xr-x 7 root root 4096 8月 6 08:32 nvvm/
drwxr-xr-x 7 root root 4096 8月 6 08:32 nvvmx/
drwxr-xr-x 12 root root 4096 8月 6 08:39 samples/
drwxr-xr-x 3 root root 4096 8月 6 08:32 share/
drwxr-xr-x 2 root root 4096 8月 6 08:32 src/
drwxr-xr-x 3 root root 4096 8月 6 08:32 targets/
drwxr-xr-x 2 root root 4096 8月 6 08:32 tools/
-rw-r--r-- 1 root root 21 8月 6 08:32 version.txt

@shilongshen
Copy link
Author

anyone meet this problem? please help me !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant