codepage.c: In function `to_dos': codepage.c:209: internal error: Floating point exception Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make: *** [codepage.o] ?????? 1 !!! ERROR: sys-fs/mtools-3.9.8-r1 failed. !!! Function src_compile, Line 17, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: emerge mtools Actual Results: blah... blah...blah... gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i486 -DVENDOR_pc -DOS_linux_gnu -O3 -march=pentium4 -fprefetch-loop-arrays -funroll-loops -pipe -m486 -Wall -I. -I. -c buffer.c `-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead. gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i486 -DVENDOR_pc -DOS_linux_gnu -O3 -march=pentium4 -fprefetch-loop-arrays -funroll-loops -pipe -m486 -Wall -I. -I. -c codepage.c `-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead. codepage.c: In function `to_dos': codepage.c:209: internal error: Floating point exception Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make: *** [codepage.o] ?????? 1 !!! ERROR: sys-fs/mtools-3.9.8-r1 failed. !!! Function src_compile, Line 17, Exitcode 2 !!! (no error message) Expected Results: emerged mtools of course :) Portage 2.0.50 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-gentoo) ================================================================= System uname: 2.6.1-gentoo i686 Intel(R) Celeron(R) CPU 1.70GHz Gentoo Base System version 1.4.3.10 Autoconf: sys-devel/autoconf-2.58 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -fprefetch-loop-arrays -funroll-loops -pipe" CHOST="i486-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -fprefetch-loop-arrays -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa arts avi berkdb crypt cups encode foomaticdb gdbm gif gtk2 imlib java jpeg kde libg++ libwww linguas_ru mad mikmod motif mpeg ncurses nls oggvorbis opengl pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xv zlib"
I think the combination of CHOST="i486-pc-linux-gnu" and CXXFLAGS="-O3 -march=pentium4 -fprefetch-loop-arrays -funroll-loops -pipe" is wrong. You should set CHOST to "i686-pc-linux-gnu". But it might be that you have to recompile your whole system against this, because this settings are VERY sensitive!
*** This bug has been marked as a duplicate of 40947 ***