chaotic-aur / packages

Read-only mirror of Chaotic-AUR's main repository. Issues and bug reports welcome! 📑
https://gitlab.com/chaotic-aur/pkgbuilds
GNU General Public License v3.0
339 stars 20 forks source link

[Rebuild] whisper.cpp #3360

Closed dreirund closed 2 weeks ago

dreirund commented 1 month ago

Packages:

https://aur.archlinux.org/packages/whisper.cpp

Latest chaotic version

1.6.2-1

Reason for rebuild

Outdated since 10 days (version 1.7.1, currently $pkgrel -2)

Logs

No response

Builds?

No response

More information

No response

xiota commented 1 month ago

I plan to look at this package sometime this week or weekend.

BEST8OY commented 1 month ago

I tried whisper.cpp a week ago and it was okay https://builds.garudalinux.org/logs/logs.html?timestamp=1729842624626&id=whisper.cpp Now it's

whisper.cpp: error while loading shared libraries: libggml.so: cannot open shared object file: No such file or directory
xiota commented 1 month ago

@BEST8OY Are you using version 1.7.1-2? The plain cpu version works on my computer. I have not tried any of the others. No package provides libggml.so. Don't know why it would be needed.

Correction, I was running the wrong binary. Able to reproduce the error. Will look into it.

BEST8OY commented 3 weeks ago

@xiota I installed libggml-git from AUR.

xiota commented 3 weeks ago

aur/libggml-git has some problems. The most serious is that it detects and uses CPU features on the build machine, which will cause the resulting binaries to throw illegal instruction errors on users' machines. The following changes would be needed. Otherwise, it would have to be rewritten and added as a custom package.

llama.cpp and whisper.cpp also do not declare the dependency. They would need to be adjusted with interferes.

xiota commented 3 weeks ago

Interfere added to whisper.cpp in 902f713e13c296ddd22e818edce7a1ad47a16266, 2728a866145005b268f60f86a72d9b92791c98a4. Interfere for llama.cpp pending.

xiota commented 2 weeks ago

Interfere for llama.cpp added in 571518779fa3ad6fca467ec3cba0e1e3fe6a9686

xiota commented 2 weeks ago

Appears whisper.cpp variants don't all work with libggml-git. AUR maintainer has been notified via comment. If package is not revised, will switch to custom packages with static linking. May drop GPU variants.