Re: [jnc-users] JNC hangs
Status: Beta
Brought to you by:
soapy
From: Marco T. <mt...@gm...> - 2007-02-19 14:29:15
|
Lee D. Painter wrote: >>> The compile never completed. The JNC window just stayed with the > text >>> below (I had set the flag to output commands btw and these were not >>> output) >>> >>> : processing swt-win32.jar >> You might run out of RAM/Swap. GCJ 4.3 needs a lot more compared to > GCJ >> 4.2. I can compile swt without problems. >> What operating system do you have? >> How much Ram? >> How do you compile the jar? The whole or only needed references? >> > > This is a Windows XP Service Pack 2 machine with 1 GB memory. Should work... I have the same setup and can compile swt for references only... > All of the jar files are compiled as a whole except swt.jar which is > references only. Can you try a compilation with reference only by starting JNC by running "autocompiler -debug"? This will start the gui but keep the console open and print exceptions if any... >>> I started the build just as I was leaving for the office yesterday >>> morning and it was still at that point 8 hours later. I didn't try >>> without optimization; >> Would be nice to know the result with optimization. >>> There were no processes running except the JavaNativeCompiler.exe. >>> Normally when compiling I see quite a bit of activity in the task >>> manager with jc1, gcj, ar or cc1. >> Very strange! The GUI frontend calls "gcj" and waits until it returns. >> So there really ought to be something... Unless you run out of memory > of >> course. Then the behavior is unspecified I guess. >> > > I've now run a few more builds and have a bit more information. I can > successfully compile SWT if I compile the whole jar but of course this > has linking issues with AWT. This produces the following output in the > log. > > [exec] - processing swt-win32.jar > [exec] [gcc-121694-win\bin\gcj > [exec] -fjni > [exec] -O2 > [exec] -Ilibs/win/gui/gui.jar > [exec] -c > [exec] ..\..\sslexplorer-agent\build\extension\swt-win32.jar > [exec] -o > [exec] > C:\DOCUME~1\lee\LOCALS~1\Temp\JNCTemp2ogdqu.out\swt-win32-win.jar.o > [exec] -I..\..\sslexplorer-agent\build\extension\nanoxml-2.2.3.jar > [exec] -I..\..\sslexplorer-agent\build\extension\agent-debug.jar > [exec] > -I..\..\sslexplorer-agent\build\extension\maverick-ssl-debug.jar > [exec] > -I..\..\sslexplorer-agent\build\extension\maverick-crypto.jar > [exec] -I..\..\sslexplorer-agent\build\extension\agent-en.jar > [exec] -I..\..\sslexplorer-agent\build\extension\agent-swt-en.jar > [exec] -I..\..\sslexplorer-agent\build\extension\log4j-java1.1.jar > [exec] > -I..\..\sslexplorer-agent\build\extension\commons-logging-java1.1.jar > [exec] > -I..\..\sslexplorer-agent\build\extension\maverick-util-debug.jar > [exec] -I..\..\sslexplorer-agent\build\extension\jRegistryKey.jar > [exec] -I..\..\sslexplorer-agent\build\extension\jzlib.jar > [exec] > -I..\..\sslexplorer-agent\build\extension\agent-swt-debug.jar] > > The problem seems to be when I have the swt.jar set to references only. > When I have this option, with or without optimization I only get the > following output in the log. > > [exec] - processing swt-win32.jar Well, that would print tons of messages if this printed the used commands. Therefore I disabled them. > I'm not sure if that's a clue but I never see the command output as the > successful compile above shows. This is using the same .jnc file with > the only difference being that the jar flag is unset to include > referenced classes only. Thats ok and intended. > Memory usage seems to be within the available limits. I'll try > increasing the virtual memory to see if that makes a difference. Actually, compiling in references only mode should use way less ram than compiling the complete jar. So this shouldn't be the cause here. Marco |