https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103604
--- Comment #10 from Iain Buclaw <ibuclaw at gdcproject dot org> --- (In reply to YunQiang Su from comment #6) > > This patch can solve this problem: of course, we need to back port it to > gcc-10/gcc-11 also. > > The problem is due to that: > N32 and N64 uses different "struct stat" > In the older version, __USE_FILE_OFFSET64 may be not defined for N64 > while now, it is defined. Is this patch backwards compatible though? Perhaps the value of `__USE_FILE_OFFSET64` should instead be fixed to match that of the target.