openssl fails with -ffast-math In my case this is visible with firefox or thunderbird, which both coredump. These guys had a similar problem: http://www.bsdforums.org/forums/archive/index.php/t-20634.html Phil Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 Pentium III (Coppermine) Gentoo Base System version 1.12.5 Last Sync: Tue, 26 Sep 2006 14:00:09 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.4.3-r4, 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=pentium3 -fomit-frame-pointer -ffast-math -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-Os -march=pentium3 -fomit-frame-pointer -ffast-math -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://gentoo.channelx.biz/ http://gentoo.cs.lewisu.edu/gentoo/ http://gentoo.gg3.net/" LINGUAS="en ja" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/portage-xgl" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac acpi alsa audiofile berkdb bidi bitmap-fonts bogofilter bzip2 bzlib cairo cdparanoia cdr cjk cli crypt dbus dlloader dri dts dvd dvdr dvdread eds elibc_glibc encode esd exif fam ffmpeg fftw firefox flac fortran ftp gdbm gif gnome gnutls gphoto2 gpm gtk hal iconv imagemagick imap immqt input_devices_keyboard input_devices_mouse isdnlog jack java jpeg kernel_linux lcms ldap libg++ linguas_en linguas_ja mad maildir mikmod mmap mmx mmxext mp3 mpeg mplayer mule ncurses nls nntp nptl nptlonly nsplugin nvidia offensive ogg opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline real reflection sasl session shorten sndfile sox speex spell spl sse ssl stream subtitles svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode upnp usb userland_GNU video_cards_nvidia video_cards_vesa vlm vorbis widescreen wifi win32codecs wmf wxwindows xine xml xorg xosd xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Sorry, version is dev-libs/openssl-0.9.8c-r2
Sigh, over and over again - don't stick -ffast-math into your C[XX]FLAGS, it's a stupid global flag. man gcc: <snip> -ffast-math This option should never be turned on by any -O option since it can result in incorrect output for programs which depend on an exact implementation of IEEE or ISO rules/specifications for math functions. </snip>
ive got a great idea ... dont use -ffast-math globally