public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/55808] New: excessive memory usage from gcc 4.7.2 when compiling mame source code
@ 2012-12-26  1:36 mister.freeman at laposte dot net
  2012-12-31 10:28 ` [Bug c/55808] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mister.freeman at laposte dot net @ 2012-12-26  1:36 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55808

             Bug #: 55808
           Summary: excessive memory usage from gcc 4.7.2 when compiling
                    mame source code
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mister.freeman@laposte.net


I notice that gcc 4.7.2 uses very excessive amount of memory when I compile the
mame source code ( an arcade emulator ) :

http://mamedev.org/release.html

I have archlinux 32 bits on a virtualbox ( 4.2.6 version ) virtual machine (
CPU dual core 3.3 Ghz, 1 Gb ram and 512 Mb swap partition ),

with PC configuration who have little memory ( 1 Gb for example ) and little
swap partition ( 512 Mb ) it is impossible to compile mame, because the memory
usage is excessive, I monitored the usage of the memory and gcc often takes
almost 2 Gb of ram,

if the system memory is too low ( 1 Gb physical ram and 512 Mb swap partition )
it will cause a fail with this error message :

Compiling src/emu/cpu/tms32051/tms32051.c...
Generating TMS57002 source file...
obj/sdl/build/tmsmake src/emu/cpu/tms57002/tmsinstr.lst
obj/sdl/emu/cpu/tms57002/tms57002.inc
Compiling src/emu/cpu/tms57002/tms57002.c...
{standard input}: Assembler messages:
{standard input}:3066: Warning: end of file not at end of a line; newline
inserted
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc
directive
gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
make: *** [obj/sdl/emu/cpu/tms57002/tms57002.o] Error 4
==> ERROR: A failure occurred in build().
Aborting... 


if I use an older version of GCC ( for example : gcc 4.4.5 ) I can compile mame
without problems on systems who have low memory ( 1 Gb and 512 Mb swap
partition ), so it's clearly a regression bug in gcc 4.7.2,

and check the first comment here ( padremayi ), same error with gcc 4.7.2 :

https://aur.archlinux.org/packages/sdlmame-wout-gconf/?setlang=fr

we need to improve the memory consumption of gcc


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-01 16:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-26  1:36 [Bug c/55808] New: excessive memory usage from gcc 4.7.2 when compiling mame source code mister.freeman at laposte dot net
2012-12-31 10:28 ` [Bug c/55808] " pinskia at gcc dot gnu.org
2012-12-31 10:31 ` [Bug middle-end/55808] " pinskia at gcc dot gnu.org
2012-12-31 15:06 ` mister.freeman at laposte dot net
2012-12-31 21:11 ` pinskia at gcc dot gnu.org
2013-01-01  4:41 ` mister.freeman at laposte dot net
2013-01-01 16:24 ` mister.freeman at laposte dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).