It looks like you don't have a usable assembler: /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/as: -Qy: not found Try looking in /export/home/guru/OpenSource/gcc-4.9.2-obj/./gcc/as to see what ORIGINAL_AS_FOR_TARGET is set to. Also, you're making your life difficult by installing gmp, mpfr and mpc like that. See https://gcc.gnu.org/wiki/InstallingGCC and use the contrib/download/prerequisites script.