https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101784
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #7) > (In reply to cqwrteur from comment #6) > > (In reply to Andrew Pinski from comment #5) > > > Dup of bug 101785 really. There is no supported at all included. > > > > > > *** This bug has been marked as a duplicate of bug 101785 *** > > > > but i am sure __NR_newfstatat does not exist on linux kernel header files > > for aarch64 anymore. > > It does. > asm-generic/unistd.h: > > #define __NR3264_fstatat 79 > __SC_3264(__NR3264_fstatat, sys_fstatat64, sys_newfstatat) > > > #define __NR_newfstatat __NR3264_fstatat This is 4.14's headers but I really doubt they have changed that much since then.