Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80309 - wesnoth 0.8.9 fails to compile with gcc-3.4.3
Summary: wesnoth 0.8.9 fails to compile with gcc-3.4.3
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-01 02:34 UTC by HARGITAI Gabor
Modified: 2005-02-06 10:12 UTC (History)
1 user (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 HARGITAI Gabor 2005-02-01 02:34:20 UTC
I have gcc-3.4.3-r1 and use the i686-pc-linux-gnu-3.4.3 profile of it. I swithced to 3.4.3 from 3.3.5 some days ago, and I didn't recompile the whole system (not even glibc). The compilation fails with the following error message:
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/X11R6/include  -I sdl_ttf -I../intl -I../intl -I/usr/include/SDL -D_REENTRANT -DWESNOTH_PATH=\"/usr/share/games/wesnoth\" -DLOCALEDIR=\"translations\" -DHAS_RELATIVE_LOCALEDIR=1 -O2 -march=athlon-xp -fomit-frame-pointer -pipe -D_X11  -I/usr/X11R6/include  -c -o multiplayer_client.o multiplayer_client.cpp
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/X11R6/include  -I sdl_ttf -I../intl -I../intl -I/usr/include/SDL -D_REENTRANT -DWESNOTH_PATH=\"/usr/share/games/wesnoth\" -DLOCALEDIR=\"translations\" -DHAS_RELATIVE_LOCALEDIR=1 -O2 -march=athlon-xp -fomit-frame-pointer -pipe -D_X11  -I/usr/X11R6/include  -c -o multiplayer_connect.o multiplayer_connect.cpp

cc1plus: out of memory allocating 301897096 bytes after a total of 7729152 bytes
make[3]: *** [multiplayer.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/wesnoth-0.8.9/work/wesnoth-0.8.9/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/wesnoth-0.8.9/work/wesnoth-0.8.9/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/wesnoth-0.8.9/work/wesnoth-0.8.9'
make: *** [all] Error 2

!!! ERROR: games-strategy/wesnoth-0.8.9 failed.
!!! Function src_compile, Line 60, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

It compiles and works fine with gcc-3.3.5

Reproducible: Always
Steps to Reproduce:





emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec  2 2004, 14:27:52)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r1, 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-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/share/config
/usr/lib/X11/xkb /usr/lib/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=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.math.bme.hu      
ftp://ftp.linux.ee/pub/gentoo/distfiles         http://trumpetti.atm.tut.fi/gentoo/"
LANG="hu_HU"
LC_ALL="hu_HU"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib adns aim alsa apache2 apm avi bash-completion berkdb
bitmap-fonts bmp bonobo calendar cdr crypt cups dga doc dts dvd eds encode esd
f77 fam fbcon flac font-server foomaticdb fortran ftp gdbm gif gimp gimpprint
gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imap imlib java
jpeg junit kde ldap libg++ libwww live mad mikmod mime mmx mono motif mozilla
mpeg ncurses nls nntp nptl ogg oggvorbis opengl oss pam pdflib perl png postgres
ppds python qt quicktime readline samba sdl slang smime spell sqlite sse ssl svg
svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts usb vhosts
videos vnc vorbis wxwindows xine xml xml2 xmms xprint xv zlib video_cards_radeon
linguas_hu linguas_us linguas_en"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Björn Michaelsen 2005-02-01 03:06:00 UTC
Did you run
/usr/portage/sys-devel/gcc/files/fix_libtool_files.sh?
Comment 2 HARGITAI Gabor 2005-02-01 07:53:20 UTC
It doesn't help, same error. And I can compile mono things and mozilla-thunderbird with gcc-3.4.3.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-01 15:29:47 UTC
toolchain: perhaps a GCC-3.4 bug?
Comment 4 SpanKY gentoo-dev 2005-02-01 15:32:58 UTC
try taking '-pipe' out of your CXXFLAGS
Comment 5 HARGITAI Gabor 2005-02-04 06:48:57 UTC
It works without -pipe.
Comment 6 SpanKY gentoo-dev 2005-02-05 21:35:43 UTC
c++ uses a lot of memory sometimes
Comment 7 HARGITAI Gabor 2005-02-06 10:12:08 UTC
I have 512 MB it should be enough, it works with gcc 3.3.5, and -pipe is recomended in the Gentoo Handbook, so I don't think so it's resolved.