On Fri, May 13, 2011 at 9:37 PM, Val Niamkovic <hist...@gmail.com> wrote:
> 2011/5/13 Miod Vallat <m...@online.fr>:
>>> Very often when I try to compile anything from ports using G++, a
>>> compiler give me a "Segmentation Fault" or "Bus error". GCC works
>>> fine. And everytime I have to start from last stage. What can you
>>> advise? This happens on SGI O2, RM7000, 512MB of RAM. IRIX 6.5 using
>>> MIPSpro 7.4 can compile a few days without error so I think that the
>>> problem lies not in hardware. This is a bug in GCC 4.2.1, or just a
>>> particular build of 4.9? How do I fix this? Or is this the only
>>> problem I have one?

Miod is absolutely right. I was hit with the same problem on a old
i386 machine. The solution was to increase the limits in
/etc/login.conf

When I use top -s3, g++ climbs above 512Mb, sometimes as close as 1GB
for some compiles. Clang++ does the same, it regularly exceeds 512Mb.

http://marc.info/?l=openbsd-misc&m=128864822527650&w=2

Reply via email to