|
Home > Archive > Unix Programming > July 2007 > wxwidgets out of memory during compilation
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
wxwidgets out of memory during compilation
|
|
|
| Hi,
I used WxWidgets when writing my application.
When I tried to compile my application on my mips machine I got out-of-
memory problem.
I have 256M dram on my machine and I my linux kernel is 2.6.10.
Could it be the that compilayion takes so much memory? I am building a
very simple GUI....
The message I get when I compile is:
/usr/local/include/wx-2.8/wx/image.h:136: warning: dereferencing type-
punned pointer will break strict-aliasing rules
/usr/local/include/wx-2.8/wx/gtk/filepicker.h: At global scope:
/usr/local/include/wx-2.8/wx/gtk/filepicker.h:112: warning: unused
parameter #windows#
/usr/local/include/wx-2.8/wx/gtk/filepicker.h:174: warning: unused
parameter #windows#
oom-killer: gfp_mask=0x1d2
DMA per-cpu:
cpu 0 hot: low 32, high 96, batch 16
cpu 0 cold: low 0, high 32, batch 16
Normal per-cpu: empty
HighMem per-cpu: empty
....
....
....
Out of Memory: Killed process 2883 (as).
g++: Internal error: Terminated (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.1/README.Bugs>.
When I type free before starting compilation I get:
#free
total used free shared buffers
cached
Mem: 255352 142624 112728 0 12140
71772
-/+ buffers/cache: 58712 196640
Swap: 0 0 0
Thanks a lot!
| |
| Måns Rullgård 2007-07-28, 7:18 am |
| hagit <hagit_guy@hotmail.com> writes:
> Hi,
> I used WxWidgets when writing my application.
> When I tried to compile my application on my mips machine I got out-of-
> memory problem.
> I have 256M dram on my machine and I my linux kernel is 2.6.10.
> Could it be the that compilayion takes so much memory? I am building a
> very simple GUI....
> The message I get when I compile is:
[...]
> g++: Internal error: Terminated (program cc1plus)
That's the price for using C++.
> When I type free before starting compilation I get:
>
> #free
> total used free shared buffers
> cached
> Mem: 255352 142624 112728 0 12140
> 71772
> -/+ buffers/cache: 58712 196640
> Swap: 0 0 0
With only 256MB RAM you should have at least 1GB of swap space. Your
compilation would still crawl of course.
--
Måns Rullgård
mans@mansr.com
| |
|
| hagit wrote:
> I used WxWidgets when writing my application. When I tried to compile
> my application on my mips machine I got out-of-memory problem.
This might be a bug in GCC. What version did you use?
|
|
|
|
|