https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68562
--- Comment #6 from Ian Lance Taylor <ian at airs dot com> --- Your build is passing the option "-B/usr/local/x86_64-pc-linux-gnu/lib/"; why? You have an old version of the Go libraries installed under that directory. Either remove the -B option or remove the old version of the Go libraries.