https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119218
--- Comment #4 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Sam James from comment #3) > It's the GNU extension basename. Right.. but we build GCC on some non-GNU targets.. (and actually, we need dirname() not basename()) ... I guess the answer is to add dirname() to libiberty and #include liberty.h instead of libgen.h).