Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14953 - The postgresql ebuild fails during configure if "-ffast-math" is in CFLAGS
Summary: The postgresql ebuild fails during configure if "-ffast-math" is in CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
: 16720 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-02 00:42 UTC by John Costigan
Modified: 2007-09-22 23:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Costigan 2003-02-02 00:42:08 UTC
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"
Comment 1 Chris Smith 2003-03-16 22:11:34 UTC
Just put: 
 
filter-flags -ffast-math 
 
at the beginning of the postgres ebuild. Could some Dev commit that to CVS please? 
Thanks 
Chris. 
Comment 2 Masatomo Nakano (RETIRED) gentoo-dev 2003-03-16 22:51:57 UTC
I fixed this bug. (postgresql-7.3.ebuild, postgresql-7.3.2.ebuild)
Thanks.
Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2003-03-16 22:53:57 UTC
*** Bug 16720 has been marked as a duplicate of this bug. ***