[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: out of memory building oct file
From: |
Geraint Paul Bevan |
Subject: |
Re: out of memory building oct file |
Date: |
Sun, 15 May 2005 17:45:16 +0100 |
User-agent: |
Mozilla Thunderbird 0.5 (X11/20040306) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Probert wrote:
> Folks,
> I'm trying to build a moderate size (500 line) DLD into an oct file,
> and mkoctfile runs a long time then bombs with "g++: Internal Error:
> Killed (program cc1plus)" I am running on SUsE 8.2 with gcc 3.3, octave
> 2.1.63. When I watch with system monitor, I can see why its getting
> killed - it slowly uses up all 256M of memory and then all of the 486 M
> of swap space and then gets killed.
> Does anybody have any experience with this? Can a bad c++ program do
> this, or is gcc 3.3 known for having a problem like this?
>
I have encountered a few internal compiler errors with g++ when I have
asked it to optimise C++ programs which have included particularly
complex expressions. You could try setting the CXXFLAGS environment
variable to include -O0 to prevent g++ from attempting to optimise the code:
CXXFLAGS='-O0' mkoctfile hello.cc
You might also want to check the gcc bugs database and report the error
if it is not already included. Instructions are at
http://gcc.gnu.org/bugs.html
- --
Geraint Bevan
http://homepage.ntlworld.com/geraint.bevan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iEYEARECAAYFAkKHfJsACgkQcXV3N50QmNMpWgCdGNC8LAj7v9yQSLA5amT6VYk0
0EkAn3zS1rdGrTr66v5qtCk5OuqwbzQp
=glwP
-----END PGP SIGNATURE-----
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------