JNLP failures building latest hg of IcedTea
Andrew John Hughes
gnu_andrew at member.fsf.org
Tue Sep 30 02:24:57 PDT 2008
2008/9/30 Andrew John Hughes <gnu_andrew at member.fsf.org>:
> 2008/9/30 Matthew Flaschen <matthew.flaschen at gatech.edu>:
>> Andrew John Hughes wrote:
>>> I picked up this from your first e-mail. I mean the commands run by
>>> make immediately above the error output.
>>
>> I'm attaching the full build log, for completeness.
>>
>> The commands leading up to the linker error are:
>>
>> if test "x/usr/bin/gcj" != x; then \
>> /usr/bin/gcj -g -O2 -Wl,-Bsymbolic -o native-ecj \
>> --main=org.eclipse.jdt.internal.compiler.batch.Main ; \
>> fi ; \
>> touch stamps/native-ecj.stamp
>> /tmp/ccdsNPzJ.o: In function `main':
>> /tmp/ccjkhu7s.i:11: undefined reference to
>> `org::eclipse::jdt::internal::compiler::batch::Main::class$'
>> collect2: ld returned 1 exit status
>>
>> The commands just before the build fails are:
>>
>> if ! test -d /home/matthew/Code/Java/IcedTea/icedtea7/bootstrap/jdk1.6.0 ; \
>> then \
>> /usr/lib/jvm/java-7-icedtea/bin/javac -J-Xmx512m -g -d extra-lib \
>> -source 1.5 \
>> -sourcepath extra -cp
>> /home/matthew/Code/Java/IcedTea/icedtea7/bootstrap/jdk1.6.0/jre/lib/rt.jar \
>> -bootclasspath '' @extra-source-files.txt ; \
>> else \
>>
>> /home/matthew/Code/Java/IcedTea/icedtea7/bootstrap/jdk1.6.0/bin/javac
>> -J-Xmx512m -g -d extra-lib \
>> -source 1.5 \
>> -sourcepath extra -cp
>> /home/matthew/Code/Java/IcedTea/icedtea7/bootstrap/jdk1.6.0/jre/lib/rt.jar \
>> -bootclasspath '' @extra-source-files.txt ; \
>> fi
>>
>> I'm fairly sure it's taking the second branch, as that directory does exist.
>>
>> As I noted it fails on
>> /home/matthew/Code/Java/IcedTea/icedtea7/extra/net/sourceforge/jnlp/about/Main.java
>> , which is one of the two files in extra-source-files.txt.
>>
>>> Hmmm, mine is 4.3.1, may be an issue with this older gcj but this
>>> failure shouldn't affect the rest of the build as it should fall
>>> back on interpreted ecj. Do you get a native-ecj file in your
>>> build directory?
>>
>> No, native-ecj doesn't build.
>>
>> Matt Flaschen
>>
>
> Ok I now think the whole native-ecj thing is a misnomer and not related.
> The lack of a binary would mean that the interpreted version would be used
> anyway by the javac.in script, but a --with-icedtea build doesn't use
> this anyway.
> /home/matthew/Code/Java/IcedTea/icedtea7/bootstrap/jdk1.6.0/bin/javac
> will actually
> be a symlink to /usr/lib/jvm/java-7-icedtea/bin/javac so the two
> branches of the if
> statement above are equivalent.
>
> So the problem is:
>
> /home/matthew/Code/Java/IcedTea/icedtea7/bootstrap/jdk1.6.0/bin/javac
> -J-Xmx512m -g -d extra-lib \
> -source 1.5 \
> -sourcepath extra -cp
> /home/matthew/Code/Java/IcedTea/icedtea7/bootstrap/jdk1.6.0/jre/lib/rt.jar
> \
> -bootclasspath '' @extra-source-files.txt ; \
>
> And I have a feeling it may be that your IcedTea is too old to use for
> a --with-icedtea build
> (i.e. it lacks some features of the netx support that the build
> expects to find there). A full
> build would compile them instead of expecting them to be in rt.jar.
> I'll try and do a --with-icedtea
> build myself with current IcedTea7 and see if I get the same failure,
> but this is probably because
> the one in Ubuntu Gutsy Gibbon will be very old now.
> --
> Andrew :-)
>
> Support Free Java!
> Contribute to GNU Classpath and the OpenJDK
> http://www.gnu.org/software/classpath
> http://openjdk.java.net
>
> PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
> Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
>
FWIW I just checked the IcedTea6 build I have here (quite old now -
based on b11)
and Launcher.class is in its rt.jar. So I strongly think this is a
case of the IcedTea
being too old to build against using the 'quick' method.
--
Andrew :-)
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
More information about the distro-pkg-dev
mailing list