Re: [Mingw-w64-public] UCRT access() function issue

2021-10-23 Thread Liviu Ionescu
> On 24 Oct 2021, at 01:38, Martin Storsjö 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

Re: [Mingw-w64-public] UCRT access() function issue

2021-10-23 Thread Martin Storsjö
On Sat, 23 Oct 2021, Jeremy Drake wrote: On Sat, 23 Oct 2021, Martin Storsjö wrote: On Thu, 8 Apr 2021, Martin Storsjö wrote: I guess the least risky solution would be to enable the "__USE_MINGW_ACCESS" codepath unconditionally if using UCRT - what do you think? (One could also consider to

Re: [Mingw-w64-public] UCRT access() function issue

2021-10-23 Thread Jeremy Drake via Mingw-w64-public
On Sat, 23 Oct 2021, Martin Storsjö wrote: > On Thu, 8 Apr 2021, Martin Storsjö wrote: > > > I guess the least risky solution would be to enable the "__USE_MINGW_ACCESS" > > codepath unconditionally if using UCRT - what do you think? > > > > (One could also consider to change the implementation of

Re: [Mingw-w64-public] UCRT access() function issue

2021-10-23 Thread Martin Storsjö
On Thu, 8 Apr 2021, Martin Storsjö wrote: This used to be an issue with msvcrt.dll too, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33281. However, when I try out your test snippet (extended to test the directory both with and without a trailing slash, and with a regular file) I can't rep

Re: [Mingw-w64-public] UCRT access() function issue

2021-04-08 Thread Jeremy Drake via Mingw-w64-public
On Thu, 8 Apr 2021, Martin Storsjö wrote: > Hi, > > Nitpicky sidetrack - doesn't this fail to build for you unless you include > errno.h too? No, it built without so much as a warning with clang and gcc for me. ___ Mingw-w64-public mailing list Mingw-w6

Re: [Mingw-w64-public] UCRT access() function issue

2021-04-07 Thread Martin Storsjö
Hi, On Wed, 7 Apr 2021, Jeremy Drake via Mingw-w64-public wrote: For a few months, I've been working around an issue building ncurses with clang targeting UCRT (https://github.com/msys2/CLANG-packages/issues/4), and recently the same issue had to be worked around for GCC targeting UCRT. I fina

[Mingw-w64-public] UCRT access() function issue

2021-04-07 Thread Jeremy Drake via Mingw-w64-public
Hello, For a few months, I've been working around an issue building ncurses with clang targeting UCRT (https://github.com/msys2/CLANG-packages/issues/4), and recently the same issue had to be worked around for GCC targeting UCRT. I finally got around to debugging it, and found that the call at ht