Created attachment 402876 [details] autoconf-all-32bit_off_t_fix.patch This is an upstream issue. I'm unaware if upstream is aware of the issue. All versions in tree including 9999 but excluding 2.13 are affected. To detect the size of off_t, autoconf does a bitshift of 62 when dealing with both 64bit and 32 bit code. This is handled appropriately by shifting by 31 twice. The attached patch is from Debian.
it does not look like Debian notified upstream. this really should be sent there first. also worth noting: any package using 32bit off_t in Gentoo is broken and needs to be fixed in which case this report is mostly moot :). see bug 471102 for details.
Just to do it formally have you sent this / notified upstream? Otehr potential viewers will also know.
commit a1d8293f3bfa2516f9a0424e3a6e63c2f8e93c6e Author: Paul Eggert <eggert@cs.ucla.edu> Date: Mon Jun 29 16:51:08 2020 -0700 Fix undefined behavior in AC_SYS_LARGEFILE * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES): Avoid undefined behavior on platforms where off_t is 32 bits. See: https://bugs.debian.org/742780 $ git tag --contains a1d8293f3bfa2516f9a0424e3a6e63c2f8e93c6e v2.69b v2.69c v2.69d v2.69e v2.70 v2.71 v2.72 v2.72a v2.72b v2.72c v2.72d v2.72e so, fixed in autoconf-2.70.