> On 24 Oct 2021, at 01:38, Martin Storsjö <mar...@martin.st> wrote: > > ... it's quite uncommon, and GCC sets the define for the workaround itself.
These days I got bitten by this issue while rebuilding the arm-none-eabi-gcc 10.3, after upgrading my build environment to GCC 11 & mingw 9 with UCRT. It took me several hours to diagnose why gcc.exe was not able to start cc1.exe, to finally identify that access() fails when called with the X_OK flag. Adding -D__USE_MINGW_ACCESS to CPPFLAGS during GCC configure fixed the problem. I can't speak for other projects, but since all my binary xPack packages include Windows variants, and all are built with mingw-w64 on Linux, I think it would be safer to add -D__USE_MINGW_ACCESS to all builds, since I have no control on how third party applications call access(). So, for my use case, I can also live with this workaround, but perhaps enabling this option by default when using UCRT might save some time for others. Or at least it might be better documented in an easy to find location, like the project READMEs. Regards, Liviu _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public