[csw-maintainers] Problems with GCC Java compiler
Dagobert Michelsen
dam at opencsw.org
Mon Oct 7 15:01:57 CEST 2013
Hi folks,
I am again fiddling with gcc flavors and noticed a problem with gcj (not that it ever
worked on our release):
1. libiconv is needed, but no longer linked in
Although I didn't tinker with this the issue may be resolved easily.
http://sourceforge.net/apps/trac/gar/changeset?new=22091%40csw%2Fmgar%2Fpkg%2Fgcc4%2Ftrunk%2FMakefile&old=20525%40csw%2Fmgar%2Fpkg%2Fgcc4%2Ftrunk%2FMakefile
> dam at unstable10s [unstable10s]:/home/dam/mgar/pkg/pdftk/trunk/work/solaris10-sparc/build-isa-sparcv8plus/pdftk-1.45-dist/java > /opt/csw/bin/gcj-4.8 -Wall -Wextra -fsource=1.3 -O2 --encoding=UTF-8 --classpath="/usr/share/java/libgcj-4.8.jar:/home/dam/mgar/pkg/pdftk/trunk/work/solaris10-sparc/build-isa-sparcv8plus/pdftk-1.45-dist/java:." -C com/lowagie/text/ElementTags.java
> ld.so.1: gij-4.8: fatal: relocation error: file /opt/csw/lib/sparcv8/libgcj.so.14: symbol libiconv_open: referenced symbol not found
> Killed
> zsh: 12672 exit 1 /opt/csw/bin/gcj-4.8 -Wall -Wextra -fsource=1.3 -O2 --encoding=UTF-8 -C
2. Some obscure compilation error, I will take any advice here:
> dam at unstable10s [unstable10s]:/home/dam/mgar/pkg/pdftk/trunk/work/solaris10-sparc/build-isa-sparcv8plus/pdftk-1.45-dist/java > LD_PRELOAD=/opt/csw/lib/libiconv.so /opt/csw/bin/gcj-4.8 -Wall -Wextra -fsource=1.3 -O2 --encoding=UTF-8 --classpath="/usr/share/java/libgcj-4.8.jar:/home/dam/mgar/pkg/pdftk/trunk/work/solaris10-sparc/build-isa-sparcv8plus/pdftk-1.45-dist/java:." -C com/lowagie/text/ElementTags.java
> Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jdt.internal.compiler.batch.GCCMain
> at gnu.java.lang.MainThread.run(libgcj.so.14.0.0)
> Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.batch.GCCMain not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/opt/csw/share/java/ecj.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
> at java.net.URLClassLoader.findClass(libgcj.so.14.0.0)
> at java.lang.ClassLoader.loadClass(libgcj.so.14.0.0)
> at java.lang.ClassLoader.loadClass(libgcj.so.14.0.0)
> at gnu.java.lang.MainThread.run(libgcj.so.14.0.0)
> zsh: 12684 exit 1 LD_PRELOAD=/opt/csw/lib/libiconv.so /opt/csw/bin/gcj-4.8 -Wall -Wextra -O2
Best regards
-- Dago
--
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2351 bytes
Desc: not available
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20131007/bd5149bf/attachment-0001.p7s>
More information about the maintainers
mailing list