https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103604
--- Comment #11 from YunQiang Su <syq at debian dot org> --- (In reply to Iain Buclaw from comment #10) > (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. ohhh. you are right. I misunderstand this problem.