Re: win_flex.exe (and likely win_bison.exe) isn't concurrency safe

2022-09-03 Thread Andrew Dunstan
On 2022-09-02 Fr 18:43, Andres Freund wrote: > Hi, > > building PG with meson on windows I occasionally got weird errors around > scanners. Sometimes scanner generation would fail with > > win_flex.exe: error deleting file > C:\Users\myadmin\AppData\Local\Temp\~flex_out_main_2 > > sometimes th

Re: win_flex.exe (and likely win_bison.exe) isn't concurrency safe

2022-09-02 Thread Julien Rouhaud
On Sat, Sep 03, 2022 at 10:33:43AM +0530, Amit Kapila wrote: > On Sat, Sep 3, 2022 at 4:13 AM Andres Freund wrote: > > For the meson build it is trivial to "address" this by setting FLEX_TMP_DIR > > to > > a private directory (which we already need to deal with lex.backup), > > something > > sim

Re: win_flex.exe (and likely win_bison.exe) isn't concurrency safe

2022-09-02 Thread Amit Kapila
On Sat, Sep 3, 2022 at 4:13 AM Andres Freund wrote: > > building PG with meson on windows I occasionally got weird errors around > scanners. Sometimes scanner generation would fail with > > win_flex.exe: error deleting file > C:\Users\myadmin\AppData\Local\Temp\~flex_out_main_2 > > sometimes th

win_flex.exe (and likely win_bison.exe) isn't concurrency safe

2022-09-02 Thread Andres Freund
Hi, building PG with meson on windows I occasionally got weird errors around scanners. Sometimes scanner generation would fail with win_flex.exe: error deleting file C:\Users\myadmin\AppData\Local\Temp\~flex_out_main_2 sometimes the generated scanner would just be corrupted. I was confused