Thank you. The build failure is due to a breaking API change in
upstream library libllama.

I could reproduce and understand the issue, which is not easily
patchable. So, I will probably use the opportunity to upgrade libjjml-
java to a more recent version. This will take a few days.

On Tue, 2026-08-11 at 23:16 +0000, Santiago Vila wrote:
> Package: src:libjjml-java
> Version: 1.1.18-4
> Severity: serious
> Tags: ftbfs forky sid
> 
> Dear maintainer:
> 
> During a rebuild of all packages in unstable, this package failed to build.
> 
> Below you will find the last part of the build log (probably the most
> relevant part, but not necessarily). If required, the full build log
> is available here:
> 
> https://people.debian.org/~sanvila/build-logs/202608/
> 
> About the archive rebuild: The build was made on virtual machines from AWS,
> using sbuild and a reduced chroot with only build-essential packages.
> 
> If you cannot reproduce the bug please contact me privately, as I
> am willing to provide ssh access to a virtual machine where the bug is
> fully reproducible.
> 
> If this is really a bug in one of the build-depends, please use
> reassign and add an affects on src:libjjml-java, so that this is still
> visible in the BTS web page for this package.
> 
> Thanks.
> 
> --------------------------------------------------------------------------------
> [...]
> [ 90%] Building CXX object 
> native/org_argeo_jjml_llm/CMakeFiles/Java_org_argeo_jjml_llm.dir/jjml_llm_context.cpp.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/native/org_argeo_jjml_llm && 
> /usr/bin/x86_64-linux-gnu-g++ -DJava_org_argeo_jjml_llm_EXPORTS 
> -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux 
> -I/<<PKGBUILDDIR>>/native/org_argeo_jjml_llm/NotNeeded 
> -I/<<PKGBUILDDIR>>/native/include 
> -I/<<PKGBUILDDIR>>/native/include/org.argeo.jjml -isystem /usr/include/llama 
> -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -g -DNDEBUG -fPIC -pedantic-errors -MD 
> -MT 
> native/org_argeo_jjml_llm/CMakeFiles/Java_org_argeo_jjml_llm.dir/jjml_llm_context.cpp.o
>  -MF CMakeFiles/Java_org_argeo_jjml_llm.dir/jjml_llm_context.cpp.o.d -o 
> CMakeFiles/Java_org_argeo_jjml_llm.dir/jjml_llm_context.cpp.o -c 
> /<<PKGBUILDDIR>>/native/org_argeo_jjml_llm/jjml_llm_context.cpp
> [ 92%] Building CXX object 
> native/org_argeo_jjml_llm/CMakeFiles/Java_org_argeo_jjml_llm.dir/jjml_llm_sampling.cpp.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/native/org_argeo_jjml_llm && 
> /usr/bin/x86_64-linux-gnu-g++ -DJava_org_argeo_jjml_llm_EXPORTS 
> -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux 
> -I/<<PKGBUILDDIR>>/native/org_argeo_jjml_llm/NotNeeded 
> -I/<<PKGBUILDDIR>>/native/include 
> -I/<<PKGBUILDDIR>>/native/include/org.argeo.jjml -isystem /usr/include/llama 
> -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -g -DNDEBUG -fPIC -pedantic-errors -MD 
> -MT 
> native/org_argeo_jjml_llm/CMakeFiles/Java_org_argeo_jjml_llm.dir/jjml_llm_sampling.cpp.o
>  -MF CMakeFiles/Java_org_argeo_jjml_llm.dir/jjml_llm_sampling.cpp.o.d -o 
> CMakeFiles/Java_org_argeo_jjml_llm.dir/jjml_llm_sampling.cpp.o -c 
> /<<PKGBUILDDIR>>/native/org_argeo_jjml_llm/jjml_llm_sampling.cpp
> /<<PKGBUILDDIR>>/native/org_argeo_jjml_llm/jjml_llm_sampling.cpp: In function 
> ‘jlong Java_org_argeo_jjml_llm_LlamaCppSamplers_doInitPenalties(JNIEnv*, 
> jclass, jint, jfloat, jfloat, jfloat, jboolean, jboolean)’:
> /<<PKGBUILDDIR>>/native/org_argeo_jjml_llm/jjml_llm_sampling.cpp:24:59: 
> error: too few arguments to function ‘llama_sampler* 
> llama_sampler_init_penalties(int32_t, int32_t, float, float, float)’
>    24 |         llama_sampler *smpl = 
> llama_sampler_init_penalties(penalty_last_n,
>       |                               
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
>    25 |                         penalty_repeat, penalty_freq, 
> penalty_present);
>       |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from 
> /<<PKGBUILDDIR>>/native/org_argeo_jjml_llm/jjml_llm_sampling.cpp:1:
> /usr/include/llama/llama.h:1426:38: note: declared here
>  1426 |     LLAMA_API struct llama_sampler * llama_sampler_init_penalties(
>       |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> make[3]: *** 
> [native/org_argeo_jjml_llm/CMakeFiles/Java_org_argeo_jjml_llm.dir/build.make:166:
>  
> native/org_argeo_jjml_llm/CMakeFiles/Java_org_argeo_jjml_llm.dir/jjml_llm_sampling.cpp.o]
>  Error 1
> make[3]: *** Waiting for unfinished jobs....
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> make[2]: *** [CMakeFiles/Makefile2:219: 
> native/org_argeo_jjml_llm/CMakeFiles/Java_org_argeo_jjml_llm.dir/all] Error 2
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> make[1]: *** [Makefile:139: all] Error 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 INSTALL="install 
> --strip-program=true" VERBOSE=1 returned exit code 2
> make: *** [debian/rules:16: binary] Error 25
> dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
> status 2
> --------------------------------------------------------------------------------

Reply via email to