harskish / ganspace

Discovering Interpretable GAN Controls [NeurIPS 2020]
Apache License 2.0
1.78k stars 264 forks source link

Pycuda install error: command 'gcc' failed with exit status 1 #52

Open gunahn opened 3 years ago

gunahn commented 3 years ago

Hi, thank you for making an amazing library.

I am trying to use your library for my research. However, I have been facing errors while I was trying to install pycuda.

I configure like this

python configure.py --cuda-enable-gl --cuda-root=/usr/local/cuda-10.0

and when I try to compile and install by "make install" ,

warning: no files found matching 'doc/source/_static/*.css'
warning: no files found matching 'doc/source/_templates/*.html'
warning: no files found matching '*.cpp' under directory 'bpl-subset/bpl_subset/boost'
warning: no files found matching '*.html' under directory 'bpl-subset/bpl_subset/boost'
warning: no files found matching '*.inl' under directory 'bpl-subset/bpl_subset/boost'
warning: no files found matching '*.txt' under directory 'bpl-subset/bpl_subset/boost'
warning: no files found matching '*.h' under directory 'bpl-subset/bpl_subset/libs'
warning: no files found matching '*.ipp' under directory 'bpl-subset/bpl_subset/libs'
warning: no files found matching '*.pl' under directory 'bpl-subset/bpl_subset/libs'
writing manifest file 'pycuda.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building '_driver' extension
gcc -pthread -B /home/orthoinsight/anaconda3/envs/ganspace/compiler_compat -Wl,--sysroot=/ -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_PYTHON_SOURCE=1 -Dboost=pycudaboost -DBOOST_THREAD_DONT_USE_CHRONO=1 -DPYGPU_PACKAGE=pycuda -DPYGPU_PYCUDA=1 -DHAVE_GL=1 -DHAVE_CURAND=1 -Isrc/cpp -Ibpl-subset/bpl_subset -I/usr/local/include -I/home/orthoinsight/anaconda3/envs/ganspace/lib/python3.7/site-packages/numpy/core/include -I/home/orthoinsight/anaconda3/envs/ganspace/include/python3.7m -c src/cpp/cuda.cpp -o build/temp.linux-x86_64-3.7/src/cpp/cuda.o
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
Makefile:12: recipe for target 'install' failed
make: *** [install] Error 1

I have been facing that kind of error. Can you please help me with that?

Thank you

Best Regards, Gun Ahn

hualuoluoyuxin commented 2 years ago

Yes, I also encountered this problem. Have you solved it now?