Compilation of wesnoth-0.7.11 fails with the following error: g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -DWESNOTH_PATH=\"/usr/share/games/wesnoth\" -march=athlon64 -O2 -frename-registers -fweb -pipe -D_X11 -I/usr/X11R6/include -fno-omit-frame-pointer -c -o dialogs.o `test -f 'dialogs.cpp' || echo './'`dialogs.cpp In file included from pathfind.hpp:16, from display.hpp:23, from actions.hpp:17, from dialogs.hpp:16, from dialogs.cpp:14: array.hpp:54:7: warning: no newline at end of file In file included from dialogs.cpp:26: widgets/progressbar.hpp:23:7: warning: no newline at end of file In file included from pathfind.hpp:16, from display.hpp:23, from game_events.hpp:17, from config.cpp:25: array.hpp:54:7: warning: no newline at end of file config.cpp: In member function `void config::apply_diff(const config&)': config.cpp:1657: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /tmp/portage/tmp/portage/wesnoth-0.7.11/temp/ccPpT4Xs.out file, please attach this to your bugreport. make[3]: *** [config.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/tmp/portage/tmp/portage/wesnoth-0.7.11/work/wesnoth-0.7.11/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/portage/tmp/portage/wesnoth-0.7.11/work/wesnoth-0.7.11/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/tmp/portage/wesnoth-0.7.11/work/wesnoth-0.7.11' make: *** [all] Error 2 !!! ERROR: games-strategy/wesnoth-0.7.11 failed. !!! Function src_compile, Line 33, Exitcode 2 !!! emake failed Reproducible: Always Steps to Reproduce: 1. emerge wesnoth 2. 3. Actual Results: compilation fails at line 33 Expected Results: compile and install Portage 2.0.50-r8 (gcc34-amd64-2004.1, gcc-3.4.0, glibc-2.3.4.20040605-r0, 2.6.7-gentoo-r6) ================================================================= System uname: 2.6.7-gentoo-r6 x86_64 4 Gentoo Base System version 1.4.16 distcc 2.13 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -frename-registers -fweb -pipe" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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="-march=athlon64 -O2 -frename-registers -fweb -pipe" DISTDIR="/tmp/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/tmp/portage/packages" PORTAGE_TMPDIR="/tmp/portage/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://maxbakkie.kotnet.org/gentoo-portage" USE="X aalib alsa amd64 apm arts avi berkdb bonobo cdr crypt cups dvd dvdr encode esd flac foomaticdb gdbm gif gphoto2 gpm gtk gtk2 guile imlib java jpeg kde libg++ libwww makecheck mikmod motif mpeg multilib ncurses nls oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline samba sdl slang spell ssl tcpd tetex tiff truetype xinerama xml2 xmms xv zlib"
Created attachment 34405 [details] preprocessed source preprocessed source
Apparently its a gcc-3.4 thingy. Switching to gcc-3.3.3 makes it compile fine. However, previous versions of wesnoth compiled fine using gcc-3.4.0.
Seems to be fixed by gcc-3.4.1 which is stable on amd64 - please can you retry with this gcc version and re-open if the ICE is reproduced? Thanks, malc. commodore64 root # gcc --version gcc (GCC) 3.4.1 (Gentoo Linux 3.4.1, ssp-3.4-2, pie-8.7.6.3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. commodore64 root # genlop wesnoth * games-strategy/wesnoth Mon Jul 19 17:07:10 2004 >>> games-strategy/wesnoth-0.8