The build fails for me at the CUDA step. Any idea on how to fix it? Thank you!
LOG attached
[ 72%] Performing configure step for 'whispercppcublas' CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier.
-- OpenMP found -- CUDA found -- Using CUDA architectures: native CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:865 (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:
2
#$ NVVM_BRANCH=nvvm
#$ SPACE=
#$ CUDART=cudart
#$ HERE=/opt/cuda/bin
#$ THERE=/opt/cuda/bin
#$ TARGET_SIZE=
#$ TARGET_DIR=
#$ TARGET_DIR=targets/x86_64-linux
#$ TOP=/opt/cuda/bin/..
#$ NVVMIR_LIBRARY_DIR=/opt/cuda/bin/../nvvm/libdevice
#$ LD_LIBRARY_PATH=/opt/cuda/bin/../lib:
#$ PATH=/opt/cuda/bin/../nvvm/bin:/opt/cuda/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/opt/android-sdk/platform-tools:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/share/dotnet:/home/ww/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/ww/Dropbox/scripts:/home/ww/scripts:/home/ww/.gem/ruby/2.3.0/bin:/home/ww/Dropbox/scripts:/home/ww/scripts:/home/ww/.gem/ruby/2.3.0/bin
#$ INCLUDES="-I/opt/cuda/bin/../targets/x86_64-linux/include"
#$ LIBRARIES= "-L/opt/cuda/bin/../targets/x86_64-linux/lib/stubs" "-L/opt/cuda/bin/../targets/x86_64-linux/lib"
#$ CUDAFE_FLAGS=
#$ PTXAS_FLAGS=
#$ rm tmp/a_dlink.reg.c
#$ gcc -D__CUDA_ARCH_LIST__=520 -E -x c++ -D__CUDACC__ -D__NVCC__ "-I/opt/cuda/bin/../targets/x86_64-linux/include" -D__CUDACC_VER_MAJOR__=12 -D__CUDACC_VER_MINOR__=0 -D__CUDACC_VER_BUILD__=140 -D__CUDA_API_VER_MAJOR__=12 -D__CUDA_API_VER_MINOR__=0 -D__NVCC_DIAG_PRAGMA_SUPPORT__=1 -include "cuda_runtime.h" -m64 "CMakeCUDACompilerId.cu" -o "tmp/CMakeCUDACompilerId.cpp4.ii"
#$ cudafe++ --c++17 --gnu_version=140201 --display_error_number --orig_src_file_name "CMakeCUDACompilerId.cu" --orig_src_path_name "/home/ww/.cache/yay/dsnote/src/dsnote-4.7.1/build/external/whispercppcublas/CMakeFiles/3.31.5/CompilerIdCUDA/CMakeCUDACompilerId.cu" --allow_managed --m64 --parse_templates --gen_c_file_name "tmp/CMakeCUDACompilerId.cudafe1.cpp" --stub_file_name "CMakeCUDACompilerId.cudafe1.stub.c" --gen_module_id_file --module_id_file_name "tmp/CMakeCUDACompilerId.module_id" "tmp/CMakeCUDACompilerId.cpp4.ii"
/usr/include/bits/mathcalls.h(79): error: exception specification is incompatible with that of previous function "cospi"
/opt/cuda/bin/../targets/x86_64-linux/include/crt/math_functions.h(5551): here
/usr/include/bits/mathcalls.h(81): error: exception specification is incompatible with that of previous function "sinpi"
/opt/cuda/bin/../targets/x86_64-linux/include/crt/math_functions.h(5439): here
/usr/include/bits/mathcalls.h(79): error: exception specification is incompatible with that of previous function "cospif"
/opt/cuda/bin/../targets/x86_64-linux/include/crt/math_functions.h(5603): here
/usr/include/bits/mathcalls.h(81): error: exception specification is incompatible with that of previous function "sinpif"
/opt/cuda/bin/../targets/x86_64-linux/include/crt/math_functions.h(5499): here
4 errors detected in the compilation of "CMakeCUDACompilerId.cu".
# --error 0x2 --
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:302 (enable_language)
-- Configuring incomplete, errors occurred! make[2]: *** [CMakeFiles/whispercppcublas.dir/build.make:92: whispercppcublas-prefix/src/whispercppcublas-stamp/whispercppcublas-configure] Fehler 1 make[1]: *** [CMakeFiles/Makefile2:507: CMakeFiles/whispercppcublas.dir/all] Fehler 2
Pinned Comments
LFdev commented on 2025-01-01 13:44 (UTC)
New version was released. From now on, Vulkan support is enabled by default (please remember to install related optional Vulkan drivers for your GPU), ROCm support was removed and CUDA build process was improved, but still experimental. If you do not want to build it with CUDA support, it is possible to edit PKGBUILD before building (check inside notes).