https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98340
--- Comment #5 from David Binderman <dcb314 at hotmail dot com> --- (In reply to Nathan Sidwell from comment #4) > Created attachment 49789 [details] > try this Thanks. That seemed to build ok. > I tried building with clang, but it barfed about invalid utf8 in libiberty. I got an ok build with clang of gcc trunk hash 6f8486523f61bf0a, with your patch. I am no expert, but maybe you could share the error message. These problems frequently go away after some random tinkering with locale.