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>.
>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?
Created attachment 15006 [details] source file
(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
Can you add -save-temps and attach the resulting .ii file ?
This is simply a host without enough RAM, not a gcc problem.
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.
(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?