stable-diffusion.cpp icon indicating copy to clipboard operation
stable-diffusion.cpp copied to clipboard

CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:838 (message):

Open hydrogen1222 opened this issue 1 year ago • 2 comments

CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:838 (message): Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.

Compiler: /opt/cuda/bin/nvcc

Build flags:

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

The output was:

1

/opt/cuda/bin/gcc: No such file or directory

nvcc fatal : Failed to preprocess host compiler properties.

Call Stack (most recent call first): /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test) /usr/share/cmake/Modules/CMakeDetermineCUDACompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) ggml/src/CMakeLists.txt:220 (enable_language)

-- Configuring incomplete, errors occurred!

屏幕截图_20240718_162132

(The above is the error message) (Here is some system information that may be relevant)

屏幕截图_20240718_162236 I think I have installed AMD ROCm (I don't know if hip and ROCm are the same thing) and tried to modify CMakeLists.txt to comment on the content of CUDA, but I got the same error, could you please tell me how to solve this problem I used paru to install stable diffusion in the AUR. I tried to install two versions of sd, stable-diffuse.cpl-hipblas-git and stable-diffuse.cpl-git, and got the same error I need your help. Thank you so much

hydrogen1222 avatar Jul 18 '24 08:07 hydrogen1222

Interesting, looks like your cuda toolkit install is broken. /opt/cuda/bin/gcc: No such file or directory

Green-Sky avatar Jul 18 '24 08:07 Green-Sky

Interesting, looks like your cuda toolkit install is broken. /opt/cuda/bin/gcc: No such file or directory

I try to reinstall CUDA serveral times(sudo pacman -S cuda,version=12.5.1-1),but it does not work

hydrogen1222 avatar Jul 21 '24 09:07 hydrogen1222