Building package "whisper.cpp" :: Synchronizing package databases... core downloading... extra downloading... multilib downloading... chaotic-aur downloading... :: Starting full system upgrade... there is nothing to do warning: glibc-2.40-1 is up to date -- skipping warning: gcc-libs-14.1.1+r309+gbb34b7eda1f-1 is up to date -- skipping resolving dependencies... looking for conflicting packages... Packages (26) cppdap-1.58.0-2 gcc13-13.3.0-1 gcc13-libs-13.3.0-1 hicolor-icon-theme-0.18-1 hwloc-2.10.0-1 jsoncpp-1.9.5-3 libpciaccess-0.18.1-2 libuv-1.48.0-2 mpdecimal-4.0.0-2 ocl-icd-2.3.2-2 onetbb-2021.13.0-1 openblas-0.3.27-1 opencl-headers-2:2024.05.08-1 opencl-nvidia-555.58.02-1 perl-error-0.17029-6 perl-mailtools-2.21-8 perl-timedate-2.33-6 pugixml-1.14-1 python-3.12.4-1 rhash-1.4.4-1 blas-openblas-0.3.27-1 clblast-1.6.3-1 cmake-3.30.1-1 cuda-12.5.1-1 git-2.45.2-1 openvino-git-2024.2.0.r540.gbc7784de572-1 Total Installed Size: 5359.61 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... checking available disk space... :: Processing package changes... installing openblas... installing blas-openblas... installing ocl-icd... Optional dependencies for ocl-icd opencl-driver: packaged opencl driver [pending] installing opencl-headers... Optional dependencies for opencl-headers opencl-clhpp: C++ support installing clblast... installing cppdap... installing hicolor-icon-theme... installing jsoncpp... Optional dependencies for jsoncpp jsoncpp-doc: documentation installing libuv... installing rhash... installing cmake... Optional dependencies for cmake make: for unix Makefile generator [installed] ninja: for ninja generator qt6-base: cmake-gui installing opencl-nvidia... Optional dependencies for opencl-nvidia opencl-headers: headers necessary for OpenCL development [installed] installing mpdecimal... installing python... Optional dependencies for python python-setuptools: for building Python packages using tooling that is usually bundled with Python python-pip: for installing Python packages using tooling that is usually bundled with Python python-pipx: for installing Python software not packaged on Arch Linux sqlite: for a default database integration [installed] xz: for lzma [installed] tk: for tkinter installing gcc13-libs... installing gcc13... installing cuda... - The cuda binaries are in /opt/cuda/bin/ - The cuda samples are in /opt/cuda/samples/ - The cuda docs are in /opt/cuda/doc/ - You need to source /etc/profile or restart your session in order for the CUDA binaries to appear in your $PATH - The default host compiler for nvcc is set by the $NVCC_CCBIN environment variable in /etc/profile.d/cuda.sh - The default host compiler for nvcc is no longer configured using symlinks in /opt/cuda/bin/ but by the $NVCC_CCBIN environment variable in /etc/profile.d/cuda.sh. You need to source /etc/profile or restart your session for it to be available in your environment. Additionally, you may need to clear the build cache of your projects where the old path may have been recorded. - When you uninstall an old, unrequired version of GCC that was previously required by cuda for the default host compiler ($NVCC_CCBIN), you may need to source /etc/profile or restart your session. Additionally, you may need to clear the build cache of your projects where the old path may be still recorded. Optional dependencies for cuda gdb: for cuda-gdb glu: required for some profiling tools in CUPTI nvidia-utils: for NVIDIA drivers (not needed in CDI containers) rdma-core: for GPUDirect Storage (libcufile_rdma.so) installing perl-error... installing perl-timedate... installing perl-mailtools... installing git... Optional dependencies for git tk: gitk and git gui openssh: ssh transport and crypto perl-libwww: git svn perl-term-readkey: git svn and interactive.singlekey setting perl-io-socket-ssl: git send-email TLS support perl-authen-sasl: git send-email TLS support perl-mediawiki-api: git mediawiki support perl-datetime-format-iso8601: git mediawiki support perl-lwp-protocol-https: git mediawiki https support perl-cgi: gitweb (web interface) support python: git svn & git p4 [installed] subversion: git svn org.freedesktop.secrets: keyring credential helper libsecret: libsecret credential helper [installed] installing pugixml... installing libpciaccess... installing hwloc... Optional dependencies for hwloc cairo libxml2 [installed] pciutils [installed] libx11 installing onetbb... installing openvino-git... Optional dependencies for openvino-git intel-compute-runtime: for Intel GPU plugin ocl-icd: for Intel GPU plugin [installed] level-zero-loader: for Intel NPU plugin snappy: for tensorflow frontend python: for Python API [installed] python-numpy: for Python API python-packaging: for Python API python-pillow: for Python API :: Running post-transaction hooks... (1/4) Creating system user accounts... Creating group 'git' with GID 973. Creating user 'git' (git daemon user) with UID 973 and GID 973. (2/4) Reloading system manager configuration... Skipped: Current root is not booted. (3/4) Arming ConditionNeedsUpdate... (4/4) Warn about old perl modules ==> Making package: whisper.cpp 1.6.2-1 (Sat 27 Jul 2024 01:48:15 AM CEST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found whisper.cpp-1.6.2.tar.gz ==> WARNING: Skipping verification of source file PGP signatures. ==> Validating source files with sha256sums... whisper.cpp-1.6.2.tar.gz ... Passed ==> Extracting sources... -> Extracting whisper.cpp-1.6.2.tar.gz with bsdtar ==> Starting prepare()... ==> Starting build()... Build whisper.cpp with OPENBlas -- The C compiler identification is GNU 14.1.1 -- The CXX compiler identification is GNU 14.1.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.45.2") -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- BLAS compatible library found -- Libraries /usr/lib/libopenblas.so -- Include dirs /usr/include/openblas -- CMAKE_SYSTEM_PROCESSOR: x86_64 -- x86 detected -- Configuring done (0.5s) -- Generating done (0.0s) -- Build files have been written to: /home/main-builder/pkgwork/src/whisper.cpp/build [ 5%] Building C object CMakeFiles/whisper.dir/ggml.c.o [ 11%] Building CXX object CMakeFiles/whisper.dir/whisper.cpp.o [ 22%] Building C object CMakeFiles/whisper.dir/ggml-alloc.c.o [ 22%] Building C object CMakeFiles/whisper.dir/ggml-backend.c.o [ 27%] Building C object CMakeFiles/whisper.dir/ggml-quants.c.o /home/main-builder/pkgwork/src/whisper.cpp/whisper.cpp: In function ‘ggml_backend* whisper_backend_init(const whisper_context_params&)’: /home/main-builder/pkgwork/src/whisper.cpp/whisper.cpp:1225:75: warning: unused parameter ‘params’ [-Wunused-parameter] 1225 | static ggml_backend_t whisper_backend_init(const whisper_context_params & params) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /home/main-builder/pkgwork/src/whisper.cpp/whisper.cpp: At global scope: /home/main-builder/pkgwork/src/whisper.cpp/whisper.cpp:206:29: warning: ‘ggml_tensor* ggml_mul_mat_pad(ggml_context*, ggml_tensor*, ggml_tensor*, int)’ defined but not used [-Wunused-function] 206 | static struct ggml_tensor * ggml_mul_mat_pad(struct ggml_context * ctx, struct ggml_tensor * x, struct ggml_tensor * y, int pad = 32) { | ^~~~~~~~~~~~~~~~ [ 33%] Linking CXX shared library libwhisper.so [ 33%] Built target whisper [ 44%] Building CXX object examples/bench/CMakeFiles/bench.dir/bench.cpp.o [ 44%] Building CXX object examples/CMakeFiles/common.dir/common.cpp.o [ 55%] Building CXX object examples/CMakeFiles/common.dir/grammar-parser.cpp.o [ 55%] Building CXX object examples/CMakeFiles/common.dir/common-ggml.cpp.o [ 61%] Linking CXX executable ../../bin/bench [ 61%] Built target bench [ 66%] Linking CXX static library libcommon.a [ 66%] Built target common [ 72%] Building CXX object examples/server/CMakeFiles/server.dir/server.cpp.o [ 83%] Building CXX object examples/quantize/CMakeFiles/quantize.dir/quantize.cpp.o [ 83%] Building CXX object examples/main/CMakeFiles/main.dir/main.cpp.o [ 88%] Linking CXX executable ../../bin/quantize [ 94%] Linking CXX executable ../../bin/main [ 94%] Built target quantize [ 94%] Built target main [100%] Linking CXX executable ../../bin/server [100%] Built target server Build whisper.cpp with OpenCL -- The C compiler identification is GNU 14.1.1 -- The CXX compiler identification is GNU 14.1.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.45.2") -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- CLBlast found -- CMAKE_SYSTEM_PROCESSOR: x86_64 -- x86 detected -- Configuring done (0.5s) -- Generating done (0.0s) -- Build files have been written to: /home/main-builder/pkgwork/src/whisper.cpp-clblas/build [ 5%] Building C object CMakeFiles/whisper.dir/ggml.c.o [ 10%] Building C object CMakeFiles/whisper.dir/ggml-backend.c.o [ 15%] Building CXX object CMakeFiles/whisper.dir/ggml-opencl.cpp.o [ 31%] Building CXX object CMakeFiles/whisper.dir/whisper.cpp.o [ 31%] Building C object CMakeFiles/whisper.dir/ggml-quants.c.o [ 31%] Building C object CMakeFiles/whisper.dir/ggml-alloc.c.o /home/main-builder/pkgwork/src/whisper.cpp-clblas/ggml-opencl.cpp: In function ‘size_t ggml_backend_opencl_buffer_type_get_max_size(ggml_backend_buffer_type_t)’: /home/main-builder/pkgwork/src/whisper.cpp-clblas/ggml-opencl.cpp:2129:87: warning: unused parameter ‘buffer_type’ [-Wunused-parameter] 2129 | static size_t ggml_backend_opencl_buffer_type_get_max_size(ggml_backend_buffer_type_t buffer_type) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ /home/main-builder/pkgwork/src/whisper.cpp-clblas/whisper.cpp: In function ‘ggml_backend* whisper_backend_init(const whisper_context_params&)’: /home/main-builder/pkgwork/src/whisper.cpp-clblas/whisper.cpp:1225:75: warning: unused parameter ‘params’ [-Wunused-parameter] 1225 | static ggml_backend_t whisper_backend_init(const whisper_context_params & params) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /home/main-builder/pkgwork/src/whisper.cpp-clblas/whisper.cpp: At global scope: /home/main-builder/pkgwork/src/whisper.cpp-clblas/whisper.cpp:206:29: warning: ‘ggml_tensor* ggml_mul_mat_pad(ggml_context*, ggml_tensor*, ggml_tensor*, int)’ defined but not used [-Wunused-function] 206 | static struct ggml_tensor * ggml_mul_mat_pad(struct ggml_context * ctx, struct ggml_tensor * x, struct ggml_tensor * y, int pad = 32) { | ^~~~~~~~~~~~~~~~ [ 36%] Linking CXX shared library libwhisper.so [ 36%] Built target whisper [ 57%] Building CXX object examples/bench/CMakeFiles/bench.dir/bench.cpp.o [ 57%] Building CXX object examples/CMakeFiles/common.dir/grammar-parser.cpp.o [ 57%] Building CXX object examples/CMakeFiles/common.dir/common.cpp.o [ 57%] Building CXX object examples/CMakeFiles/common.dir/common-ggml.cpp.o [ 63%] Linking CXX executable ../../bin/bench [ 63%] Built target bench [ 68%] Linking CXX static library libcommon.a [ 68%] Built target common [ 73%] Building CXX object examples/quantize/CMakeFiles/quantize.dir/quantize.cpp.o [ 78%] Building CXX object examples/server/CMakeFiles/server.dir/server.cpp.o [ 84%] Building CXX object examples/main/CMakeFiles/main.dir/main.cpp.o [ 89%] Linking CXX executable ../../bin/quantize [ 94%] Linking CXX executable ../../bin/main [ 94%] Built target quantize [ 94%] Built target main [100%] Linking CXX executable ../../bin/server [100%] Built target server Build whisper.cpp with CUBlas (NVIDIA CUDA) -- The C compiler identification is GNU 14.1.1 -- The CXX compiler identification is GNU 14.1.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.45.2") -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found CUDAToolkit: /opt/cuda/targets/x86_64-linux/include (found version "12.5.82") -- cuBLAS found 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: 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/.. #$ CICC_PATH=/opt/cuda/bin/../nvvm/bin #$ CICC_NEXT_PATH=/opt/cuda/bin/../nvvm-next/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:/nix/store/sbqf71kqhlgaff1ajd8zak09g4wn8ymd-systemd-255.6/bin/:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/cuda/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 -D__NV_LEGACY_LAUNCH -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__=5 -D__CUDACC_VER_BUILD__=82 -D__CUDA_API_VER_MAJOR__=12 -D__CUDA_API_VER_MINOR__=5 -D__NVCC_DIAG_PRAGMA_SUPPORT__=1 -include "cuda_runtime.h" -m64 "CMakeCUDACompilerId.cu" -o "tmp/CMakeCUDACompilerId.cpp4.ii" #$ cudafe++ --c++17 --gnu_version=140101 --display_error_number --orig_src_file_name "CMakeCUDACompilerId.cu" --orig_src_path_name "/home/main-builder/pkgwork/src/whisper.cpp-cublas/build/CMakeFiles/3.30.1/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/c++/14.1.1/x86_64-pc-linux-gnu/bits/c++config.h(827): error: user-defined literal operator not found typedef __decltype(0.0bf16) __bfloat16_t; ^ /usr/include/c++/14.1.1/type_traits(529): error: type name is not allowed : public __bool_constant<__is_array(_Tp)> ^ /usr/include/c++/14.1.1/type_traits(529): error: identifier "__is_array" is undefined : public __bool_constant<__is_array(_Tp)> ^ /usr/include/c++/14.1.1/type_traits(581): error: type name is not allowed : public __bool_constant<__is_member_object_pointer(_Tp)> ^ /usr/include/c++/14.1.1/type_traits(581): error: identifier "__is_member_object_pointer" is undefined : public __bool_constant<__is_member_object_pointer(_Tp)> ^ /usr/include/c++/14.1.1/type_traits(603): error: type name is not allowed : public __bool_constant<__is_member_function_pointer(_Tp)> ^ /usr/include/c++/14.1.1/type_traits(603): error: identifier "__is_member_function_pointer" is undefined : public __bool_constant<__is_member_function_pointer(_Tp)> ^ /usr/include/c++/14.1.1/type_traits(695): error: type name is not allowed : public __bool_constant<__is_reference(_Tp)> ^ /usr/include/c++/14.1.1/type_traits(695): error: identifier "__is_reference" is undefined : public __bool_constant<__is_reference(_Tp)> ^ /usr/include/c++/14.1.1/type_traits(731): error: type name is not allowed : public __bool_constant<__is_object(_Tp)> ^ /usr/include/c++/14.1.1/type_traits(731): error: identifier "__is_object" is undefined : public __bool_constant<__is_object(_Tp)> ^ /usr/include/c++/14.1.1/type_traits(760): error: type name is not allowed : public __bool_constant<__is_member_pointer(_Tp)> ^ /usr/include/c++/14.1.1/type_traits(760): error: identifier "__is_member_pointer" is undefined : public __bool_constant<__is_member_pointer(_Tp)> ^ /usr/include/c++/14.1.1/type_traits(3247): error: type name is not allowed inline constexpr bool is_array_v = __is_array(_Tp); ^ /usr/include/c++/14.1.1/type_traits(3271): error: type name is not allowed __is_member_object_pointer(_Tp); ^ /usr/include/c++/14.1.1/type_traits(3281): error: type name is not allowed __is_member_function_pointer(_Tp); ^ /usr/include/c++/14.1.1/type_traits(3298): error: type name is not allowed inline constexpr bool is_reference_v = __is_reference(_Tp); ^ /usr/include/c++/14.1.1/type_traits(3315): error: type name is not allowed inline constexpr bool is_object_v = __is_object(_Tp); ^ /usr/include/c++/14.1.1/type_traits(3328): error: type name is not allowed inline constexpr bool is_member_pointer_v = __is_member_pointer(_Tp); ^ /usr/include/c++/14.1.1/bits/utility.h(237): error: __type_pack_element is not a template { using type = __type_pack_element<_Np, _Types...>; }; ^ 20 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) CMakeLists.txt:356 (enable_language) -- Configuring incomplete, errors occurred! ==> ERROR: A failure occurred in build(). Aborting... umount: /tmp/chaotic/routines/hourly.1/whisper.cpp/machine/root/var/pkgdest unmounted umount: /tmp/chaotic/routines/hourly.1/whisper.cpp/machine/root/var/cache/pacman/pkg unmounted umount: /tmp/chaotic/routines/hourly.1/whisper.cpp/machine/root/home/main-builder/pkgsrc unmounted umount: /tmp/chaotic/routines/hourly.1/whisper.cpp/machine/root/home/main-builder/.ccache unmounted umount: /tmp/chaotic/routines/hourly.1/whisper.cpp/machine/root/home/main-builder/pkgwork unmounted umount: /tmp/chaotic/routines/hourly.1/whisper.cpp/machine/root (overlay) unmounted real 0m46.685s user 1m27.674s sys 0m19.180s