Date: Fri, 12 Jan 2007 15:40:02 +0900 From: "OSANAI Syoko" <sanai_syo@hotmail.com> To: freebsd-java@freebsd.org Subject: Build failure jdk1.5 Message-ID: <BAY102-F21D0E4E6CCDA8792C84CEC81B00@phx.gbl>
next in thread | raw e-mail | index | archive | help
To Michael Kastner, "Build failure jdk1.5" Fri Dec 8 07:15:20 PST 2006 Hello, Can you compile jdk1.5 on FreeBSD? In my opinion, you have to have these two steps to resolve the broblem. I had the same problem, but I was able to compile this way! 1. Open this source file with an editor (vi, emacs and the like) "/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java" 2. Comment out or delete these three lines in the file. 1. line 226 2. line 389 3. line 429 Each line starts "Java HotSpot(TM) Client VM warning:", so you have to do this, "//Java HotSpot(TM) Client VM warning:". After that, you may restart compile (make;make install). I hope my answer be useful for your probrem. Enjoy java! :) ---------------------------------------------------------------------------- >Hello, > >maybe someone can help me or give me hint. I'm trying to build JDK 1.5 on >FreeBsd 6.2 RC1. But the build stops due to some error. I don't really know, how >to fix this. > >Is this a JDK oder a FreeBSD-Problem? Where could I start looking for solutions? > >The error message follows below. > >Greetings > >Michael Kastner > >------------------------------------------------------------------------------- > >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: ><identifier> expected >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: >unclosed character literal >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:227: >')' expected > private static final class Aliases > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: ><identifier> expected >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: >unclosed character literal >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:390: >')' expected > private static final class Classes > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: ><identifier> expected >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: >unclosed character literal >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:430: >')' expected > private static final class Cache > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: >cannot find symbol >symbol : class TM >location: class sun.nio.cs.StandardCharsets >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: >cannot find symbol >symbol : class Java >location: class sun.nio.cs.StandardCharsets >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location >^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: >cannot find symbol >symbol : class TM >location: class sun.nio.cs.StandardCharsets >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: >cannot find symbol >symbol : class Java >location: class sun.nio.cs.StandardCharsets >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location >^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: >cannot find symbol >symbol : class TM >location: class sun.nio.cs.StandardCharsets >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: >cannot find symbol >symbol : class Java >location: class sun.nio.cs.StandardCharsets >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location >^ >../../../src/share/classes/java/io/ObjectStreamClass.java:869: warning: >non-varargs call of varargs method with inexact argument type for last parameter; >cast to java.lang.Object for a varargs call >cast to java.lang.Object[] for a non-varargs call and to suppress this warning > return cons.newInstance(null); > ^ >../../../src/share/classes/java/io/ObjectStreamClass.java:949: warning: >non-varargs call of varargs method with inexact argument type for last parameter; >cast to java.lang.Object for a varargs call >cast to java.lang.Object[] for a non-varargs call and to suppress this warning > readObjectNoDataMethod.invoke(obj, null); > ^ >../../../src/share/classes/java/io/ObjectStreamClass.java:977: warning: >non-varargs call of varargs method with inexact argument type for last parameter; >cast to java.lang.Object for a varargs call >cast to java.lang.Object[] for a non-varargs call and to suppress this warning > return writeReplaceMethod.invoke(obj, null); > ^ >../../../src/share/classes/java/io/ObjectStreamClass.java:1006: warning: >non-varargs call of varargs method with inexact argument type for last parameter; >cast to java.lang.Object for a varargs call >cast to java.lang.Object[] for a non-varargs call and to suppress this warning > return readResolveMethod.invoke(obj, null); > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: >missing method body, or declare abstract >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: >missing method body, or declare abstract >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: >missing method body, or declare abstract >Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:470: >cannot reference this before supertype constructor has been called > super("sun.nio.cs", new Aliases(), new Classes(), new Cache()); > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:470: >cannot reference this before supertype constructor has been called > super("sun.nio.cs", new Aliases(), new Classes(), new Cache()); > ^ >/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:470: >cannot reference this before supertype constructor has been called > super("sun.nio.cs", new Aliases(), new Classes(), new Cache()); > ^ >../../../src/share/classes/sun/misc/ProxyGenerator.java:335: warning: >non-varargs call of varargs method with inexact argument type for last parameter; >cast to java.lang.Class for a varargs call >cast to java.lang.Class[] for a non-varargs call and to suppress this warning > hashCodeMethod = Object.class.getMethod("hashCode", null); > ^ >../../../src/share/classes/sun/misc/ProxyGenerator.java:338: warning: >non-varargs call of varargs method with inexact argument type for last parameter; >cast to java.lang.Class for a varargs call >cast to java.lang.Class[] for a non-varargs call and to suppress this warning > toStringMethod = Object.class.getMethod("toString", null); > ^ >../../../src/share/classes/sun/security/jca/ProviderConfig.java:243: warning: >non-varargs call of varargs method with inexact argument type for last parameter; >cast to java.lang.Object for a varargs call >cast to java.lang.Object[] for a non-varargs call and to suppress this warning > obj = cons.newInstance(new String[] { argument }); > ^ >../../../src/share/classes/javax/xml/transform/TransformerException.java:329: >warning: non-varargs call of varargs method with inexact argument type for last >parameter; >cast to java.lang.Class for a varargs call >cast to java.lang.Class[] for a non-varargs call and to suppress this warning > null); > ^ >../../../src/share/classes/javax/xml/transform/TransformerException.java:334: >warning: non-varargs call of varargs method with inexact argument type for last >parameter; >cast to java.lang.Object for a varargs call >cast to java.lang.Object[] for a non-varargs call and to suppress this warning > exception = (Throwable) meth.invoke(exception, null); > ^ >../../../src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java:1186: >warning: non-varargs call of varargs method with inexact argument type for last >parameter; >cast to java.lang.Object for a varargs call >cast to java.lang.Object[] for a non-varargs call and to suppress this warning > return (IOException)ctr.newInstance(args); > ^ >../../../src/share/classes/com/sun/jmx/mbeanserver/StandardMetaDataImpl.java:637: >warning: non-varargs call of varargs method with inexact argument type for last >parameter; >cast to java.lang.Object for a varargs call >cast to java.lang.Object[] for a non-varargs call and to suppress this warning > result = meth.invoke(instance,null); > ^ >../../../src/share/classes/com/sun/jmx/mbeanserver/MBeanInstantiatorImpl.java:162: >warning: non-varargs call of varargs method with inexact argument type for last >parameter; >cast to java.lang.Object for a varargs call >cast to java.lang.Object[] for a non-varargs call and to suppress this warning > moi= cons.newInstance(null); > ^ >Note: * uses or overrides 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. >21 errors >12 warnings >gmake[3]: *** [.compile.classlist] Error 1 >gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java/java' >gmake[2]: *** [all] Error 1 >gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java' >gmake[1]: *** [all] Error 1 >gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make' >gmake: *** [j2se-build] Error 2 >*** Error code 2 > >Stop in /usr/ports/java/jdk15. ----- sanai@tokyo _________________________________________________________________ $B%1!<%?%$$G!"30=P@h$+$i$b%a%C%;%s%8%c!<(B http://messenger.live.jp/mobile.htm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY102-F21D0E4E6CCDA8792C84CEC81B00>