Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[Solved] FlexiBLAS -- Cmake cannot find modules

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
tkzv
Tux's lil' helper
Tux's lil' helper
Posts: 121
Joined: Fri Aug 22, 2014 6:56 pm

[Solved] FlexiBLAS -- Cmake cannot find modules

  • Quote

Post by tkzv » Thu Feb 05, 2026 5:00 am

Last time I needed BLAS for compilation, I simply switched between packages with eselect.

Today I tried to build whisper.cpp and got an error:

Code: Select all

$ cmake build
...
-- Adding CPU backend variant ggml-cpu: -march=native 
CMake Warning at ggml/src/ggml-blas/CMakeLists.txt:9 (find_package):
  By not providing "FindBLAS.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "BLAS", but
  CMake did not find one.

  Could not find a package configuration file provided by "BLAS" with any of
  the following names:

    BLASConfig.cmake
    blas-config.cmake

  Add the installation prefix of "BLAS" to CMAKE_PREFIX_PATH or set
  "BLAS_DIR" to a directory containing one of the above files.  If "BLAS"
  provides a separate development package or SDK, be sure it has been
  installed.


CMake Error at ggml/src/ggml-blas/CMakeLists.txt:84 (message):
  BLAS not found, please refer to
  https://cmake.org/cmake/help/latest/module/FindBLAS.html#blas-lapack-vendors
  to set correct GGML_BLAS_VENDOR
In the past I simply used eselect, but now it's been phased out in favor of flexiblas. I tried running «GGML_BLAS_VENDOR="FlexiBLAS" cmake build», but got the same error. How do I set up compilation now?

emerge --info: https://pastebin.com/UcdDPp98

Update: I tried that again today and everything worked. Since then, I updated dev-build/cmake
to 4.1.4, sys-devel/gcc to 14.3.1_p20260213, kde-frameworks/extra-cmake-modules to 6.23.0 and sci-libs/openblas to 0.3.31. Same sci-libs/flexiblas-3.5.0, as before. The problems may or may not had been caused by incompatible libraries in /lib64 left after hardware failure recovery.

Code: Select all

qfile -o $(find /bin /sbin /lib* /usr/{bin/,games/,include/,lib*/,sbin/,x86_64-pc-linux-gnu/} -mtime 150 -type f)
Last edited by tkzv on Tue Mar 17, 2026 12:24 pm, edited 2 times in total.
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Thu Feb 05, 2026 6:59 am

I see app-accessibility/whisper-cpp in ::guru where they set:

Code: Select all

src_configure() {
        # Note: CUDA and HIP are currently untested. Build failures may occur.
        # Turning off examples causes errors during configure
        # -DWHISPER_BUILD_TESTS=$(usex test)
        local mycmakeargs=(
                -DWHISPER_BUILD_EXAMPLES=ON
                -DGGML_BLAS=$(usex blas)
                -DGGML_CLBLAST=$(usex opencl)
                -DGGML_CUBLAS=$(usex cuda)
                -DGGML_HIPBLAS=$(usex hip)
                -DGGML_VULKAN=$(usex vulkan)
                -DWHISPER_SDL2=$(usex sdl2)
        )
        cmake_src_configure
}
Top
tkzv
Tux's lil' helper
Tux's lil' helper
Posts: 121
Joined: Fri Aug 22, 2014 6:56 pm

  • Quote

Post by tkzv » Thu Feb 05, 2026 8:27 am

sam_ wrote: app-accessibility/whisper-cpp in ::guru
It gives the same error, if I enable blas.

Besides, this ebuild does not use ffmpeg, and the resulting program cannot work with AAC or Opus.
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Thu Feb 05, 2026 5:08 pm

Which version of extra-cmake-modules are you running?
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
tkzv
Tux's lil' helper
Tux's lil' helper
Posts: 121
Joined: Fri Aug 22, 2014 6:56 pm

  • Quote

Post by tkzv » Mon Feb 09, 2026 4:36 am

Anon-E-moose wrote:Which version of extra-cmake-modules are you running?
Same for kde-frameworks/extra-cmake-modules-6.20.0 and 6.22.0.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic