https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113749
--- Comment #4 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 57516 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57516&action=edit Proposed fix Here is a proposed patch. The bug fix changes the FIO module to use the target O_RDONLY, O_WRONLY, SEEK_SET and SEEK_END (now available from the module wrapc). I've rebuilt the bootstrap tools mc and pge as they have their own wrapc and C translations of FIO.