https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105614
gagan sidhu (broly) <broly at mac dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |broly at mac dot com --- Comment #15 from gagan sidhu (broly) <broly at mac dot com> --- we can always count on the scandinavians to be sensible and provide efficient solutions. the fix on 12.2 is to apply the changes here: https://github.com/gcc-mirror/gcc/commit/ee915c72da2caf92697dbedf0d9d9730ce9aca7a and also: https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=9f943b2446f2d0 together, the problem is fixed. i had the exact same issue plus a bunch of things with lstat/stat. all of them have now gone away.