Skip to content

v16.4 — Builds cleanly with GCC 15 and cppcheck 2.19

Choose a tag to compare

@danmcleran danmcleran released this 26 Oct 15:14
· 66 commits to master since this release
4f65f07

v16.4 — Builds cleanly with GCC 15 and cppcheck 2.19

GitHub moved its ubuntu-latest runner image to Ubuntu 26.04, which brings GCC 15.2 and cppcheck 2.19. A scheduled CodeQL build failed overnight with no code change, and a run of every workflow on the new image turned up three more failures. This release fixes all four, adds a way to run the CI gates locally with the runner's toolchain, and makes the CI package install retry against a second mirror.

Fixes (#232)

  • Softmax attention under GCC 15 at -O3. QCausalAttentionSoftmax1D::step and QCrossAttentionSoftmax1D::query loop over the KV cache's length, which append() never lets exceed the cache's capacity. GCC 15 at -O3 cannot see that bound and reports -Wstringop-overflow on the stores into the caller's scratch buffers, so a -Werror build of code using these layers failed (the seq2seq_softmax_int8 release build did). The loops are now bounded by the capacity, which changes nothing for a cache filled through append().
  • QLearningEnvironment::getRandomActionForState removed. It called a method that only user-written derived environments declare, and nothing ever called it, so older compilers never instantiated it. GCC 15 rejects it at definition time. QLearner already chooses random valid actions through the environment; the buffer only this method used went with it.
  • cppcheck 2.19 parse error in qtree.hpp. The comparisons written inline as template arguments in QCompactTree are now named constants; the selected types are unchanged.
  • fuzz_qlstm under GCC 15. A byte-at-a-time fill loop triggered a false -Wstringop-overflow at -O3, failing the cross-build agreement gate. It is now a bulk read with the same semantics; every corpus input produces the same output as before.

Run the CI gates in the runner's toolchain (#233)

  • make check-ci-image runs make check, cppcheck, header-selfcheck, check-cxx14, check-clang and make -C fuzz agree inside a podman container with the same Ubuntu 26.04 packages the workflows install, on a copy of the working tree. tools/ci-image.sh <command> runs any other command there.
  • The image enables the amd64v3 archive variant, as the runner does. That variant's GCC defaults to -march=x86-64-v3 (AVX2), and the fuzz_qlstm warning above appears only with it.
  • Shown to fail before it was trusted: on the commit before #232, the container reproduces all four CI failures with the same diagnostics.

CI reliability (#234)

  • The runner's Azure apt mirror repeatedly stalled on large packages until every install attempt timed out. After a failed first attempt, the shared apt-install action now switches to archive.ubuntu.com. Verified on a real runner with a forced timeout.

Documentation, architecture guides, and example gallery: https://danmcleran.github.io/tinymind/

Full changelog: v16.3...v16.4