If "-ffast-math" is in CFLAGS, the "configure" script in the postgresql package detects it and fails with the following error: configure: error: do not put -ffast-math in CFLAGS !!! ERROR: dev-db/postgresql-7.3.1 failed. !!! Function src_compile, Line 82, Exitcode 1 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. CFLAGS=-ffast-math emerge postgresql Actual Results: configure: error: do not put -ffast-math in CFLAGS !!! ERROR: dev-db/postgresql-7.3.1 failed. !!! Function src_compile, Line 82, Exitcode 1 !!! (no error message) Expected Results: I expect the postgresql ebuild to strip the "-ffast-math" flag from CFLAGS. Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r3) ================================================================= System uname: 2.4.20 i686 AMD Athlon(tm) MP 1800+ GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://gentoo.linux.no/" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="mikmod nls xv slang tetex guile sdl tcpd -3dfx 3dnow aalib -acl -acpi -afs -alsa apache2 -apm -arts avi -berkdb bonobo -cdr -cjk crypt cups dga -directfb doc dvd encode esd -evo -fbcon flash gb gd gdbm -ggi ggz gif gnome gphoto2 gpm -gps gtk gtk2 gtkhtml -icc -icc-pgo imlib -innodb ipv6 java -jikes jpeg -kde ldap libg++ libgda libwww -matrox -maildir mbox mmx motif mozilla moznomail moznoirc moznocompose mpeg -mysql -nas ncurses nocardbus -oav -oci8 -odbc oggvorbis opengl oss pam -pcmcia pda pdflib perl plotutils png postgres python -qt -qtmt quicktime readline samba -scanner spell sse ssl -static svga tcltk tiff truetype wmf X xml xml2 -xmms zlib x86 acpi4linux" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -s -ffast-math -mfpmath=sse -mmmx -msse -m3dnow -fforce-addr -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -fprefetch-loop-arrays" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -s -ffast-math -mfpmath=sse -mmmx -msse -m3dnow -fforce-addr -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -fprefetch-loop-arrays" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync2.us.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Just put: filter-flags -ffast-math at the beginning of the postgres ebuild. Could some Dev commit that to CVS please? Thanks Chris.
I fixed this bug. (postgresql-7.3.ebuild, postgresql-7.3.2.ebuild) Thanks.
*** Bug 16720 has been marked as a duplicate of this bug. ***