Package Details: whisper.cpp 1.7.4-2

Git Clone URL: https://aur.archlinux.org/whisper.cpp.git (read-only, click to copy)
Package Base: whisper.cpp
Description: Port of OpenAI's Whisper model in C/C++ (with OPENBlas CPU optimizations)
Upstream URL: https://github.com/ggerganov/whisper.cpp
Licenses: MIT
Submitter: robertfoster
Maintainer: robertfoster
Last Packager: robertfoster
Votes: 14
Popularity: 1.32
First Submitted: 2023-03-10 17:32 (UTC)
Last Updated: 2025-02-16 18:33 (UTC)

Dependencies (3)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

kreijstal commented on 2025-02-17 10:35 (UTC)

Thank you @robertfoster, but it seems download-ggml-model.sh is still not packaged.

kreijstal commented on 2025-02-16 21:19 (UTC) (edited on 2025-02-16 21:19 (UTC) by kreijstal)

Models are not supported? Or where are you supposed to get them? Also yes you don't need to delete the ggml.so libraries, that's stupid. unless you also package libggml separately.

Retoran commented on 2025-02-08 22:49 (UTC) (edited on 2025-02-08 22:52 (UTC) by Retoran)

I managed to get whisper-cli from this package's vulkan version to stop complaining about libggml.so being missing, as mentioned by Bink in the previous comment, by removing the following lines from the package build.

package() {
...
  rm "${pkgdir}/usr/include/"ggml*
  rm "${pkgdir}/usr/lib/libggml.so"
...
}

These lines are also present in this version of the package, I imagine removing them would also solve the error here.

First time commenting on the AUR, apologies for any formatting problems with this comment.

Bink commented on 2025-01-29 03:26 (UTC) (edited on 2025-02-11 20:14 (UTC) by Bink)

When running whisper-cli, this issue presents on my system, and also in a minimal VM with a clean build environment.

whisper-cli: error while loading shared libraries: libggml.so: cannot open shared object file: No such file or directory

Under /usr/lib/ only these are present:

/usr/lib/libggml-base.so
/usr/lib/libggml-cpu.so

TimorLee commented on 2024-12-05 08:46 (UTC) (edited on 2024-12-05 08:51 (UTC) by TimorLee)

I'm also getting the following error currently:

/usr/bin/whisper.cpp: symbol lookup error: /usr/lib/libwhisper.so.1: undefined symbol: ggml_cpu_has_cuda

And I have no idea how to fix that - and would love to be able to use whisper again, as it's a great asset in my workflow...

dbb commented on 2024-12-04 12:34 (UTC)

At least for me adding vulkan-headers and shaderc to makedepends was enough to get it to build in a clean chroot.

xuiqzy commented on 2024-11-13 19:59 (UTC)

Vulkan variant failed to build even with shaderc and vulkan-headers installed. Full output: https://pastebin.com/HzaxTUvd Partial:

-- CUDA found
-- Using CUDA architectures: 52;61;70;75
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/..

  #$ CICC_PATH=/opt/cuda/bin/../nvvm/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:/home/xuiqzy/.cargo/bin:/usr/local/bin:/usr/bin:/var/lib/snapd/snap/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__=6
  -D__CUDACC_VER_BUILD__=77 -D__CUDA_API_VER_MAJOR__=12
  -D__CUDA_API_VER_MINOR__=6 -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
  "/tmp/makepkg/whisper.cpp/src/whisper.cpp-cuda/build/CMakeFiles/3.31.0/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.2.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.2.1/type_traits(529): error: type name is not allowed

        : public __bool_constant<__is_array(_Tp)>
                                            ^



  /usr/include/c++/14.2.1/type_traits(529): error: identifier "__is_array" is
  undefined

        : public __bool_constant<__is_array(_Tp)>
                                 ^



  /usr/include/c++/14.2.1/type_traits(581): error: type name is not allowed

        : public __bool_constant<__is_member_object_pointer(_Tp)>
                                                            ^



  /usr/include/c++/14.2.1/type_traits(581): error: identifier
  "__is_member_object_pointer" is undefined

        : public __bool_constant<__is_member_object_pointer(_Tp)>
                                 ^



  /usr/include/c++/14.2.1/type_traits(603): error: type name is not allowed

        : public __bool_constant<__is_member_function_pointer(_Tp)>
                                                              ^



  /usr/include/c++/14.2.1/type_traits(603): error: identifier
  "__is_member_function_pointer" is undefined

        : public __bool_constant<__is_member_function_pointer(_Tp)>
                                 ^



  /usr/include/c++/14.2.1/type_traits(695): error: type name is not allowed

        : public __bool_constant<__is_reference(_Tp)>
                                                ^



<... cut off, kept the end again>


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:299 (enable_language)


xiota commented on 2024-11-10 20:50 (UTC) (edited on 2024-11-10 21:06 (UTC) by xiota)

Rather than delete libggml related files, should configure to link statically. Appears each variant needs its own version of libggml, which the aur/libggml-git package can't handle.

AUR is not a personal repo, is public

That statement supports creating separate PKGBUILDs for each subpackage. Few people need every variant. Forcing users to build them all of them, edit the PKGBUILD every update, etc is cumbersome. If you expect users to modify the package before building, the base package should support baseline x86_64 with ability to build with other options.

jsimonrichard commented on 2024-11-10 00:43 (UTC)

This may have been caused by the deletion of ggml.so (not sure), but I'm getting the following error (even though I also installed libggml-git).

$ whisper.cpp --help
whisper.cpp: symbol lookup error: /usr/lib/libwhisper.so.1: undefined symbol: ggml_backend_cuda_init