https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87808
--- Comment #8 from leonard at lausen dot nl --- Is there any blocker preventing the patch to be merged? This bug can be easily reproduced by masquerading gcc binary with ccache compiler cache. ln -s ccache /usr/local/bin/gcc See https://ccache.dev/manual/4.2.1.html#_run_modes Then % which gcc /usr/lib/ccache/bin/gcc % ./tut01-hello-world ld: cannot find crtbeginS.o: No such file or directory ld: cannot find -lgcc ld: cannot find -lgcc_s libgccjit.so: error: error invoking gcc driver NULL result% and % PATH=/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin which gcc /usr/bin/gcc % PATH=/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin ./tut01-hello-world hello world