Repository navigation
v16.4 — Builds cleanly with GCC 15 and cppcheck 2.19
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::stepandQCrossAttentionSoftmax1D::queryloop over the KV cache's length, whichappend()never lets exceed the cache's capacity. GCC 15 at-O3cannot see that bound and reports-Wstringop-overflowon the stores into the caller's scratch buffers, so a-Werrorbuild of code using these layers failed (theseq2seq_softmax_int8release build did). The loops are now bounded by the capacity, which changes nothing for a cache filled throughappend(). QLearningEnvironment::getRandomActionForStateremoved. 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.QLearneralready 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 inQCompactTreeare now named constants; the selected types are unchanged. fuzz_qlstmunder GCC 15. A byte-at-a-time fill loop triggered a false-Wstringop-overflowat-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-imagerunsmake check,cppcheck,header-selfcheck,check-cxx14,check-clangandmake -C fuzz agreeinside 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
amd64v3archive variant, as the runner does. That variant's GCC defaults to-march=x86-64-v3(AVX2), and thefuzz_qlstmwarning 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-installaction now switches toarchive.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