Package Details: whisper.cpp 1.7.5-4

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: 15
Popularity: 1.08
First Submitted: 2023-03-10 17:32 (UTC)
Last Updated: 2025-04-12 15:59 (UTC)

Dependencies (4)

Required by (3)

Sources (1)

Latest Comments

1 2 3 4 5 Next › Last »

hsantanna commented on 2025-05-10 06:34 (UTC)

If you get this error:

[ 84%] Building CXX object examples/talk-llama/CMakeFiles/whisper-talk-llama.dir/llama-mmap.cpp.o
In file included from /home/henrique/.cache/pikaur/build/whisper.cpp/src/whisper.cpp-1.7.5/examples/talk-llama/llama-mmap.cpp:1:
/home/henrique/.cache/pikaur/build/whisper.cpp/src/whisper.cpp-1.7.5/examples/talk-llama/llama-mmap.h:26:5: error: ‘uint32_t’ does not name a type
26 |     uint32_t read_u32() const;
|     ^~~~~~~~
/home/henrique/.cache/pikaur/build/whisper.cpp/src/whisper.cpp-1.7.5/examples/talk-llama/llama-mmap.h:5:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
4 | #include <vector>
+++ |+#include <cstdint>
5 |

Just add this to PKGBUILD:

prepare() {
  cd "${srcdir}/${_pkgbase}-${pkgver}"
  sed -i '4i #include <cstdint>' examples/talk-llama/llama-mmap.h
}

robertfoster commented on 2025-04-13 16:48 (UTC) (edited on 2025-04-13 16:50 (UTC) by robertfoster)

@Regalia

This is the actual whisper.cpp

/usr/
/usr/bin/
/usr/bin/whisper-bench
/usr/bin/whisper-cli
/usr/bin/whisper-command
/usr/bin/whisper-server
/usr/bin/whisper-stream
/usr/bin/whisper-talk-llama
/usr/include/
/usr/include/whisper.h
/usr/lib/
/usr/lib/cmake/
/usr/lib/cmake/whisper/
/usr/lib/cmake/whisper/whisper-config.cmake
/usr/lib/cmake/whisper/whisper-version.cmake
/usr/lib/libwhisper.so
/usr/lib/libwhisper.so.1
/usr/lib/libwhisper.so.1.7.5
/usr/lib/pkgconfig/
/usr/lib/pkgconfig/whisper.pc
/usr/share/
/usr/share/licenses/
/usr/share/licenses/whisper.cpp/
/usr/share/licenses/whisper.cpp/LICENSE

You can retrieve it with -Ql whisper.cpp. if your list diverges, maybe you have some local cache issue (!?).

So there's no conflicting file

@kreijstal that script file to download models is not installed by cmake, Ask to the upstream project to consider this option. For now I try to stay minimal.

Regalia commented on 2025-04-13 16:17 (UTC)

Hey, I think you split off ggml-git from whisper.cpp, but you didn't clean up preexisting ggml headers from whisper.cpp, so this needs manual intervention (reinstalling whisper.cpp):

error: failed to commit transaction (conflicting files)
ggml-git: /usr/include/ggml-alloc.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/include/ggml-backend.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/include/ggml-blas.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/include/ggml-cann.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/include/ggml-cpu.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/include/ggml-cuda.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/include/ggml-kompute.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/include/ggml-metal.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/include/ggml-opt.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/include/ggml-rpc.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/include/ggml-sycl.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/include/ggml-vulkan.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/include/ggml.h exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/lib/libggml-base.so exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/lib/libggml-cpu.so exists in filesystem (owned by whisper.cpp)
ggml-git: /usr/lib/libggml.so exists in filesystem (owned by whisper.cpp)
Errors occurred, no packages were upgraded.

jronald commented on 2025-02-23 03:55 (UTC)

:: blas-openblas-0.3.28-1 and blas-3.12.1-2 are in conflict. Remove blas? [y/N] 

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...