Here's the error output on a compiling resin 3.1.2 on a 64-bit system, [mkdir] Created dir: /var/tmp/portage/www-servers/resin-3.1.2/work/resin-3.1.2/modules/resin/classes [copy] Copying 99 files to /var/tmp/portage/www-servers/resin-3.1.2/work/resin-3.1.2/modules/resin/classes [javac] Compiling 3312 source files to /var/tmp/portage/www-servers/resin-3.1.2/work/resin-3.1.2/modules/resin/classes [javac] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space [javac] at java.util.HashMap.values(HashMap.java:950) [javac] at com.sun.tools.javac.jvm.ClassReader.close(ClassReader.java:1470) [javac] at com.sun.tools.javac.main.JavaCompiler.close(JavaCompiler.java:578) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:618) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:544) [javac] at com.sun.tools.javac.Main.compile(Main.java:67) [javac] at com.sun.tools.javac.Main.main(Main.java:52) BUILD FAILED /var/tmp/portage/www-servers/resin-3.1.2/work/resin-3.1.2/build.xml:203: The following error occurred while executing this line: /var/tmp/portage/www-servers/resin-3.1.2/work/resin-3.1.2/build.xml:262: Compile failed; see the compiler error output for details. This bug looks like it's the same as http://bugs.gentoo.org/show_bug.cgi?id=184818. The build.xml in 3.1.2 also says 256m, so it looks like this bug was not fixed.
bug 184818 was due to low memory in Xen guest. Please try recompiling with 256m changed to 384m and if that fails also try using 512m. Please report back with results.
Created attachment 132817 [details] modified ebuild to used revision related patch The patch is the next attachment
Created attachment 132820 [details, diff] Patch 3.1.2 with max java memory set to 384M /usr/portage/www-servers/resin/files/3.1.2/resin-3.1.2-r1-gentoo.patch with max java memory set to 384M
Pierre: I'll fix this using simple sed, so no patch is needed. I'm also waiting on Maurice to confirm that raising from 256 to 384 megs fixes this. Also please attach patches, not complete ebuilds - it makes reviewing the changes a lot easier.
Modified build.xml to set Max java memory to 384M. With this configuration, the ebuild succeed. I didn't test resin by itself.
Might want to also try forcing ecj instead of javac. I decided to do that with Tomcat on amd64 vs upping the memory. Just another way to go that's a bit greener :) Not that I am a big fan of ecj or etc, but it gets the same job done with less resources at times.
I just tried the patch and it compiles and installs fine.
Fixed, please sync in about 30 minutes and emerge resin again.