Gentoo Archives: gentoo-java

From: Hanno Meyer-Thurow <h.mth@×××.de>
To: gentoo-java@l.g.o
Subject: Re: [gentoo-java] work on gcj for gentoo
Date: Sat, 25 Feb 2006 14:42:20
Message-Id: 20060225154356.c399c5ed.h.mth@web.de
In Reply to: Re: [gentoo-java] work on gcj for gentoo by Hanno Meyer-Thurow
1 On Fri, 24 Feb 2006 18:26:29 +0100
2 Hanno Meyer-Thurow <h.mth@×××.de> wrote:
3
4 > /bin/sh ./libtool --tag=GCJ --mode=link gcj --classpath=. -fassume-compiled -I./src -I. -I/usr/share/antlr/lib/antlr.jar -I. -g -O2 -Wl,-O1 -o gjdoc --main=gnu.classpath.tools.gjdoc.Main
5 > -Dgnu.gcj.runtime.VMClassLoader.library_control=never -l-com-sun-javadoc -l-com-sun-tools-doclets-Taglet -l-gnu-classpath-tools-gjdoc antlr.so
6 > gcj --classpath=. -fassume-compiled -I./src -I. -I/usr/share/antlr/lib/antlr.jar -I. -g -O2 -Wl,-O1 -o .libs/gjdoc --main=gnu.classpath.tools.gjdoc.Main -Dgnu.gcj.runtime.VMClassLoader.library_control=never antlr.so /var/tmp/portage/gjdoc-0.7.7/work/gjdoc-0.7.7/.libs/lib-com-sun-javadoc.so /var/tmp/portage/gjdoc-0.7.7/work/gjdoc-0.7.7/.libs/lib-com-sun-tools-doclets-Taglet.so /var/tmp/portage/gjdoc-0.7.7/work/gjdoc-0.7.7/.libs/lib-gnu-classpath-tools-gjdoc.so
7 > /var/tmp/portage/gjdoc-0.7.7/work/gjdoc-0.7.7/.libs/lib-gnu-classpath-tools-gjdoc.so: undefined reference to `java::lang::Class::getSuperclass()'
8 > collect2: ld returned 1 exit status
9 > make[2]: *** [gjdoc] Fehler 1
10
11 AFAIS it is fixed by this for x86/glibc usage, at least here:
12 (There is much more from toolchain.eclass that we want.)
13
14 ...
15 strip-flags
16
17 ${S}/configure ${conf} \
18 || die "configure failed!"
19
20 make \
21 BOOT_CFLAGS="${CFLAGS}" \
22 LDFLAGS="-Wl,-O1" \
23 LIBPATH="/opt/${PN}-${SLOT}/lib" \
24 STAGE1_CFLAGS="-O" \
25 profiledbootstrap \
26 || die "make failed!"
27 ...
28
29 ---
30 Btw, I changed this to take effect now:
31
32 - --with-languages=java
33 + --enable-languages=c,c++,java
34
35 This stops objc to build.
36 We want language c for bootstrapping stuff.
37 Fixes that error?!
38
39 ---
40 lib/libgcj.so.7.0.0 still links to libgcc_s.so.1 from system gcc.
41
42 I do not like to see that. But, however, the more we copy
43 from toolchain.eclass it may change.
44
45
46 Regards,
47 Hanno
48 --
49 gentoo-java@g.o mailing list