Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
IcedTea and ecj (with gcj) build errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Abraxas
l33t
l33t


Joined: 25 May 2003
Posts: 814

PostPosted: Sat Dec 08, 2007 12:57 am    Post subject: IcedTea and ecj (with gcj) build errors Reply with quote

I've tried several times to build ecj with gcj support but I keep getting the same error no matter what I do. I've been following this guide in an attempt to get Icedtea up and running. It links to this page. I can get gcj built but when I try to compile ecj with the gcj USE flag I get the following error:

Code:

 * bootstrapping ecj with javac
Exception in thread "main" java.lang.NullPointerException
   at java.lang.VMClassLoader.defineClass(libgcj.so.9)
   at java.lang.ClassLoader.defineClass(libgcj.so.9)
   at java.security.SecureClassLoader.defineClass(libgcj.so.9)
   at java.net.URLClassLoader.findClass(libgcj.so.9)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.9)
   at java.lang.ClassLoader.loadClass(libgcj.so.9)
   at java.lang.ClassLoader.loadClass(libgcj.so.9)
   at java.lang.VMClassLoader.defineClass(libgcj.so.9)
   at java.lang.ClassLoader.defineClass(libgcj.so.9)
   at java.security.SecureClassLoader.defineClass(libgcj.so.9)
   at java.net.URLClassLoader.findClass(libgcj.so.9)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.9)
   at java.lang.ClassLoader.loadClass(libgcj.so.9)
   at java.lang.ClassLoader.loadClass(libgcj.so.9)
   at java.lang.VMClassLoader.defineClass(libgcj.so.9)
   at java.lang.ClassLoader.defineClass(libgcj.so.9)
   at java.security.SecureClassLoader.defineClass(libgcj.so.9)
   at java.net.URLClassLoader.findClass(libgcj.so.9)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.9)
   at java.lang.ClassLoader.loadClass(libgcj.so.9)
   at java.lang.ClassLoader.loadClass(libgcj.so.9)
   at gnu.java.lang.MainThread.run(libgcj.so.9)
 *
 * ERROR: dev-java/eclipse-ecj-3.3.0-r1 failed.
 * Call stack:
 *                     ebuild.sh, line 1701:  Called dyn_compile
 *                     ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                     ebuild.sh, line   44:  Called src_compile
 *   eclipse-ecj-3.3.0-r1.ebuild, line   58:  Called die
 * The specific snippet of code:
 *                      ${javac} $(find org/ -name '*.java') || die "${MY_PN} bootstrap failed!"
 *  The die message:
 *   ecj bootstrap failed!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/elog/dev-java:eclipse-ecj-3.3.0-r1:20071208-005144.log'.
 * This ebuild used the following eclasses from overlays:
 *   /usr/portage/local/gcj-overlay/eclass/java-utils-2.eclass
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME="/home/abraxas/.gentoo/java-config-2/current-user-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info


Does anyone know what is going on? I've tried looking up info on this issue but haven't been able to come up with much. I would also like to know if there is a specific version of ecj that I should be using and what JDK I should be using for the build process.
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Sun Dec 09, 2007 1:15 pm    Post subject: Reply with quote

Just compile ecj w/o gcj useflag. At least I haven't built it with gcj.

I tried to compile IcedTea from hg with GCJ 4.3_alpha, but I get an OOM killer for gij.

EDIT: I also get an OOM when trying to compile eclipse-ecj with gcj.
Seems 2GB RAM and 1GB swap aren't enough :P
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
Abraxas
l33t
l33t


Joined: 25 May 2003
Posts: 814

PostPosted: Mon Dec 10, 2007 2:25 am    Post subject: Reply with quote

gimpel wrote:
Just compile ecj w/o gcj useflag. At least I haven't built it with gcj.

I tried to compile IcedTea from hg with GCJ 4.3_alpha, but I get an OOM killer for gij.

EDIT: I also get an OOM when trying to compile eclipse-ecj with gcj.
Seems 2GB RAM and 1GB swap aren't enough :P


The problem is that ecj must be compiled with gcj support to build IcedTea.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum