Build problems on Ubuntu 8.04
David Herron
David.Herron at Sun.COM
Mon Apr 21 14:03:31 UTC 2008
I saw that and have filed a bug about it.
6681798 (build) CharsetEncoder.java fails to compile in openjdk6 on
ubuntu 8.04
http://bugs.sun.com/view_bug.do?bug_id=6681798
There's a patch in the icedtea distribution that's a workaround .. it is
to essentially do "export SHELL=/bin/bash" .. there is a shell script
which generates that source file from a template, and that shell script
doesn't behave right under the 'dash' in 8.04 which is the shell used on
Ubuntu. It behaves right in the dash in 7.10.
I don't really like that workaround because it is system-specific
(requires that bash be installed).
I haven't checked with the responsible engineer recently to see what his
status is.
- David Herron
Roman Kennke wrote:
> Hi there,
>
> I've just setup a box with the soon-to-be-released Ubuntu 8.04, and see
> a number of problems:
>
> Minor: make sanity does not check for gawk and c++, although the build
> requires them. Maybe there are some more of these, but this is what I
> found.
>
> Major:
> Compilation of the NIO classes fails, it looks like the generation of a
> couple of source files does not work correctly. Probably this is also a
> problem with missing tools, but I can't figure out what it could be.
> Telling from the genCoder.sh script, this would be sed and awk, but both
> are installed. See javac error below. Any ideas on this one?
>
> Cheers, Roman
>
> # Running javac:
> /usr/lib/jvm/java-6-openjdk/bin/java -Xmx896m -Xms128m -XX:PermSize=32m
> -XX:MaxPermSize=160m
> -Xbootclasspath/p:/home/roman/src/OpenJDK/openjdk/build/linux-amd64/langtools/dist/bootstrap/lib/javac.jar -jar /home/roman/src/OpenJDK/openjdk/build/linux-amd64/langtools/dist/bootstrap/lib/javac.jar -source 1.5 -target 5 -encoding ascii -Xbootclasspath:/home/roman/src/OpenJDK/openjdk/build/linux-amd64/classes -sourcepath /home/roman/src/OpenJDK/openjdk/build/linux-amd64/gensrc:../../../src/solaris/classes:../../../src/share/classes -d /home/roman/src/OpenJDK/openjdk/build/linux-amd64/classes @/home/roman/src/OpenJDK/openjdk/build/linux-amd64/tmp/java/java.lang/java/.classes.list
> /home/roman/src/OpenJDK/openjdk/build/linux-amd64/gensrc/java/nio/charset/CharsetEncoder.java:142: cannot find symbol
> symbol : class $replType$
> location: class java.nio.charset.CharsetEncoder
> private $replType$ replacement;
> ^
> /home/roman/src/OpenJDK/openjdk/build/linux-amd64/gensrc/java/nio/charset/CharsetEncoder.java:185: cannot find symbol
> symbol : class $replType$
> location: class java.nio.charset.CharsetEncoder
> $replType$ replacement)
> ^
> /home/roman/src/OpenJDK/openjdk/build/linux-amd64/gensrc/java/nio/charset/CharsetEncoder.java:246: cannot find symbol
> symbol : class $replType$
> location: class java.nio.charset.CharsetEncoder
> public final $replType$ replacement() {
> ^
> /home/roman/src/OpenJDK/openjdk/build/linux-amd64/gensrc/java/nio/charset/CharsetEncoder.java:275: cannot find symbol
> symbol : class $replType$
> location: class java.nio.charset.CharsetEncoder
> public final CharsetEncoder replaceWith($replType$ newReplacement) {
> ^
> /home/roman/src/OpenJDK/openjdk/build/linux-amd64/gensrc/java/nio/charset/CharsetEncoder.java:301: cannot find symbol
> symbol : class $replType$
> location: class java.nio.charset.CharsetEncoder
> protected void implReplaceWith($replType$ newReplacement) {
> ^
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 5 errors
> make[3]: *** [.compile.classlist] Error 1
> make[3]: Leaving directory
> `/home/roman/src/OpenJDK/openjdk/jdk/make/java/java'
> make[2]: *** [all] Error 1
> make[2]: Leaving directory
> `/home/roman/src/OpenJDK/openjdk/jdk/make/java'
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/home/roman/src/OpenJDK/openjdk/jdk/make'
>
>
>
More information about the build-dev
mailing list