My settings were taken from the comment here: http://stackoverflow.com/questions/9450394/how-to-install-gcc-from-scratch-with-gmp-mpfr-mpc-elf-without-shared-librari
--disable-shared --disable-bootstrap --disable-libstdcxx-pch --enable-languages=all --enable-libgomp --enable-lto --enable-threads=posix --enable-tls --with-gmp=/tmp/gcc --with-mpfr=/tmp/gcc --with-mpc=/tmp/gcc --with-libelf=/tmp/gcc --with-fpmath=sse When I tried supplying "--with-fpmath=387" instead, I came across the problem that was in my original question. On 12 January 2014 02:57, H.J. Lu <hjl.to...@gmail.com> wrote: > On Sat, Jan 11, 2014 at 6:54 PM, Denis K <deniskravt...@gmail.com> wrote: >> Hello, >> >> I've been trying to compile gcc 4.5.4 from the sources using >> --with-fpmath=387 but I'm getting this error: "Invalid >> --with-fpmath=387". I looked in the configs and found that it doesn't >> support this option: >> >> case ${with_fpmath} in >> avx) >> tm_file="${tm_file} i386/avxmath.h" >> ;; >> sse) >> tm_file="${tm_file} i386/ssemath.h" >> ;; >> *) >> echo "Invalid --with-fpmath=$with_fpmath" 1>&2 >> exit 1 >> >> Basically, I started this whole thing because I need to supply a >> statically linked executable for an old target platform (in fact, it's >> an old Celeron but without any SSE2 instructions that are apparently >> used by libstdc++ by DEFAULT). The executable crashes at the first > > How did you configure GCC? > > > -- > H.J.