https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68562
--- Comment #7 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- (In reply to Ian Lance Taylor from comment #6) > Your build is passing the option "-B/usr/local/x86_64-pc-linux-gnu/lib/"; > why? I have no idea. > 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. There is no /usr/local/x86_64-pc-linux-gnu directory on my system: markus@x4 tmp % ll /usr/local/ total 8.0K drwxr-xr-x 1 root root 96 Nov 11 18:16 . drwxr-xr-x 1 markus markus 168 Jan 18 08:37 .. drwxr-xr-x 1 root root 1.6K Feb 9 20:30 bin drwxr-xr-x 1 root root 40 Oct 25 19:53 etc drwxr-xr-x 1 root root 134 Apr 3 2015 include -rw-r--r-- 1 root root 0 Nov 18 2010 .keep lrwxrwxrwx 1 root root 5 Aug 27 13:30 lib -> lib64 drwxr-xr-x 1 root root 4.0K Feb 9 20:30 lib64 drwxr-xr-x 1 root root 48 Nov 18 16:49 libexec lrwxrwxrwx 1 root root 9 Aug 27 13:30 man -> share/man drwxr-xr-x 1 root root 50 Jan 21 10:46 sbin drwxr-xr-x 1 root root 500 Nov 21 10:46 share drwxr-xr-x 1 root root 10 Nov 18 2010 src markus@x4 tmp %