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
In Reply to: Re: [gentoo-java] work on gcj for gentoo by Hanno Meyer-Thurow
On Fri, 24 Feb 2006 18:26:29 +0100
Hanno Meyer-Thurow <h.mth@×××.de> wrote:

> /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 > -Dgnu.gcj.runtime.VMClassLoader.library_control=never -l-com-sun-javadoc -l-com-sun-tools-doclets-Taglet -l-gnu-classpath-tools-gjdoc > gcj --classpath=. -fassume-compiled -I./src -I. -I/usr/share/antlr/lib/antlr.jar -I. -g -O2 -Wl,-O1 -o .libs/gjdoc -Dgnu.gcj.runtime.VMClassLoader.library_control=never /var/tmp/portage/gjdoc-0.7.7/work/gjdoc-0.7.7/.libs/ /var/tmp/portage/gjdoc-0.7.7/work/gjdoc-0.7.7/.libs/ /var/tmp/portage/gjdoc-0.7.7/work/gjdoc-0.7.7/.libs/ > /var/tmp/portage/gjdoc-0.7.7/work/gjdoc-0.7.7/.libs/ undefined reference to `java::lang::Class::getSuperclass()' > collect2: ld returned 1 exit status > make[2]: *** [gjdoc] Fehler 1
AFAIS it is fixed by this for x86/glibc usage, at least here: (There is much more from toolchain.eclass that we want.) ... strip-flags ${S}/configure ${conf} \ || die "configure failed!" make \ BOOT_CFLAGS="${CFLAGS}" \ LDFLAGS="-Wl,-O1" \ LIBPATH="/opt/${PN}-${SLOT}/lib" \ STAGE1_CFLAGS="-O" \ profiledbootstrap \ || die "make failed!" ... --- Btw, I changed this to take effect now: - --with-languages=java + --enable-languages=c,c++,java This stops objc to build. We want language c for bootstrapping stuff. Fixes that error?! --- lib/ still links to from system gcc. I do not like to see that. But, however, the more we copy from toolchain.eclass it may change. Regards, Hanno -- gentoo-java@g.o mailing list