torch-mesh-isect
torch-mesh-isect copied to clipboard
how to solve gcc: fatal error: cannot execute 'cc1plus': execvp: Permission denied?
After changing
bvh_include_dirs = torch.utils.cpp_extension.include_paths() + [
'include',
'/usr/local/cuda-11.4/samples/common/inc']
I run the commend python setup.py install
and I got:
(pytorch) wjrzm@DESKTOP-QJIK4OK:~/SMPL-IK/torch-mesh-isect$ python setup.py install
running install
/home/wjrzm/anaconda3/envs/pytorch/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
/home/wjrzm/anaconda3/envs/pytorch/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
running bdist_egg
running egg_info
writing mesh_intersection.egg-info/PKG-INFO
writing dependency_links to mesh_intersection.egg-info/dependency_links.txt
writing requirements to mesh_intersection.egg-info/requires.txt
writing top-level names to mesh_intersection.egg-info/top_level.txt
/home/wjrzm/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/utils/cpp_extension.py:339: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
reading manifest file 'mesh_intersection.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'mesh_intersection.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'bvh_cuda' extension
gcc -pthread -B /home/wjrzm/anaconda3/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wjrzm/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/include -I/home/wjrzm/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/wjrzm/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/include/TH -I/home/wjrzm/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/include/THC -Iinclude -I/usr/local/cuda-11.4/samples/common/inc -I/home/wjrzm/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/include -I/home/wjrzm/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/wjrzm/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/include/TH -I/home/wjrzm/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/include/THC -I/home/wjrzm/anaconda3/envs/pytorch/include/python3.7m -c src/bvh.cpp -o build/temp.linux-x86_64-cpython-37/src/bvh.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=bvh_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
gcc: fatal error: cannot execute 'cc1plus': execvp: Permission denied
compilation terminated.
error: command '/home/wjrzm/anaconda3/envs/pytorch/bin/gcc' failed with exit code 1
Do you know how to solve it?
Python:3.7.16 Torch:1.7.0 cuda:11.4