https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120905
--- Comment #14 from TCH <tch at protonmail dot com> --- The resulting binary however has a problem: it tries to use the non-GNU assembler under '/usr/ccs/bin/as', instead of using the GNU assembler under '/usr/local/as', despite being configured to use the GNU assembler and thus, any compilation with it will fail: /usr/ccs/bin/as: error: unknown option '3' /usr/ccs/bin/as: error: unknown option '2' usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-q] [-s] [-S] [-K {pic,PIC}] [-o objfile] [-L] [-T] [-P [[-Yc,path] [-Ipath] [-Dname] [-Dname=def] [-Uname]]...] [-m [-Ym,path]] [-n] [-ul] [-xF] [-m32] [-m64] [-xarch={v7,v8,v8a,v8plus,v8plusa,v8plusb,v9,v9a,v9b,sparc,sparcvis, sparcvis2,sparcfmaf,sparcima}] [-xcode={pic13,pic32}] file.s... This of course can be workarounded by backing up '/usr/ccs/bin/as' and symlinking '/usr/local/bin/as' to there, but it should work without this. Note: '/usr/local/bin' has higher priority in '$PATH' than '/usr/ccs/bin'. Further note: to use it, first export LD_LIBRARY_PATH="$LD_LIBRARY_PATH"':/opt/csw/lib/' needs to be done, or it will die: ld.so.1: cc1: fatal: libmpc.so.3: open failed: No such file or directory gcc: internal compiler error: Killed (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. This also means, that this exporting line must be moved from behind to before the '../configure' line, if one tries to compile GCC6 with itself.