https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80719
--- Comment #3 from joris <joriswu at gmail dot com> --- Further analysis shows the conflict is that the source has 'const' yet the header has no 'const' qualifier for struct demangle_component Unpacking binutils into the gcc source tree is what the install guide at https://gcc.gnu.org/install/download.html suggests. If building binutils separately, the resulting libiberty.a is not compatible with gcc's expectations, likely related to relocatability. P.S. the duplicate bug is because bugzilla showed a gateway timeout at submit.