* [Qemu-devel] qemu-0.14.0 doesn't compile on ppc32
@ 2011-02-20 14:01 nello martuscielli
2011-02-20 16:56 ` Aurelien Jarno
2011-02-20 17:01 ` malc
0 siblings, 2 replies; 14+ messages in thread
From: nello martuscielli @ 2011-02-20 14:01 UTC (permalink / raw)
To: qemu-devel
hi,
i'm unable to compile qemu-0.14.0 on my PowerPC box.
The same kind of error there is also compiling qemu-0.13.0 in the same
environment.
Testing box is a PowerMac G4 with CRUX PPC (32bit) 2.7
gcc-4.5.2, binutils-2.21, glibc-2.12.2, linux-2.6.37.1
I always get the same compile failure.
# crux
CRUX PPC (32 bit) version 2.7
# uname -a
Linux hermes 2.6.37.1 #1 PREEMPT Fri Feb 18 21:12:07 CET 2011 ppc
7447A, altivec supported PowerBook6,7 GNU/Linux
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.2/lto-wrapper
Target: powerpc-unknown-linux-gnu
Configured with: ../gcc-4.5.2/configure --disable-multilib
--prefix=/usr --mandir=/usr/man --libexecdir=/usr/lib
--enable-languages=c,c++,objc --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --enable-shared
--disable-nls --with-x=no --enable-long-long --with-system-zlib
--with-pkgversion='CRUX PPC' --host=powerpc-unknown-linux-gnu
--build=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu
Thread model: posix
gcc version 4.5.2 (CRUX PPC)
[...]
CC x86_64-softmmu/balloon.o
CC x86_64-softmmu/virtio-blk.o
CC x86_64-softmmu/virtio-balloon.o
CC x86_64-softmmu/virtio-net.o
CC x86_64-softmmu/virtio-serial-bus.o
CC x86_64-softmmu/virtio-pci.o
CC x86_64-softmmu/vhost_net.o
CC x86_64-softmmu/virtio-9p.o
CC x86_64-softmmu/rwhandler.o
CC x86_64-softmmu/kvm-stub.o
CC x86_64-softmmu/exec.o
CC x86_64-softmmu/translate-all.o
CC x86_64-softmmu/cpu-exec.o
CC x86_64-softmmu/translate.o
{standard input}: Assembler messages:
{standard input}:11903788: Warning: end of file not at end of a line;
newline inserted
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [translate.o] Error 1
make[1]: *** Deleting file `translate.o'
make: *** [subdir-x86_64-softmmu] Error 2
instead with the same configure:
--audio-drv-list=alsa,sdl --enable-sdl --disable-bluez --disable-kvm
it compiles fine on my ppc64 (G5) box with CRUX PPC (64bit) 2.7
Can i receive help about? Is it really a compiler problem?
I compiled a lot of stuff and this is the first time i receive this
kind of error.
thanks and my best regards,
Nello
--
CRUX PPC user!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] qemu-0.14.0 doesn't compile on ppc32
2011-02-20 14:01 [Qemu-devel] qemu-0.14.0 doesn't compile on ppc32 nello martuscielli
@ 2011-02-20 16:56 ` Aurelien Jarno
2011-02-20 17:02 ` malc
` (2 more replies)
2011-02-20 17:01 ` malc
1 sibling, 3 replies; 14+ messages in thread
From: Aurelien Jarno @ 2011-02-20 16:56 UTC (permalink / raw)
To: nello martuscielli; +Cc: qemu-devel
On Sun, Feb 20, 2011 at 03:01:12PM +0100, nello martuscielli wrote:
> hi,
> i'm unable to compile qemu-0.14.0 on my PowerPC box.
> The same kind of error there is also compiling qemu-0.13.0 in the same
> environment.
>
> Testing box is a PowerMac G4 with CRUX PPC (32bit) 2.7
> gcc-4.5.2, binutils-2.21, glibc-2.12.2, linux-2.6.37.1
> I always get the same compile failure.
>
> # crux
> CRUX PPC (32 bit) version 2.7
> # uname -a
> Linux hermes 2.6.37.1 #1 PREEMPT Fri Feb 18 21:12:07 CET 2011 ppc
> 7447A, altivec supported PowerBook6,7 GNU/Linux
> # gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.2/lto-wrapper
> Target: powerpc-unknown-linux-gnu
> Configured with: ../gcc-4.5.2/configure --disable-multilib
> --prefix=/usr --mandir=/usr/man --libexecdir=/usr/lib
> --enable-languages=c,c++,objc --enable-threads=posix
> --enable-__cxa_atexit --enable-clocale=gnu --enable-shared
> --disable-nls --with-x=no --enable-long-long --with-system-zlib
> --with-pkgversion='CRUX PPC' --host=powerpc-unknown-linux-gnu
> --build=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu
> Thread model: posix
> gcc version 4.5.2 (CRUX PPC)
>
>
> [...]
> CC x86_64-softmmu/balloon.o
> CC x86_64-softmmu/virtio-blk.o
> CC x86_64-softmmu/virtio-balloon.o
> CC x86_64-softmmu/virtio-net.o
> CC x86_64-softmmu/virtio-serial-bus.o
> CC x86_64-softmmu/virtio-pci.o
> CC x86_64-softmmu/vhost_net.o
> CC x86_64-softmmu/virtio-9p.o
> CC x86_64-softmmu/rwhandler.o
> CC x86_64-softmmu/kvm-stub.o
> CC x86_64-softmmu/exec.o
> CC x86_64-softmmu/translate-all.o
> CC x86_64-softmmu/cpu-exec.o
> CC x86_64-softmmu/translate.o
> {standard input}: Assembler messages:
> {standard input}:11903788: Warning: end of file not at end of a line;
> newline inserted
> gcc: Internal error: Killed (program cc1)
> Please submit a full bug report.
> See <http://gcc.gnu.org/bugs.html> for instructions.
> make[1]: *** [translate.o] Error 1
> make[1]: *** Deleting file `translate.o'
> make: *** [subdir-x86_64-softmmu] Error 2
>
> instead with the same configure:
> --audio-drv-list=alsa,sdl --enable-sdl --disable-bluez --disable-kvm
> it compiles fine on my ppc64 (G5) box with CRUX PPC (64bit) 2.7
>
> Can i receive help about? Is it really a compiler problem?
> I compiled a lot of stuff and this is the first time i receive this
> kind of error.
>
It is most likely a compiler/setup issue. My guess your machine got out
of memory, and the OOM killer killed cc1. Try adding more memory and/or
swap, it should work.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] qemu-0.14.0 doesn't compile on ppc32
2011-02-20 14:01 [Qemu-devel] qemu-0.14.0 doesn't compile on ppc32 nello martuscielli
2011-02-20 16:56 ` Aurelien Jarno
@ 2011-02-20 17:01 ` malc
1 sibling, 0 replies; 14+ messages in thread
From: malc @ 2011-02-20 17:01 UTC (permalink / raw)
To: nello martuscielli; +Cc: qemu-devel
On Sun, 20 Feb 2011, nello martuscielli wrote:
> hi,
> i'm unable to compile qemu-0.14.0 on my PowerPC box.
> The same kind of error there is also compiling qemu-0.13.0 in the same
> environment.
>
> Testing box is a PowerMac G4 with CRUX PPC (32bit) 2.7
> gcc-4.5.2, binutils-2.21, glibc-2.12.2, linux-2.6.37.1
> I always get the same compile failure.
>
Builds fine here...
[..snip..]
--
mailto:av1474@comtv.ru
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] qemu-0.14.0 doesn't compile on ppc32
2011-02-20 16:56 ` Aurelien Jarno
@ 2011-02-20 17:02 ` malc
2011-02-20 23:34 ` nello martuscielli
2011-02-20 17:32 ` Peter Maydell
2011-02-20 23:32 ` [Qemu-devel] " nello martuscielli
2 siblings, 1 reply; 14+ messages in thread
From: malc @ 2011-02-20 17:02 UTC (permalink / raw)
To: Aurelien Jarno; +Cc: nello martuscielli, qemu-devel
On Sun, 20 Feb 2011, Aurelien Jarno wrote:
> On Sun, Feb 20, 2011 at 03:01:12PM +0100, nello martuscielli wrote:
> > hi,
> > i'm unable to compile qemu-0.14.0 on my PowerPC box.
> > The same kind of error there is also compiling qemu-0.13.0 in the same
> > environment.
> >
> > Testing box is a PowerMac G4 with CRUX PPC (32bit) 2.7
> > gcc-4.5.2, binutils-2.21, glibc-2.12.2, linux-2.6.37.1
> > I always get the same compile failure.
> >
> > # crux
> > CRUX PPC (32 bit) version 2.7
> > # uname -a
> > Linux hermes 2.6.37.1 #1 PREEMPT Fri Feb 18 21:12:07 CET 2011 ppc
> > 7447A, altivec supported PowerBook6,7 GNU/Linux
> > # gcc -v
> > Using built-in specs.
> > COLLECT_GCC=gcc
> > COLLECT_LTO_WRAPPER=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.2/lto-wrapper
> > Target: powerpc-unknown-linux-gnu
> > Configured with: ../gcc-4.5.2/configure --disable-multilib
> > --prefix=/usr --mandir=/usr/man --libexecdir=/usr/lib
> > --enable-languages=c,c++,objc --enable-threads=posix
> > --enable-__cxa_atexit --enable-clocale=gnu --enable-shared
> > --disable-nls --with-x=no --enable-long-long --with-system-zlib
> > --with-pkgversion='CRUX PPC' --host=powerpc-unknown-linux-gnu
> > --build=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu
> > Thread model: posix
> > gcc version 4.5.2 (CRUX PPC)
> >
> >
> > [...]
> > CC x86_64-softmmu/balloon.o
> > CC x86_64-softmmu/virtio-blk.o
> > CC x86_64-softmmu/virtio-balloon.o
> > CC x86_64-softmmu/virtio-net.o
> > CC x86_64-softmmu/virtio-serial-bus.o
> > CC x86_64-softmmu/virtio-pci.o
> > CC x86_64-softmmu/vhost_net.o
> > CC x86_64-softmmu/virtio-9p.o
> > CC x86_64-softmmu/rwhandler.o
> > CC x86_64-softmmu/kvm-stub.o
> > CC x86_64-softmmu/exec.o
> > CC x86_64-softmmu/translate-all.o
> > CC x86_64-softmmu/cpu-exec.o
> > CC x86_64-softmmu/translate.o
> > {standard input}: Assembler messages:
> > {standard input}:11903788: Warning: end of file not at end of a line;
> > newline inserted
> > gcc: Internal error: Killed (program cc1)
> > Please submit a full bug report.
> > See <http://gcc.gnu.org/bugs.html> for instructions.
> > make[1]: *** [translate.o] Error 1
> > make[1]: *** Deleting file `translate.o'
> > make: *** [subdir-x86_64-softmmu] Error 2
> >
> > instead with the same configure:
> > --audio-drv-list=alsa,sdl --enable-sdl --disable-bluez --disable-kvm
> > it compiles fine on my ppc64 (G5) box with CRUX PPC (64bit) 2.7
> >
> > Can i receive help about? Is it really a compiler problem?
> > I compiled a lot of stuff and this is the first time i receive this
> > kind of error.
> >
>
> It is most likely a compiler/setup issue. My guess your machine got out
> of memory, and the OOM killer killed cc1. Try adding more memory and/or
> swap, it should work.
>
Replacing -O2 with -O or no O at all will work too.
--
mailto:av1474@comtv.ru
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] qemu-0.14.0 doesn't compile on ppc32
2011-02-20 16:56 ` Aurelien Jarno
2011-02-20 17:02 ` malc
@ 2011-02-20 17:32 ` Peter Maydell
2011-02-21 8:10 ` [Qemu-devel] " Paolo Bonzini
2011-02-20 23:32 ` [Qemu-devel] " nello martuscielli
2 siblings, 1 reply; 14+ messages in thread
From: Peter Maydell @ 2011-02-20 17:32 UTC (permalink / raw)
To: Aurelien Jarno; +Cc: nello martuscielli, qemu-devel
On 20 February 2011 16:56, Aurelien Jarno <aurelien@aurel32.net> wrote:
> On Sun, Feb 20, 2011 at 03:01:12PM +0100, nello martuscielli wrote:
>> CC x86_64-softmmu/translate.o
>> {standard input}: Assembler messages:
>> {standard input}:11903788: Warning: end of file not at end of a line;
>> newline inserted
>> gcc: Internal error: Killed (program cc1)
> It is most likely a compiler/setup issue. My guess your machine got out
> of memory, and the OOM killer killed cc1. Try adding more memory and/or
> swap, it should work.
Some of qemu's code does seem to trigger rather excessive memory
use by gcc; for instance we've had problems with memory usage
building for ARM with gcc of target-sparc/translate.c wanting
gigabytes of RAM with some compiler flags:
https://bugs.launchpad.net/gcc-linaro/+bug/714921
I suspect it's all those large switch statements...
-- PMM
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] qemu-0.14.0 doesn't compile on ppc32
2011-02-20 16:56 ` Aurelien Jarno
2011-02-20 17:02 ` malc
2011-02-20 17:32 ` Peter Maydell
@ 2011-02-20 23:32 ` nello martuscielli
2 siblings, 0 replies; 14+ messages in thread
From: nello martuscielli @ 2011-02-20 23:32 UTC (permalink / raw)
To: Aurelien Jarno; +Cc: qemu-devel
On Sun, Feb 20, 2011 at 5:56 PM, Aurelien Jarno <aurelien@aurel32.net> wrote:
>
> It is most likely a compiler/setup issue. My guess your machine got out
> of memory, and the OOM killer killed cc1. Try adding more memory and/or
> swap, it should work.
>
i've 1.5GB of ram and 1GB of swap.
I tried installing a chroot with the same CRUX PPC 32bit on my G5 and
there it compiles just fine as it does with the CRUX PPC 64bit. I
really don't know... maybe it's an hw failure on my G4.
nello
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] qemu-0.14.0 doesn't compile on ppc32
2011-02-20 17:02 ` malc
@ 2011-02-20 23:34 ` nello martuscielli
2011-02-21 0:15 ` malc
0 siblings, 1 reply; 14+ messages in thread
From: nello martuscielli @ 2011-02-20 23:34 UTC (permalink / raw)
To: malc; +Cc: qemu-devel, Aurelien Jarno
On Sun, Feb 20, 2011 at 6:02 PM, malc <av1474@comtv.ru> wrote:
>
> Replacing -O2 with -O or no O at all will work too.
>
hi malc,
do you have the same machine and a similar toolchain?
regards,
nello
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] qemu-0.14.0 doesn't compile on ppc32
2011-02-20 23:34 ` nello martuscielli
@ 2011-02-21 0:15 ` malc
0 siblings, 0 replies; 14+ messages in thread
From: malc @ 2011-02-21 0:15 UTC (permalink / raw)
To: nello martuscielli; +Cc: qemu-devel, Aurelien Jarno
On Mon, 21 Feb 2011, nello martuscielli wrote:
> On Sun, Feb 20, 2011 at 6:02 PM, malc <av1474@comtv.ru> wrote:
>
> >
> > Replacing -O2 with -O or no O at all will work too.
> >
>
> hi malc,
> do you have the same machine and a similar toolchain?
>
Yes.
--
mailto:av1474@comtv.ru
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Qemu-devel] Re: qemu-0.14.0 doesn't compile on ppc32
2011-02-20 17:32 ` Peter Maydell
@ 2011-02-21 8:10 ` Paolo Bonzini
2011-02-22 0:56 ` nello martuscielli
2011-03-14 10:23 ` Peter Maydell
0 siblings, 2 replies; 14+ messages in thread
From: Paolo Bonzini @ 2011-02-21 8:10 UTC (permalink / raw)
To: Peter Maydell; +Cc: nello martuscielli, qemu-devel, Aurelien Jarno
On 02/20/2011 06:32 PM, Peter Maydell wrote:
> On 20 February 2011 16:56, Aurelien Jarno<aurelien@aurel32.net> wrote:
>> On Sun, Feb 20, 2011 at 03:01:12PM +0100, nello martuscielli wrote:
>>> CC x86_64-softmmu/translate.o
>>> {standard input}: Assembler messages:
>>> {standard input}:11903788: Warning: end of file not at end of a line;
>>> newline inserted
>>> gcc: Internal error: Killed (program cc1)
>
>> It is most likely a compiler/setup issue. My guess your machine got out
>> of memory, and the OOM killer killed cc1. Try adding more memory and/or
>> swap, it should work.
>
> Some of qemu's code does seem to trigger rather excessive memory
> use by gcc; for instance we've had problems with memory usage
> building for ARM with gcc of target-sparc/translate.c wanting
> gigabytes of RAM with some compiler flags:
> https://bugs.launchpad.net/gcc-linaro/+bug/714921
>
> I suspect it's all those large switch statements...
It's on my todo list to report it to GCC, since this memory-hog behavior
is a GCC regression.
Paolo
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Qemu-devel] Re: qemu-0.14.0 doesn't compile on ppc32
2011-02-21 8:10 ` [Qemu-devel] " Paolo Bonzini
@ 2011-02-22 0:56 ` nello martuscielli
2011-03-14 10:23 ` Peter Maydell
1 sibling, 0 replies; 14+ messages in thread
From: nello martuscielli @ 2011-02-22 0:56 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Peter Maydell, qemu-devel, Aurelien Jarno
On Mon, Feb 21, 2011 at 9:10 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
> On 02/20/2011 06:32 PM, Peter Maydell wrote:
>>
>> On 20 February 2011 16:56, Aurelien Jarno<aurelien@aurel32.net> wrote:
>>>
>>> On Sun, Feb 20, 2011 at 03:01:12PM +0100, nello martuscielli wrote:
>>>>
>>>> CC x86_64-softmmu/translate.o
>>>> {standard input}: Assembler messages:
>>>> {standard input}:11903788: Warning: end of file not at end of a line;
>>>> newline inserted
>>>> gcc: Internal error: Killed (program cc1)
>>
>>> It is most likely a compiler/setup issue. My guess your machine got out
>>> of memory, and the OOM killer killed cc1. Try adding more memory and/or
>>> swap, it should work.
>>
>> Some of qemu's code does seem to trigger rather excessive memory
>> use by gcc; for instance we've had problems with memory usage
>> building for ARM with gcc of target-sparc/translate.c wanting
>> gigabytes of RAM with some compiler flags:
>> https://bugs.launchpad.net/gcc-linaro/+bug/714921
>>
>> I suspect it's all those large switch statements...
>
> It's on my todo list to report it to GCC, since this memory-hog behavior is
> a GCC regression.
>
> Paolo
>
compiling with -fno-var-tracking i just succesfully built it without
any out of memory error.
So it seems it's possible to compile qemu on ppc32 without a
ridiculous high amount of ram with gcc-4.5.2.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Qemu-devel] Re: qemu-0.14.0 doesn't compile on ppc32
2011-02-21 8:10 ` [Qemu-devel] " Paolo Bonzini
2011-02-22 0:56 ` nello martuscielli
@ 2011-03-14 10:23 ` Peter Maydell
2011-03-14 10:33 ` Stefan Hajnoczi
2011-03-14 11:17 ` Paolo Bonzini
1 sibling, 2 replies; 14+ messages in thread
From: Peter Maydell @ 2011-03-14 10:23 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: nello martuscielli, qemu-devel, Aurelien Jarno
On 21 February 2011 08:10, Paolo Bonzini <pbonzini@redhat.com> wrote:
> On 02/20/2011 06:32 PM, Peter Maydell wrote:
>> Some of qemu's code does seem to trigger rather excessive memory
>> use by gcc; for instance we've had problems with memory usage
>> building for ARM with gcc of target-sparc/translate.c wanting
>> gigabytes of RAM with some compiler flags:
>> https://bugs.launchpad.net/gcc-linaro/+bug/714921
>>
>> I suspect it's all those large switch statements...
>
> It's on my todo list to report it to GCC, since this memory-hog behavior is
> a GCC regression.
We've been working on this in Linaro, and the following two patches
have been posted upstream:
http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00193.html
http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00255.html
so you can probably cross that item off your todo list :-)
-- PMM
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] Re: qemu-0.14.0 doesn't compile on ppc32
2011-03-14 10:23 ` Peter Maydell
@ 2011-03-14 10:33 ` Stefan Hajnoczi
2011-03-14 19:14 ` Blue Swirl
2011-03-14 11:17 ` Paolo Bonzini
1 sibling, 1 reply; 14+ messages in thread
From: Stefan Hajnoczi @ 2011-03-14 10:33 UTC (permalink / raw)
To: Peter Maydell
Cc: Paolo Bonzini, nello martuscielli, qemu-devel, Aurelien Jarno,
Alexander Graf
On Mon, Mar 14, 2011 at 10:23 AM, Peter Maydell
<peter.maydell@linaro.org> wrote:
> On 21 February 2011 08:10, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> On 02/20/2011 06:32 PM, Peter Maydell wrote:
>>> Some of qemu's code does seem to trigger rather excessive memory
>>> use by gcc; for instance we've had problems with memory usage
>>> building for ARM with gcc of target-sparc/translate.c wanting
>>> gigabytes of RAM with some compiler flags:
>>> https://bugs.launchpad.net/gcc-linaro/+bug/714921
>>>
>>> I suspect it's all those large switch statements...
>>
>> It's on my todo list to report it to GCC, since this memory-hog behavior is
>> a GCC regression.
>
> We've been working on this in Linaro, and the following two patches
> have been posted upstream:
>
> http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00193.html
> http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00255.html
>
> so you can probably cross that item off your todo list :-)
Interesting. Alexander Graf and I recently hit an out of memory when
building translate.o on ppc64 host. It was solved by adding more RAM
to the box but this patch looks nice too ;).
Stefan
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Qemu-devel] Re: qemu-0.14.0 doesn't compile on ppc32
2011-03-14 10:23 ` Peter Maydell
2011-03-14 10:33 ` Stefan Hajnoczi
@ 2011-03-14 11:17 ` Paolo Bonzini
1 sibling, 0 replies; 14+ messages in thread
From: Paolo Bonzini @ 2011-03-14 11:17 UTC (permalink / raw)
To: Peter Maydell; +Cc: nello martuscielli, qemu-devel, Aurelien Jarno
On 03/14/2011 11:23 AM, Peter Maydell wrote:
> On 21 February 2011 08:10, Paolo Bonzini<pbonzini@redhat.com> wrote:
>> On 02/20/2011 06:32 PM, Peter Maydell wrote:
>>> Some of qemu's code does seem to trigger rather excessive memory
>>> use by gcc; for instance we've had problems with memory usage
>>> building for ARM with gcc of target-sparc/translate.c wanting
>>> gigabytes of RAM with some compiler flags:
>>> https://bugs.launchpad.net/gcc-linaro/+bug/714921
>>>
>>> I suspect it's all those large switch statements...
>>
>> It's on my todo list to report it to GCC, since this memory-hog behavior is
>> a GCC regression.
>
> We've been working on this in Linaro, and the following two patches
> have been posted upstream:
>
> http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00193.html
> http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00255.html
>
> so you can probably cross that item off your todo list :-)
Yes, I'm running with those two patches backported. :)
Paolo
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] Re: qemu-0.14.0 doesn't compile on ppc32
2011-03-14 10:33 ` Stefan Hajnoczi
@ 2011-03-14 19:14 ` Blue Swirl
0 siblings, 0 replies; 14+ messages in thread
From: Blue Swirl @ 2011-03-14 19:14 UTC (permalink / raw)
To: Stefan Hajnoczi
Cc: Peter Maydell, Alexander Graf, qemu-devel, Paolo Bonzini,
nello martuscielli, Aurelien Jarno
On Mon, Mar 14, 2011 at 12:33 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Mon, Mar 14, 2011 at 10:23 AM, Peter Maydell
> <peter.maydell@linaro.org> wrote:
>> On 21 February 2011 08:10, Paolo Bonzini <pbonzini@redhat.com> wrote:
>>> On 02/20/2011 06:32 PM, Peter Maydell wrote:
>>>> Some of qemu's code does seem to trigger rather excessive memory
>>>> use by gcc; for instance we've had problems with memory usage
>>>> building for ARM with gcc of target-sparc/translate.c wanting
>>>> gigabytes of RAM with some compiler flags:
>>>> https://bugs.launchpad.net/gcc-linaro/+bug/714921
>>>>
>>>> I suspect it's all those large switch statements...
>>>
>>> It's on my todo list to report it to GCC, since this memory-hog behavior is
>>> a GCC regression.
>>
>> We've been working on this in Linaro, and the following two patches
>> have been posted upstream:
>>
>> http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00193.html
>> http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00255.html
>>
>> so you can probably cross that item off your todo list :-)
>
> Interesting. Alexander Graf and I recently hit an out of memory when
> building translate.o on ppc64 host. It was solved by adding more RAM
> to the box but this patch looks nice too ;).
Maybe the switch blocks should be rearranged, or inline attribute
removed from the functions. Are the nested switch and if statements
optimal from performance point of view or could there be a faster and
less memory hungry version?
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2011-03-14 19:15 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-20 14:01 [Qemu-devel] qemu-0.14.0 doesn't compile on ppc32 nello martuscielli
2011-02-20 16:56 ` Aurelien Jarno
2011-02-20 17:02 ` malc
2011-02-20 23:34 ` nello martuscielli
2011-02-21 0:15 ` malc
2011-02-20 17:32 ` Peter Maydell
2011-02-21 8:10 ` [Qemu-devel] " Paolo Bonzini
2011-02-22 0:56 ` nello martuscielli
2011-03-14 10:23 ` Peter Maydell
2011-03-14 10:33 ` Stefan Hajnoczi
2011-03-14 19:14 ` Blue Swirl
2011-03-14 11:17 ` Paolo Bonzini
2011-02-20 23:32 ` [Qemu-devel] " nello martuscielli
2011-02-20 17:01 ` malc
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 NNTP newsgroup(s).