This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Sun, Oct 17, 2004 at 11:19:51AM -0400, Povolotsky, Alexander wrote:Out of Memory: Killed process 9807 (cc1). powerpc-linux-gcc-3.3.2: Internal error: Terminated (program cc1)
You ran out of memory, and the kernel had to kill your cc1 process.
Nothing you can do about that really, apart from adding memory or adding swap.
The amount of memory required for running software seems to follow something like "The Law of More"... In early 80's 64 kbytes was enough, in late 80's 640 kbytes, in early 90's 6.4 Mbytes, in late 90's 64 Mbytes and now in early 2000's this seems to be 640 Mbytes...
Using 'top -b' during the GCC-build and then grep'ing the 'cc1' process values from the logfile, then sort'ing it, I got the following max memory needs for the gcc-3.2.3 when building the gcc-3.2.3 sources :
3747 root 25 0 24436 23M 3856 R 99,6 4,7 1:31 cc1 3747 root 25 0 24012 23M 3744 R 99,6 4,6 1:21 cc1 3747 root 25 0 23032 22M 3796 R 99,6 4,4 1:26 cc1 3747 root 25 0 22804 22M 3744 R 99,5 4,4 1:16 cc1
So 23 Mbytes was required for this compile. Meanwhile for the newer gcc-3.3.5 when compiling the gcc-3.3.5 sources I got something much bigger :
26227 root 25 0 114M 114M 3804 R 99,3 22,7 1:25 cc1 26227 root 25 0 113M 113M 3852 R 99,4 22,6 1:30 cc1 26227 root 25 0 113M 113M 3776 R 99,4 22,6 1:20 cc1 26227 root 25 0 108M 108M 3688 R 99,3 21,6 1:15 cc1
This was tested with a RedHat 7.3 target cross-toolchain being for the host and 'i486-linux-gnu' being the target, on my RedHat 8.0 build system.
If one thinks gcc-3.2.x being good enough, then maybe something can be done with this issue... Is there some serious problem with gcc-3.2.x and Linux/PPC ? The RedHat 8.0 and AFAIK the RedHat 9.0 came with gcc-3.2.x, maybe SuSE 9.0 etc., so with x86 there seemingly was no problems....
I really thought it should still be possible to build (in reasonable time) GCCs in those 5 - 10 years old PCs with only 64 Mbyte memory (4 x 16 MB SIMM)...
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |