#1144173 libjjml-java: FTBFS: /<<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)’

#1144173#5
Date:
2026-08-11 23:16:22 UTC
From:
To:
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
--------------------------------------------------------------------------------

#1144173#10
Date:
2026-08-12 09:46:34 UTC
From:
To:
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.

#1144173#15
Date:
2026-08-12 09:46:34 UTC
From:
To:
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.

#1144173#20
Date:
2026-08-16 17:15:01 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libjjml-java, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1144173@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mathieu Baudier <mbaudier@argeo.org> (supplier of updated libjjml-java package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 16 Aug 2026 10:09:55 +0000
Source: libjjml-java
Architecture: source
Version: 1.1.18-5
Distribution: unstable
Urgency: medium
Maintainer: Mathieu Baudier <mbaudier@argeo.org>
Changed-By: Mathieu Baudier <mbaudier@argeo.org>
Closes: 1144173
Changes:
 libjjml-java (1.1.18-5) unstable; urgency=medium
 .
   * Apply upstream commit to work around llama.cpp b10344 API breakage
     (Closes: #1144173)
   * Fix various lintian warnings
Checksums-Sha1:
 9c51309c607c6b7545d2506f23b9099fb6d5a810 2070 libjjml-java_1.1.18-5.dsc
 fef1d1597e94af1a7779544d84d50c1b527c4394 12892 libjjml-java_1.1.18-5.debian.tar.xz
 eb2baf82082b4600e15174335d0ac75fd3f21b31 6886 libjjml-java_1.1.18-5_source.buildinfo
Checksums-Sha256:
 5ccb49a4e02fd3f438481e3c190a6a82e07af3484569116f84d2193ab6a11cd9 2070 libjjml-java_1.1.18-5.dsc
 81921e1a7edfad577cefa2d346584ce83c7d658825e3dffb0d38e11b299e17d1 12892 libjjml-java_1.1.18-5.debian.tar.xz
 5df95e8fadb1177acbfd137a4c58d1255ff96e60a87b089ad3c5d4bde8e8ba86 6886 libjjml-java_1.1.18-5_source.buildinfo
Files:
 dd723925aa2122d4c7715c31ac838947 2070 java optional libjjml-java_1.1.18-5.dsc
 71836cf554890dfaf6dc9864ea1b64ba 12892 java optional libjjml-java_1.1.18-5.debian.tar.xz
 e17135b58b2e45e8e5f9597c9dfe2165 6886 java optional libjjml-java_1.1.18-5_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEQZ9+mkfDq5UZ8bCjOZU6N95Os2sFAmqB6YQACgkQOZU6N95O
s2se7hAAgdy+rxNXRmeQ9GHKyxfV2vk4i7V8s5i8hkMlC7GFdlfIBT98EfA1OKer
hSh1IG2tu+RsSPoDhbeqJ1Dk/rf0j5boIb+w0AJyzeesO9UCQ2w9IIupytWNysga
uD5G1+twyoN6wHzamveKCz2MQGmw9S66eKkT1PRlGsObD5m5SO8XiY8OXeVgFfFz
bB05zOILzmdzkayVAE5WgQVC8Q6MNN9acP4Mg8RjJ9OFijCvz1Phaq9TGlysdAAl
Oh7kz5tBJLqQe5+b2jXB8/ASadMfWMsCLYEfD+jRvYs6yh3eS90hifByxoPeFG+d
pv57EOqntTpJV9/uvgMfqpjYi70dk4uX5CvA8eGH0mEktgGcWAsXIIzAup1iNG9x
Epvmmmp+1FZ4dS8BupXHD6Y9eoSfznTLbvQFj9FTHnjs0uBbufVMFdnFgv5y6nww
dwTgWMm+wjhYFGnYKpHFqQh0Y0IxGno1c5ZfPnwzwlROqy/NuG/zDC49Q2pux2jm
ff74Ap7ENr+eSltCzVnH6ndu8+Qf2/qWcyD2JReA/xB274aZtmLjXNgg2Jo0bYh/
U1kbEarWVLO0kQFFx9SNRGYjb2SDag4yfmeo2m+UgtV/eYueTvsy1YYUHVzRR57n
CUsYXAP9tJScB+iei8rqQrTqXOtKsN/QYmGO9vAIFDG3pdajGxM=
=xluT
-----END PGP SIGNATURE-----