Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293618 - emerge dev-db/postgresql-base dies during compile
Summary: emerge dev-db/postgresql-base dies during compile
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-18 13:09 UTC by khan1521
Modified: 2009-11-19 11:36 UTC (History)
0 users

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 khan1521 2009-11-18 13:09:38 UTC
during a "normal" (i know,i know,theres no normal emerge)

$ emerge -v dev-db/postgresql-base dev-db/postgresql-server

dies at step 3 of 4 ( see below )
several tries (+- python).


Reproducible: Always

Steps to Reproduce:
before, i added lines to /etc/portage/package.keywords
like mentioned in the gentoo / postgre wiki

<dev-db/postgresql-base-8.5
<dev-db/postgresql-server-8.5



1. 
>>> Emerging (1 of 4) dev-python/egenix-mx-base-3.1.2
.... worked
>>> Emerging (2 of 4) app-admin/eselect-postgresql-0.3
.... worked
>>> Emerging (3 of 4) dev-db/postgresql-base-8.4.1





searched the Bugzilla base but found no entry.
i hope its not the -ffast-math switch in /etc/make.conf
that happened in 2003 and was declared fixed.
help.


---------------
content of /var/tmp/portage/dev-db/postgresql-base-8.4.1/temp/build.log

>>> Unpacking source...
>>> Unpacking postgresql-8.4.1.tar.bz2 to /var/tmp/portage/dev-db/postgresql-base-8.4.1/work
 ^[[32;01m*^[[0m Applying postgresql-8.4-common.patch ...
^[[A^[[177C  ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Applying postgresql-8.4-base.patch ...
^[[A^[[177C  ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
 ^[[32;01m*^[[0m Running autoconf ...
^[[A^[[177C  ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m
>>> Source unpacked in /var/tmp/portage/dev-db/postgresql-base-8.4.1/work
>>> Compiling source in /var/tmp/portage/dev-db/postgresql-base-8.4.1/work/postgresql-8.4.1 ...
 * econf: updating postgresql-8.4.1/config/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating postgresql-8.4.1/config/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/v$
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... no
checking whether NLS is wanted... yes
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for WAL segment size... 16MB
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking if i686-pc-linux-gnu-gcc supports -Wdeclaration-after-statement... yes
checking if i686-pc-linux-gnu-gcc supports -Wendif-labels... yes
checking if i686-pc-linux-gnu-gcc supports -fno-strict-aliasing... yes
checking if i686-pc-linux-gnu-gcc supports -fwrapv... yes
checking whether the C compiler still works... yes
configure: error: do not put -ffast-math in CFLAGS

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-db/postgresql-base-8.4.1/work/postgresql-8.4.1/config.log
 ^[[31;01m*^[[0m ERROR: dev-db/postgresql-base-8.4.1 failed:
 ^[[31;01m*^[[0m   econf failed
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m Call stack:
 ^[[31;01m*^[[0m     ebuild.sh, line   55:  Called src_compile
 ^[[31;01m*^[[0m   environment, line 3046:  Called econf '--prefix=/usr/lib/postgresql-8.4' '--datadir=/usr/share/postgresql-8.4' '--docdir=/usr/share/doc/postgresql-8.4' '--sysconfdir$
 ^[[31;01m*^[[0m     ebuild.sh, line  533:  Called die
 ^[[31;01m*^[[0m The specific snippet of code:
 ^[[31;01m*^[[0m                        die "econf failed"
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m If you need support, post the output of 'emerge --info =dev-db/postgresql-base-8.4.1',
 ^[[31;01m*^[[0m the complete build log and the output of 'emerge -pqv =dev-db/postgresql-base-8.4.1'.
 ^[[31;01m*^[[0m The complete build log is located at '/var/tmp/portage/dev-db/postgresql-base-8.4.1/temp/build.log'.
 ^[[31;01m*^[[0m The ebuild environment file is located at '/var/tmp/portage/dev-db/postgresql-base-8.4.1/temp/environment'.
 ^[[31;01m*^[[0m S: '/var/tmp/portage/dev-db/postgresql-base-8.4.1/work/postgresql-8.4.1'


========================================================================

content of /etc/make.conf
( because of the "configure: error: do not put -ffast-math in CFLAGS"-line 
  above)

output of 
# emerge --info =dev-db/postgresql-base-8.4.1
Portage 2.1.7.5 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Pentium-R-_4_CPU_1.80GHz-with-gentoo-1.12.11.1
Timestamp of tree: Wed, 18 Nov 2009 10:15:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -msse -mfpmath=sse -mmmx -pipe -ffast-math -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -msse -mfpmath=sse -mmmx -pipe -ffast-math -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.lagis.at/ http://de-mirror.org/distro/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl bzip2 cli cracklib crypt fortran gdbm iconv modules mudflap ncurses nls nptl nptlonly pcre perl python readline reflection session spl ssl sysfs tcpd unicode x86 zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -msse -mfpmath=sse -mmmx -pipe -ffast-math -fprefetch-loop-arrays"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
CHOST="i686-pc-linux-gnu"
USE="-gtk -gnome -KDE -qt3 -qt4 -alsa -cdr -mailwrapper -mysql -truetype -berkdb -cups -openmp -dri -gpm -ipv6 -isdnlog -midi -pam -pppd -xorg"
Comment 1 Patrick Lauer gentoo-dev 2009-11-18 13:16:02 UTC
configure: error: do not put -ffast-math in CFLAGS

So don't do that. Seriously. Don't do that. It's bad. It's wrong. It breaks things in horrible ways.
Comment 2 khan1521 2009-11-19 11:36:28 UTC
1) removed -ffast-math from CFLAGS in /etc/make.conf
2) removed old /var/tmp/portage/dev......
3) emerge dev-db/postgresql-base dev-db/postgresql-server
4) shouting "it worked ! it worked !it worked !"...and laughing like a madman :)

ooookay. whew.
thanks a lot!