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
Message-Id: 20060222175102.7fe10cf2.h.mth@web.de
In Reply to: [gentoo-java] work on gcj for gentoo by Hanno Meyer-Thurow
1 Hi list!
2 I got ant-core built by native ecj. I added a simple Ecj CompilerAdapter
3 for ant-core to use -Dbuild.compiler=ecj which seems to work. That
4 CompilerAdapter is a copy of Gcj CompilerAdapter plus infos from
5 http://sources.redhat.com/ml/rhug-rhats/2004-05/msg00002.html
6
7 Now if one Java developer could help to improve the CompilerAdapter
8 for Ecj I would be very happy.
9
10 Why I add another CompilerAdaper for Ecj?
11 I have to delete the one from ecj because of missing ant-core at that
12 point. I also want to use the ecj binary instead of gij / ecj.jar.
13
14 How did I get there?
15 I put my ecj binary to ${JAVA_HOME}/bin/ecj-native.
16 I add a wrapper script as ${JAVA_HOME}/bin/ecj.
17 Which looks like
18 "ecj-native -bootclasspath /opt/gcj-jdk-4.1/share/java/libgcj-4.1.0-pre20060219.jar $@"
19
20 JAVA_HOME=/opt/gcj-jdk-4.1
21
22
23 My diff to ant-core is attached.
24 I will update my overlay soon.
25
26 Any help or pointers are welcomed!
27 Especially of sanitizing all this.
28
29
30 Another thing I came across. Something to worry about?
31
32 nb ~ # ldd /opt/gcj-jdk-4.1/lib/libgcj.so.7
33 ...
34 libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.0-pre20060219/libgcc_s.so.1 (0xb6a51000)
35 ...
36 nb ~ # ldd /opt/gcj-jdk-4.1/lib/libgij.so.7
37 ...
38 libgcc_s.so.1 => /opt/gcj-jdk-4.1/lib/libgcc_s.so.1 (0xb6a4c000)
39 ...
40 nb ~ # ldd /opt/gcj-jdk-4.1/lib/lib-gnu-java-awt-peer-gtk.so.7
41 ...
42 libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.0-pre20060219/libgcc_s.so.1 (0xb7780000)
43 ...
44
45
46 Regards,
47 Hanno

Attachments

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