Bug 34882 - g++: Internal error: Killed (program cc1plus)
Summary: g++: Internal error: Killed (program cc1plus)
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.2.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: memory-hog
Depends on:
Blocks:
 
Reported: 2008-01-20 06:01 UTC by steven ou
Modified: 2008-02-02 12:06 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
source file (4.85 KB, text/plain)
2008-01-23 10:40 UTC, steven ou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description steven ou 2008-01-20 06:01:31 UTC
MYNAS:/home/src/trunk/rtorrent-0.7.9# gcc -v
Using built-in specs.
Target: arm-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --disable-libssp --enable-checking=release --build=arm-linux-gnu --host=arm-linux-gnu --target=arm-linux-gnu
Thread model: posix
gcc version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)


MYNAS:/home/src/trunk/rtorrent-0.7.9/src# g++ -v -save-temps -DHAVE_CONFIG_H -I. -I. -I..     -O2 -Wall -g -DDEBUG -I/usr/local/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include   -I/usr/local/include  -MT command_download.o -MD -MP -MF ".deps/command_download.Tpo" -c -o command_download.o command_download.cc
Using built-in specs.
Target: arm-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --disable-libssp --enable-checking=release --build=arm-linux-gnu --host=arm-linux-gnu --target=arm-linux-gnu
Thread model: posix
gcc version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)
 /usr/lib/gcc/arm-linux-gnu/4.2.3/cc1plus -E -quiet -v -I. -I. -I.. -I/usr/local/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/local/include -MD command_download.d -MF .deps/command_download.Tpo -MP -MT command_download.o -MQ command_download.o -D_GNU_SOURCE -DHAVE_CONFIG_H -DDEBUG command_download.cc -Wall -fworking-directory -O2 -fpch-preprocess -o command_download.ii
ignoring nonexistent directory "/usr/local/include/arm-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/arm-linux-gnu/4.2.3/../../../../arm-linux-gnu/include"
ignoring nonexistent directory "/usr/include/arm-linux-gnu"
ignoring duplicate directory "."
ignoring duplicate directory "/usr/local/include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "/usr/local/include"
  as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
 .
 ..
 /usr/include/sigc++-2.0
 /usr/lib/sigc++-2.0/include
 /usr/include/c++/4.2
 /usr/include/c++/4.2/arm-linux-gnu
 /usr/include/c++/4.2/backward
 /usr/local/include
 /usr/lib/gcc/arm-linux-gnu/4.2.3/include
 /usr/include
End of search list.
 /usr/lib/gcc/arm-linux-gnu/4.2.3/cc1plus -fpreprocessed command_download.ii -quiet -dumpbase command_download.cc -auxbase-strip command_download.o -g -O2 -Wall -version -o command_download.s
GNU C++ version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4) (arm-linux-gnu)
        compiled by GNU C version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4).
GGC heuristics: --param ggc-min-expand=32 --param ggc-min-heapsize=4096
Compiler executable checksum: 9b6e74d25828d50e2e999d49ab297c3a
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-4.2/README.Bugs>.
Comment 1 Andrew Pinski 2008-01-20 12:21:54 UTC
>g++: Internal error: Killed (program cc1plus)

How much memory do you have?  How much swap space do you have?


Can you attach command_download.ii?
Comment 2 steven ou 2008-01-23 10:40:07 UTC
Created attachment 15006 [details]
source file
Comment 3 steven ou 2008-01-23 10:41:28 UTC
(In reply to comment #1)
> >g++: Internal error: Killed (program cc1plus)
> How much memory do you have?  How much swap space do you have?
> Can you attach command_download.ii?

32M RAM of NSLU2
200MB swap space 
Comment 4 Andrew Pinski 2008-01-26 12:51:36 UTC
Can you add -save-temps and attach the resulting .ii file ?
Comment 5 Martin Michlmayr 2008-01-26 23:16:21 UTC
This is simply a host without enough RAM, not a gcc problem.
Comment 6 Richard Biener 2008-01-27 12:50:41 UTC
The initialize_command_download() exposes the usual memory-hungriness of GCC
with repetitive C++ initializers.  We have plenty of bugreports with testcases
for this, closing as invalid.  And yes, 32MB + 200MB swap will never make
you happy with C++ and gcc.
Comment 7 steven ou 2008-02-02 12:06:00 UTC
(In reply to comment #6)
> The initialize_command_download() exposes the usual memory-hungriness of GCC
> with repetitive C++ initializers.  We have plenty of bugreports with testcases
> for this, closing as invalid.  And yes, 32MB + 200MB swap will never make
> you happy with C++ and gcc.
> 

However, it's not the 1st time that i compiled rtorrent on NSLU2 Debian etch platform.
Therefore, why this gcc version 4.2.3 cause this issues?