https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #3 from Marco Trevisan <mail at 3v1n0 dot net> --- Created attachment 50775 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50775&action=edit strace.log This is crazy, as even according to strace the file isn't there... But it is and it's valid. ❯ ls -lht _build/libgjs-jsapi.a.p total 119M -rw-rw-r-- 1 marco marco 119M mag 7 16:20 gjs_pch.hh.gch [pid 1168435] openat(AT_FDCWD, "./gjs_pch.hh", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 1168435] openat(AT_FDCWD, "libgjs.so.0.0.0.p/gjs_pch.hh", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 1168435] openat(AT_FDCWD, "../gjs_pch.hh", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 1168435] openat(AT_FDCWD, "/opt/dev/GNOME/include/glib-2.0/gjs_pch.hh", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 1168435] openat(AT_FDCWD, "/opt/dev/GNOME/lib/glib-2.0/include/gjs_pch.hh", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 1168435] openat(AT_FDCWD, "/opt/dev/GNOME/include/gobject-introspection-1.0/gjs_pch.hh", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 1168435] openat(AT_FDCWD, "/opt/dev/GNOME/include/pixman-1/gjs_pch.hh", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) Same is also running manually (with CWD in _build directory): strace -f g++ -v -Ilibgjs-jsapi.a.p -I. -I.. -I/opt/dev/GNOME/include/glib-2.0 -I/opt/dev/GNOME/lib/glib-2.0/include -I/opt/dev/GNOME/include/gobject-introspection-1.0 -I/opt/dev/GNOME/include/pixman-1 -I/usr/include/cairo -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++17 -fno-rtti -g -fno-strict-aliasing -Wno-variadic-macros -Wno-missing-field-initializers -fno-semantic-interposition -fPIC -pthread -isystem/opt/dev/GNOME/include/sysprof-4 -include /usr/include/mozjs-78/js/RequiredDefines.h -isystem /usr/include/mozjs-78 -DGJS_COMPILATION '-DGJS_JS_DIR="/usr/local/share/gjs-1.0"' '-DPKGLIBDIR="/usr/local/lib/x86_64-linux-gnu/gjs"' '-DG_LOG_DOMAIN="Gjs"' -fpch-preprocess -include gjs_pch.hh -MD -MQ libgjs-jsapi.a.p/gjs_jsapi-dynamic-class.cpp.o -MF libgjs-jsapi.a.p/gjs_jsapi-dynamic-class.cpp.o.d -o libgjs-jsapi.a.p/gjs_jsapi-dynamic-class.cpp.o -c ../gjs/jsapi-dynamic-class.cpp