Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 126077

Summary: firebird 1.5.3 failed to compile with gcc 4.1
Product: Gentoo Linux Reporter: Tiago Freire <tiago.freire>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tiago Freire 2006-03-13 14:02:33 UTC
I have made a chrooted 2006.0 gentoo system to test gcc 4.1.

NOTE: even with the minimal CFLAGS="-pipe", CXXFLAGS="${CFLAGS}" the error persists at the sample place on the source code.

g++ -O2 -march=k8 -ftracer -ffast-math -ftree-vectorize -floop-optimize2 -pipe -fvisibility-inlines-hidden -O2 -march=k8 -ftracer -ffast-math -ftree-vectorize -floop-optimize2 -pipe -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0  -DPROD_BUILD -O2 -march=k8 -ftracer -ffast-math -ftree-vectorize -floop-optimize2 -pipe -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0  -DPROD_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0  -DPROD_BUILD -O2 -march=k8 -ftracer -ffast-math -ftree-vectorize -floop-optimize2 -pipe -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0  -DPROD_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0  -DPROD_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0  -DPROD_BUILD -c ../src/common/classes/alloc.cpp -o ../temp/libfbcommon/common/classes/alloc.o
../src/common/classes/../../include/../common/classes/alloc.h:256: error: 'void* operator new(size_t, Firebird::MemoryPool&)' may not be declared as static
../src/common/classes/../../include/../common/classes/alloc.h:260: error: 'void* operator new [](size_t, Firebird::MemoryPool&)' may not be declared as static
make[3]: *** [../temp/libfbcommon/common/classes/alloc.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make[2]: *** [libfbcommon] Error 2
make[2]: Leaving directory `/var/tmp/portage/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make[1]: *** [../gen/firebird/bin/gpre_static] Error 2
make[1]: Leaving directory `/var/tmp/portage/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make: *** [firebird] Error 2

!!! ERROR: dev-db/firebird-1.5.3-r1 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile

!!! error during make
!!! If you need support, post the topmost build error, and the call stack if relevant.


emerge --info:

Portage 2.1_pre5-r4 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.3.6-r3, 2.6.15-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -ftracer -fprefetch-loop-arrays -mfpmath=sse -ffast-math -ftree-vectorize -floop-optimize2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -ftracer -fprefetch-loop-arrays -mfpmath=sse -ffast-math -ftree-vectorize -floop-optimize2 -pipe -fvisibility-inlines-hidden "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="pt_BR en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://portage.cert-id.com.br/portage"
USE="amd64 3dnowex X a52 aac acl acpi alsa apache2 artswrappersuid automount avi berkdb bitmap-fonts bluetooth cdparanoia chroot crypt cups curl curlwrappers dbus dga divx4linux doc dri dvd dvdr dvdread eds emboss encode fglrx foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 iconv imap imlib innodb interbase ipv6 jpeg jpeg2k kde kdeenablefinal kerberos lm_sensors lzw lzw-tiff maildir mailwrapper mime mozdevelop mozsvg mp3 mpeg mpeg2 mpeg4 mplayer mpm-prefork mppe-mppc mysqli ncurses nls nptl nsplugin ntfs oggvorbis opengl pam pdflib perl pic png posix python qemu-fast qt quicktime rdesktop readline screen sdl sensord session snmp spell sqlite ssl tcpd theora threads tidy tiff transcode truetype-fonts type1-fonts unicode usb userlocales utf8 vcd vcdimager vhosts vim wifi win32 xmlrpc xpm xscreensaver xsl xv zlib elibc_glibc input_devices_aiptek input_devices_joystick input_devices_keyboard input_devices_mouse kernel_linux linguas_pt_BR linguas_en userland_GNU video_cards_ati video_cards_radeon video_cards_fbdev video_cards_vesa"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-13 14:58:13 UTC

*** This bug has been marked as a duplicate of 120867 ***