On Ubuntu 24.04 with glibc 2.39:
0compiling ../3rdparty/zlib/src/gzclose.c
1In file included from /usr/arm-linux-gnueabihf/include/features.h:394,
2 from /usr/arm-linux-gnueabihf/include/bits/libc-header-start.h:33,
3 from /usr/arm-linux-gnueabihf/include/stdio.h:28,
4 from ../3rdparty/zlib/src/gzguts.h:40,
5 from ../3rdparty/zlib/src/gzclose.c:6:
6/usr/arm-linux-gnueabihf/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
7 26 | # error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
8 | ^~~~~
Some similar issues in https://bugreports.qt.io suggest to switch from the builtin zlib
to a system one. But that doesn’t look like an option for us.