Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-java
Navigation:
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-java@g.o
From: Hanno Meyer-Thurow <h.mth@...>
Subject: Re: work on gcj for gentoo
Date: Wed, 22 Feb 2006 17:51:02 +0100
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
http://sources.redhat.com/ml/rhug-rhats/2004-05/msg00002.html

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 $@"

JAVA_HOME=/opt/gcj-jdk-4.1


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/libgcj.so.7
	...
	libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.0-pre20060219/libgcc_s.so.1 (0xb6a51000)
	...
nb ~ # ldd /opt/gcj-jdk-4.1/lib/libgij.so.7
	...
	libgcc_s.so.1 => /opt/gcj-jdk-4.1/lib/libgcc_s.so.1 (0xb6a4c000)
	...
nb ~ # ldd /opt/gcj-jdk-4.1/lib/lib-gnu-java-awt-peer-gtk.so.7
	...
	libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.0-pre20060219/libgcc_s.so.1 (0xb7780000)
	...


Regards,
Hanno
Attachment:
ant-core-ecj.diff (Text Data)
References:
work on gcj for gentoo
-- Hanno Meyer-Thurow
Navigation:
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: work on gcj for gentoo
Next by thread:
Re: work on gcj for gentoo
Previous by date:
Re: work on gcj for gentoo
Next by date:
Re: work on gcj for gentoo


Updated Jun 17, 2009

Summary: Archive of the gentoo-java mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.