Error on building
[ 28%] Building CXX object src/CMakeFiles/llama.dir/unicode.cpp.o
[ 28%] Linking CXX executable ../../bin/llama-gguf
[ 28%] Built target llama-gguf
[ 28%] Linking CXX executable ../../bin/llama-gguf-hash
[ 28%] Built target llama-gguf-hash
/home/andrey/llama.cpp-PR-16095/src/llama-model.cpp:17407:8: error: redefinition of ‘struct llm_build_bailingmoe2’
17407 | struct llm_build_bailingmoe2 : public llm_graph_context {
| ^~~~~~~~~~~~~~~~~~~~~
/home/andrey/llama.cpp-PR-16095/src/llama-model.cpp:17263:8: note: previous definition of ‘struct llm_build_bailingmoe2’
17263 | struct llm_build_bailingmoe2 : public llm_graph_context {
| ^~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [src/CMakeFiles/llama.dir/build.make:356: src/CMakeFiles/llama.dir/llama-model.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:1784: src/CMakeFiles/llama.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
real 0m12,924s
user 1m6,601s
sys 0m3,494s
I can reproduce your issue, this is an error in the PR code , probably temporary ...
check https://github.com/ggml-org/llama.cpp/pull/16095
for progress
the author is in the process of merging and is having issues
wait until it is resolved or use an earlier version like fbe0e22
PR=16095
git clone https://github.com/ggml-org/llama.cpp llama.cpp-PR-$PR
cd llama.cpp-PR-$PR
git fetch origin pull/$PR/head:pr-$PR
git checkout pr-$PR
git checkout fbe0e22
time cmake -B build
time cmake --build build --config Release --parallel $(nproc --all)
otherwise give him a day or so to fix 😀
be patient , and it will likely become part of a new release in the not too distant future
it is working now