https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64919
--- Comment #14 from John Buddery <jvb at cyberscience dot com> --- I did get a working 4.9.2 build, with the workaround from my earlier comment. It's a 32 bit build, bootstrapped with the hp 4.6.2 gcc distribution, my config line was: $ ../gcc-4.9.2/configure --disable-libgomp --with-as=/opt/hp-gcc/bin/as --enable-languages=c,c++ --prefix=/usr/local/gcc-4.9.2 --with-gmp=/usr/local/gcc-4.9.2 --with-mpc=/usr/local/gcc-4.9.2 --with-mpfr=/usr/local/gcc-4.9.2 I don't remember any errors in libstdc++. I would recommend installing gawk if you haven't already - the HP awk can cause issues when building gcc.