-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Hey! I am having trouble running kb compile, which I have to do because my kb ref command resulted in the following error:
kb_python.config.UnsupportedOSError: Failed to find compatible kallisto binary. Provide a compatible binary with the--kallistooption or runkb compile.
No problem, I ran kb compile all, resulting in:
[2026-03-04 11:12:59,188] ERROR [compile] CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
...
subprocess.CalledProcessError: Command 'cmake ..' returned non-zero exit status 1.
Looking on this and the kallisto GitHub, it seems that I am not the only one with this issue. I ran the workaround code on the kallisto GitHub (pachterlab/kallisto#503), which includes the command CMAKE_POLICY_VERSION_MINIMUM=3.5 cmake .. -DENABLE_AVX2=OFF -DCOMPILATION_ARCH=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5, but I ended up with this error:
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
make[2]: *** [/Users/mikafishlab/kallisto/ext/bifrost/src/bifrost-stamp/bifrost-configure] Error 1
make[1]: *** [CMakeFiles/bifrost.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
warning: unknown warning option '-Wno-subobject-linkage' [-Wunknown-warning-option]
1 warning generated.
[ 16%] Linking CXX static library libkallisto_core.a
[ 52%] Built target kallisto_core
make: *** [all] Error 2
[ 2%] Performing configure step for 'bifrost'
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
make[2]: *** [/Users/mikafishlab/kallisto/ext/bifrost/src/bifrost-stamp/bifrost-configure] Error 1
make[1]: *** [CMakeFiles/bifrost.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 42%] Built target kallisto_core
make: *** [all] Error 2
I am working on a Mac that has a silicon chip, which seems to be the crux of the issue from what I have read. Just wanted to post my information here and see if there is a workaround to the workaround. I am also a very inexperienced coder, so I might just be overlooking something simple. Thanks so much!