This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12302] New: xgcc crashes when compiling libstdc++
- From: "garyp at logicpd dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2003 14:55:19 -0000
- Subject: [Bug c++/12302] New: xgcc crashes when compiling libstdc++
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12302
Summary: xgcc crashes when compiling libstdc++
Product: gcc
Version: 3.2.3
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: garyp at logicpd dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-cygwin
GCC host triplet: i686-pc-cygwin
GCC target triplet: arm-elf
When building the libstdc++ library for the arm-elf cross-compiler, the cross-
compiler (xgcc) crashes with an internal error while compiling source code
related to locale. Excerpt from build process follows:
/home/garyp/build/gcc/gcc/xgcc -shared-libgcc -B/home/garyp/build/gcc/gcc/ -nost
dinc++ -L/home/garyp/build/gcc/arm-elf/xscale/libstdc++-v3/src -L/home/garyp/bui
ld/gcc/arm-elf/xscale/libstdc++-v3/src/.libs -nostdinc -B/home/garyp/build/gcc/a
rm-elf/xscale/newlib/ -isystem /home/garyp/build/gcc/arm-elf/xscale/newlib/targ-
include -isystem /home/garyp/src/gcc-3.2.3/newlib/libc/include -
B/cygdrive/o/XXXXX/YYYYY/SE/gnutools/arm-elf/arm-elf/bin/ -
B/cygdrive/o/XXXXX/YYYYY/SE/gnutools/arm-elf/arm-elf/lib/ -
isystem /cygdrive/o/XXXXX/YYYYY/SE/gnutools/arm-elf/arm-elf/include -
mcpu=xscale -nostd
inc++ -I/home/garyp/build/gcc/arm-elf/xscale/libstdc++-v3/include/arm-elf -I/hom
e/garyp/build/gcc/arm-elf/xscale/libstdc++-v3/include -I../../../../../../src/gc
c-3.2.3/libstdc++-v3/libsupc++ -I../../../../../../src/gcc-3.2.3/libstdc++-v3/li
bmath -g -O2 -mcpu=xscale -fno-implicit-templates -Wall -Wno-format -W -Wwrite-s
trings -Winline -fdiagnostics-show-location=once -g -c ../../../../../../src/gcc
-3.2.3/libstdc++-v3/src/locale-inst.cc -o locale-inst.o
/home/garyp/build/gcc/arm-elf/xscale/libstdc++-v3/include/bits/locale_facets.tcc
: In
member function `_InIter std::num_get<_CharT, _InIter>::do_get(_InIter,
_InIter, std::ios_base&, std::_Ios_Iostate&, unsigned int&) const [with
_CharT = char, _InIter = std::istreambuf_iterator<char,
std::char_traits<char> >]':
../../../../../../src/gcc-3.2.3/libstdc++-v3/src/locale-inst.cc:62: instantiat
ed from here
/home/garyp/build/gcc/arm-elf/xscale/libstdc++-v3/include/bits/locale_facets.tcc
:497: internal
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Local compiler used:
$ gcc --version
gcc (GCC) 3.2 20020927 (prerelease)
Copyright (C) 2002 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.
Assembler used:
$ arm-elf-as.exe --version
GNU assembler 2.13.1
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `arm-elf'.
Configuration used:
$ ../../src/gcc-3.2.3/configure --target=arm-elf --
prefix=/cygdrive/o/XXXXX/YYYYY/SE/gnutools/arm-elf --enable-languages=c,c++ --
with-gnu-as --with-gnu-ld --with-newlib --with-gxx-include-
dir=/cygdrive/o/XXXXX/YYYYY/SE/gnutools/arm-elf/arm-elf/include -v 2>&1 | tee
configure.out