Gentoo Archives: gentoo-java

From: Hanno Meyer-Thurow <h.mth@×××.de>
To: gentoo-java@l.g.o
Cc: world.root@×××××.com
Subject: Re: [gentoo-java] work on gcj for gentoo
Date: Wed, 22 Feb 2006 16:49:29
In Reply to: [gentoo-java] work on gcj for gentoo by Hanno Meyer-Thurow
Hi list!
I got ant-core built by native ecj. I added a simple Ecj CompilerAdapter
for ant-core to use -Dbuild.compiler=ecj which seems to work. That
CompilerAdapter is a copy of Gcj CompilerAdapter plus infos from

Now if one Java developer could help to improve the CompilerAdapter
for Ecj I would be very happy.

Why I add another CompilerAdaper for Ecj?
I have to delete the one from ecj because of missing ant-core at that
point. I also want to use the ecj binary instead of gij / ecj.jar.

How did I get there?
I put my ecj binary to ${JAVA_HOME}/bin/ecj-native.
I add a wrapper script as ${JAVA_HOME}/bin/ecj.
Which looks like
	"ecj-native -bootclasspath /opt/gcj-jdk-4.1/share/java/libgcj-4.1.0-pre20060219.jar $@"


My diff to ant-core is attached.
I will update my overlay soon.

Any help or pointers are welcomed!
Especially of sanitizing all this.

Another thing I came across. Something to worry about?

nb ~ # ldd /opt/gcj-jdk-4.1/lib/
	... => /usr/lib/gcc/i686-pc-linux-gnu/4.1.0-pre20060219/ (0xb6a51000)
nb ~ # ldd /opt/gcj-jdk-4.1/lib/
	... => /opt/gcj-jdk-4.1/lib/ (0xb6a4c000)
nb ~ # ldd /opt/gcj-jdk-4.1/lib/
	... => /usr/lib/gcc/i686-pc-linux-gnu/4.1.0-pre20060219/ (0xb7780000)



File name MIME type
ant-core-ecj.diff text/x-patch