This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36061] New: Severe internal compiler error when building Battle for Wesnoth 1.4.1 on a Linux from Scratch 6.0 box
- From: "gabrielcvdj at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2008 10:59:34 -0000
- Subject: [Bug c++/36061] New: Severe internal compiler error when building Battle for Wesnoth 1.4.1 on a Linux from Scratch 6.0 box
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Environment:
System: Linux darksky.homeunix.net 2.6.22.9-THUNDERBIRD_31-Shadowfax #3 Tue Oct
2 00:48:34 EEST 2007 i686 athlon-4 i386 GNU/Linux
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.4.3/configure --prefix=/usr --libexecdir=/usr/lib
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-languages=c,c++,objc,f77,ada,java
Description:
I am using a Linux from Scratch 6.0 GNU/Linux distribution built by
myself. It also features Beyond Linux from Scratch. For two and a half years I
have been using GCC 3.4.3 (both C
and C++ compilers) successfully without even the smallest error,
although I have been using this compiler quite intensively. The
compilation of the compiler itself has was entirely done as
indicated by the LFS book (version 6.0).
I was trying to build a game, Battle for Wesnoth 1.4.1 (stable
branch) and the C++ compiler crashed during the build process.
Result of gcc -v:
# gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/usr
--libexecdir=/usr/lib --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
--enable-languages=c,c++,objc,f77,ada,java
Thread model: posix
gcc version 3.4.3
I was using the following settings while compiling:
# echo ${CXXFLAGS}
-O3 -msse -mmmx -m3dnow -mfpmath=sse -march=athlon-xp
# echo ${CFLAGS}
-O3 -msse -mmmx -m3dnow -mfpmath=sse -march=athlon-xp
The complete error message can be found below:
Making all in src
make[2]: Entering directory
`/root/battle-for-wesnoth/wesnoth/wesnoth-1.4.1/src'depbase=`echo
actions.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/X11R6/include
-I/usr/include/freetype2 -I ./sdl_ttf -I../intl -I../intl
-I/usr/include/SDL -D_REENTRANT
-DWESNOTH_PATH=\"/usr/share/wesnoth\"
-DLOCALEDIR=\"translations\" -DHAS_RELATIVE_LOCALEDIR=1
-DFIFODIR=\"/usr/var/run/wesnothd\" -DHAVE_PYTHON
-I/usr/include/python2.4 -DHAVE_FRIBIDI -I/usr/include -O2 -W
-Wall -ansi -O3 -msse -mmmx -m3dnow -mfpmath=sse
-march=athlon-xp -DHAVE_BUILTIN_EXPECT -D_X11
-I/usr/X11R6/include -DWESNOTH_BOOST_TEST_MAIN
-I/usr/include/boost-1_35/ -MT actions.o -MD -MP -MF
$depbase.Tpo -c -o actions.o actions.cpp &&\
mv -f $depbase.Tpo $depbase.Po
actions.cpp: In constructor `attack::attack(game_display&,
const gamemap&, std::vector<team,
std::allocator<team> >&, gamemap::location,
gamemap::location, int, int, unit_map&, const
gamestatus&, const game_data&, bool)':
actions.cpp:1439: internal compiler error: in
stabilize_call, at cp/tree.c:2465
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [actions.o] Error 1
make[2]: Leaving directory
`/root/battle-for-wesnoth/wesnoth/wesnoth-1.4.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/battle-for-wesnoth/wesnoth/wesnoth-1.4.1'
make: *** [all] Error 2
The error seems to be caused by the line:
THROW_END_LEVEL(delayed_exception);
in src/actions.cpp
At first I thought that the crash could be caused by the lack of swap
space (my machine has 1 GB of RAM, single-processor, AMD Athlon-XP
Barton 2600+). I added 512 MB of swap space (swap file) but the swap
usage was limited. The same result appeared even after adding the swap
space. I also tried to eliminate the CFLAGS and CXXFLAGS and then
reconfiguring and rebuilding the package. The same result was
obtained.
>How-To-Repeat:
I was also using Boost libraries (1.35) and Boost Jam. Unfortunately I
don't know the intricacies of the build process for Wesnoth 1.4.1 so I
cannot exactly say what is the impact of these libraries on the build
process.
When I started building the Battle for Wesnoth 1.4.1 source package I
used the following commands:
# ./configure --prefix=/usr --enable-server --enable-campain-server
--with-server-uid=8000 --with-server-gid=8000 --enable-editor
--enable-tools --with-boost=/usr/include/boost-1_35/
# make
Other packages that were installed in my system at that time:
# automake --version
automake (GNU automake) 1.9.5
Written by Tom Tromey <tromey@redhat.com>.
Copyright 2005 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.
# autoconf --version
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.
Copyright (C) 2003 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.
SCONS was not installed (I wasn't using it to build this source
package).
--
Summary: Severe internal compiler error when building Battle for
Wesnoth 1.4.1 on a Linux from Scratch 6.0 box
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gabrielcvdj at yahoo dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36061