https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70428
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- I don't think -fdebug-prefix-map is meant to cover this case; you're meant to use it with paths in the form in which they appear in debug info, which means passing such an option with the pwd (and options with absolute -I paths etc.), not an option with a combination of the pwd and a path passed to the compiler.