https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119266
--- Comment #8 from Sam James <sjames at gcc dot gnu.org> --- I may well be getting mixed up then, sorry. Are the paths meant to be relative to the .json file? The file for me is at /usr/lib/gcc/x86_64-pc-linux-gnu/15/libstdc++.modules.json, and std.cc is at /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/std.cc, so for that: $ realpath --relative-to=/usr/lib/gcc/x86_64-pc-linux-gnu/15 /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/std.cc include/g++-v15/bits/std.cc