View previous topic :: View next topic |
Author |
Message |
Abraxas l33t
Joined: 25 May 2003 Posts: 814
|
Posted: Sat Dec 08, 2007 12:57 am Post subject: IcedTea and ecj (with gcj) build errors |
|
|
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 |
|
|
gimpel Advocate
Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Sun Dec 09, 2007 1:15 pm Post subject: |
|
|
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 _________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
Back to top |
|
|
Abraxas l33t
Joined: 25 May 2003 Posts: 814
|
Posted: Mon Dec 10, 2007 2:25 am Post subject: |
|
|
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 |
The problem is that ecj must be compiled with gcj support to build IcedTea. |
|
Back to top |
|
|
|