https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112726
--- Comment #1 from Giuliano Procida <gprocida at google dot com> --- Much of the initial report can be ignored, `llvm-dwarfdump` is buggy for DWARF 5 before version 15. Here's a much simpler statement: gcc -gdwarf-5 -fdebug-prefix-map=$(pwd)= -c foo.c is broken and the prefix is not removed from the DWARF compilation directory / directory used for DW_AT_decl_file. For Clang, DWARF 4, a slightly shorter prefix or a source file in subdirectory, things work better.