[build failure] [armhf] - error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
Debian/Ubuntu are moving to 64-bit time_t on 32-bit architectures to avoid the 'year 2038 problem', see https://wiki.debian.org/ReleaseGoals/64bit-time
Now armhf fails to build.
Full error log at: https://launchpadlibrarian.net/716890807/buildlog_ubuntu-noble-armhf.mesa_24.1~git2403010600.6e33b3~oibaf~n_BUILDING.txt.gz
Error:
In file included from /usr/include/features.h:394,
from /usr/include/arm-linux-gnueabihf/bits/libc-header-start.h:33,
from /usr/include/stdio.h:28,
from ../src/drm-shim/drm_shim.c:36:
/usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
26 | # error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
| ^~~~~
../src/drm-shim/drm_shim.c: In function ‘file_override_open’:
../src/drm-shim/drm_shim.c:303:10: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
303 | write(fd, file_overrides[i].contents,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
304 | strlen(file_overrides[i].contents));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~