[regression] [build error on armhf] - asahi/lib/decode.c:235:15: error: format ‘%zu’ expects argument of type ‘size_t’, but argument 5 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Werror=format=]
Build error on armhf, between fbf3f64c (OK) and 26c5200a (KO).
Full build log at: https://launchpadlibrarian.net/683437059/buildlog_ubuntu-mantic-armhf.mesa_23.3git2308240600.26c520oibaf~m_BUILDING.txt.gz
Error:
../src/asahi/lib/decode.c: In function ‘__agxdecode_fetch_gpu_mem’:
../src/asahi/lib/decode.c:235:15: error: format ‘%zu’ expects argument of type ‘size_t’, but argument 5 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Werror=format=]
235 | "Overflowing to unknown memory %" PRIx64
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
236 | " of size %zu (max size %zu) in %s:%d\n",
237 | gpu_va, size, mem->size - (gpu_va - mem->ptr.gpu), filename,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint64_t {aka long long unsigned int}
../src/asahi/lib/decode.c:236:41: note: format string is defined here
236 | " of size %zu (max size %zu) in %s:%d\n",
| ~~^
| |
| unsigned int
| %llu
cc1: some warnings being treated as errors