On Jan 14, 2008 5:09 AM, Andrew Haley <[EMAIL PROTECTED]> wrote: > > Harpal Grover writes: > > Hello all, > > > > I downloaded and built gcc 4.2.2 on my linux box. I have also used the > > sources to build a cross compiler using Ranjit's Matthews guide. The > > build went just fine. I tried to compile my java application and got > > the following error: > > > > c1: out of memory allocating 4064 bytes after a total of 3909824512 bytes > > > > The specs on my laptop are as follows: > > Intel Core 2 Duo > > Suse 10.2 64-bit > > Linux 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006 x86_64 > > x86_64 x86_64 GNU/Linux > > 4 GB Ram > > > > jc1 spiked from 1 gig of memory to close to 4gb, eats up the swap and > > then finally crashes. Is there any additional information you guys > > would like me to provide? If so please feel free to let me know and I > > gladly will. > > I want to know what you were trying to compile. > > Andrew.
Hello I am trying to compile a java app. I don't have the script in front of me that i am using because I am at a client's office right now. The jist of the command line is as follows: gcj -O -fjni -s -main=main.App --classpath=x1.jar x2.jar x3.jar x4.jar x5.jar x6.jar x7.jar x8.jar -o scln.exe class1.java class2.java class3.java ... class125.java -ly -ldz So, this was fine compiling on Windows using a Native Cross Compiler provided by Mohan Embar on a 32 bit processor. After upgrading my hardware to a 64 bit processor, things were not working as pleasant as I was hoping for. After some deliberation, I decided to build a cross compiler on Linux using Ranjit Matthews tutorial. Long story short, I contacted Ranjit and Marco Trudel on this matter, and they have encouraged me to take this matter into my own hands. So I am going to get started on debugging this issue tonight. I have been looking for a good excuse to get involved in development for gcc for sometime now and this is a good time. Marco has confirmed this issue seems to be isolated to 64 bit processors. I am new to this, so from my understanding gdb is the debugging tool i am going to want to use. As for IDE, what do you recommend? You must keep in mind I am quite spoiled by such IDE's as Eclipse and Borland :P, so I though KDevelop may be suit my needs? And any advice, or direction is gladly welcomed. Thanks -- Harpal Grover President Harpal Grover Consulting Inc