I have both oracle JDK 7 and JDK 8 installed on the default Java installation folder of my computer (Need both of them while working with Eclipse and miscellaneous project). I would have expected the configuration script to automatically choose the JDK 7 rather than JDK 8 as a Bootstrap. I'll uninstall Oracle JDK 8 and restart the build and let you know.
Thanks Guy Le 04/05/17, David Holmes <[email protected]> a écrit : > On 4/05/2017 9:25 PM, Guy Bonneau wrote: > >Did it. Both configuration and build logs are now shared at: > > > >https://www.dropbox.com/sh/6xbmjzxu8xlbsr0/AADBHa-Zn7owJpyeihlmej9pa?dl=0 > > The build log shows no explicit error that I can see. > > However the config logs show you are using 8u131 as a boot JDK - you can't > necessarily do that. To build 8u you need a JDK 7 boot JDK. > > David > > >Guy > > > >Le 04/05/17, *Sriram Narayanan * <[email protected]> a écrit : > >>It may be time saving to have the logs uploaded somewhere for a > >>comprehensive review and faster diagnostics.I > >> > >>Ram > >> > >>On Thursday, May 4, 2017, David Holmes <[email protected] > >><mailto:[email protected] <[email protected]>>> wrote: > >> > >> On 4/05/2017 2:07 PM, Guy Bonneau wrote: > >> > >> Looking in the build log I saw that some java compiled classes > >> seem to > >> be missing. Attempting to find the Java source files into the > >> cloned > >> repository yield nothing. Should those files be included > >> somewhere in > >> the repository either as Java source files or precompiles classes? > >> Unless they are dynamically generated? > >> > >> > >> These are just warnings that you can ignore. Those classes are in > >> the Oracle JDK sources, not the open sources, but the list has to > >> contain both. > >> > >> There should still be an actual error lurking somewhere in your > >> build log. > >> > >> David > >> > >> See below > >> > >> (cd > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/jdk/classes > >> && \ > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/fixpath.exe > >> -c /cygdrive/c/progra~1/java/jdk18~1.0_1/bin/java -XX:+UseSerialGC > >> -Xms32M -Xmx512M -cp > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/jdk/btclasses > >> build.tools.jarreorder.JarReorder \ > >> -o > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.contents.tmp > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/classlist > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.exclude > >> . ) > >> WARNING: Path does not exist as file or directory: > >> sun\misc\PostVMInitHook.class > >> WARNING: Path does not exist as file or directory: > >> sun\usagetracker\UsageTrackerClient.class > >> WARNING: Path does not exist as file or directory: > >> sun\usagetracker\UsageTrackerClient$1.class > >> WARNING: Path does not exist as file or directory: > >> sun\usagetracker\UsageTrackerClient$4.class > >> WARNING: Path does not exist as file or directory: > >> sun\usagetracker\UsageTrackerClient$2.class > >> WARNING: Path does not exist as file or directory: > >> sun\usagetracker\UsageTrackerClient$3.class > >> WARNING: Path does not exist as file or directory: > >> sun\dc\DuctusRenderingEngine.class > >> WARNING: Path does not exist as file or directory: > >> sun\font\T2KFontScaler.class > >> WARNING: Path does not exist as file or directory: > >> sun\font\T2KFontScaler$1.class > >> WARNING: Path does not exist as file or directory: > >> sun\security\provider\DSA$LegacyDSA.class > >> WARNING: Path does not exist as file or directory: > >> com\sun\crypto\provider > >> WARNING: Path does not exist as file or directory: javax\crypto > >> WARNING: Path does not exist as file or directory: > >> sun\awt\motif\X11GB2312.class > >> WARNING: Path does not exist as file or directory: > >> sun\awt\motif\X11GB2312$Decoder.class > >> WARNING: Path does not exist as file or directory: > >> sun\awt\motif\X11GB2312$Encoder.class > >> WARNING: Path does not exist as file or directory: > >> sun\awt\motif\X11GBK.class > >> WARNING: Path does not exist as file or directory: > >> sun\awt\motif\X11GBK$Encoder.class > >> WARNING: Path does not exist as file or directory: > >> sun\awt\motif\X11KSC5601.class > >> WARNING: Path does not exist as file or directory: > >> sun\awt\motif\X11KSC5601$Decoder.class > >> WARNING: Path does not exist as file or directory: > >> sun\awt\motif\X11KSC5601$Encoder.class > >> WARNING: Path does not exist as file or directory: sun\security\ec > >> WARNING: Path does not exist as file or directory: > >> sun\security\internal > >> WARNING: Path does not exist as file or directory: > >> sun\security\mscapi > >> WARNING: Path does not exist as file or directory: > >> sun\security\pkcs11 > >> WARNING: Path does not exist as file or directory: > >> com\oracle\jrockit\jfr > >> WARNING: Path does not exist as file or directory: > >> oracle\jrockit\jfr > >> WARNING: Path does not exist as file or directory: jdk\jfr > >> /usr/bin/mv > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.contents.tmp > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.contents > >> /usr/bin/mkdir -p > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib > >> /usr/bin/rm -f > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.rt.jar.contents > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.rt.jar.contents.tmp > >> /usr/bin/grep -e '\.class$' > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.contents > >> > >> > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.rt.jar.contents.tmp > >> make[2]: *** [CreateJars.gmk:268: > >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.rt.jar.contents] > >> Error 1 > >> make[2]: Leaving directory '/cygdrive/c/Projects/jdk-8/jdk/make' > >> make[1]: *** [BuildJdk.gmk:101: images] Error 2 > >> > >> > >> Le 03/05/17 à 22:22, *David Holmes * <[email protected]> > >> a écrit : > >> > >> On 4/05/2017 9:15 AM, Guy Bonneau wrote: > >> >Great! > >> > > >> >I cloned the default dev repository. > >> > > >> >I used the same configuration again. This time it went > >> farther. But it > >> >nonetheless failed again with: > >> > > >> >Updating images/src.zip > >> >make[2]: *** [CreateJars.gmk:268: > >> >/cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.rt.jar.contents] > >> >Error 1 > >> >make[2]: *** Waiting for unfinished jobs.... > >> >make[1]: *** [BuildJdk.gmk:101: images] Error 2 > >> >make: *** [/cygdrive/c/Projects/jdk-8//make/Main.gmk:136: > >> images-only] > >> >Error 2 > >> > > >> >Any hint? > >> > >> The actual error will be earlier in the log. > >> > >> David > >> > >> >Thanks > >> >Guy Bonneau > >> > > >> >Le 03/05/17 à 08:49, *David Holmes * > >> <[email protected]> a écrit : > >> >>On 3/05/2017 10:31 PM, Guy Bonneau wrote: > >> >>>I took the source code from: > >> >>> > >> >>>http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip > >> <http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip> > >> >>> > >> >>>which seems the 8u JDK. > >> >> > >> >>No that is the GA release of JDK 8. The latest 8u > >> sources are here: > >> >> > >> >>http://hg.openjdk.java.net/jdk8u/jdk8u-dev/ > >> <http://hg.openjdk.java.net/jdk8u/jdk8u-dev/> > >> >> > >> >>>And I have both latest Oracle JDK 7 and JDK 8 installed > >> on my computer. > >> >>>Thus I guess the bootstrap JDK must be Oracle JDK 7 > >> 1.7.0_80 > >> >> > >> >>Yes the bootstrap JDK for building 8/8u is 7u. > >> >> > >> >>David > >> >> > >> >>>Guy > >> >>> > >> >>>C:\Program Files\Java\jdk1.7.0_80 > >> >>> > >> >>>Le 02/05/17 à 23:56, *David Holmes * > >> <[email protected]> a > >> écrit : > >> >>>>Hi Guy, > >> >>>> > >> >>>>On 3/05/2017 1:04 PM, Guy Bonneau wrote: > >> >>>>>I am trying to build OpenJDK 8 under Windows 7 with > >> Cygwin 2.8.0 > >> >>and ran > >> >>>>>into many issues that I was able to successfully fix > >> until the > >> last one > >> >>>>>which leave me baffled. The configure command I use is: > >> >>>> > >> >>>>Are you trying to build the latest 8u sources or the > >> original 8 > >> >>>>sources? I suspect the former as the referenced > >> nashorn class below > >> >>>>does not exist as of 8u72. What boot JDK are you using? > >> >>>> > >> >>>>David > >> >>>>----- > >> >>>> > >> >>>>> > >> >>>>> > >> >>>>>bash ./configure > >> --with-freetype=/cygdrive/c/Projects/freetype-2.7 > >> >>>>>--with-target-bits=64 --enable-debug --disable-ccache > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>>Note that I had to apply this JDK 9 patch to be able > >> to build the > >> >>OpenJDK > >> >>>>>with Cygwin 2.8.0: > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>>http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b > >> <http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b> > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>>The build fails with: > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>>Running nasgen > >> >>>>> > >> >>>>>Exception in thread "main" java.lang.VerifyError: class > >> >>>>>jdk.nashorn.internal.objects.ScriptFunctionImpl > >> overrides final > >> method > >> >>>>>setPrototype.(Ljava/lang/Object;)V > >> >>>>> > >> >>>>> at java.lang.ClassLoader.defineClass1(Native > >> Method) > >> >>>>> > >> >>>>> at > >> java.lang.ClassLoader.defineClass(ClassLoader.java:763) > >> >>>>> > >> >>>>> at > >> >>>>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) > >> >>>>> > >> >>>>> at > >> java.net.URLClassLoader.defineClass(URLClassLoader.java:467) > >> >>>>> > >> >>>>> at > >> java.net.URLClassLoader.access$100(URLClassLoader.java:73) > >> >>>>> > >> >>>>> at > >> java.net.URLClassLoader$1.run(URLClassLoader.java:368) > >> >>>>> > >> >>>>> at > >> java.net.URLClassLoader$1.run(URLClassLoader.java:362) > >> >>>>> > >> >>>>> at > >> java.security.AccessController.doPrivileged(Native Method) > >> >>>>> > >> >>>>> at > >> java.net.URLClassLoader.findClass(URLClassLoader.java:361) > >> >>>>> > >> >>>>> at > >> java.lang.ClassLoader.loadClass(ClassLoader.java:424) > >> >>>>> > >> >>>>> at > >> >>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) > >> >>>>> > >> >>>>> at > >> java.lang.ClassLoader.loadClass(ClassLoader.java:357) > >> >>>>> > >> >>>>> at > >> >>>>>jdk.nashorn.internal.tools.nasgen.StringConstants.<clinit>(StringConstants.j > >> >>>>>ava:85) > >> >>>>> > >> >>>>> at > >> >>>>>jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn( > >> >>>>>ScriptClassInstrumentor.java:157) > >> >>>>> > >> >>>>> at > >> >>>>>jdk.internal.org > >> <http://jdk.internal.org>.objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j > >> >>>>>ava:509) > >> >>>>> > >> >>>>> at > >> >>>>>jdk.internal.org > >> <http://jdk.internal.org>.objectweb.asm.ClassReader.readCode(ClassReader.java:1445) > >> >>>>> > >> >>>>> at > >> >>>>>jdk.internal.org > >> <http://jdk.internal.org>.objectweb.asm.ClassReader.readMethod(ClassReader.java:1046) > >> >>>>> > >> >>>>> at > >> >>>>>jdk.internal.org > >> <http://jdk.internal.org>.objectweb.asm.ClassReader.accept(ClassReader.java:722) > >> >>>>> > >> >>>>> at > >> >>>>>jdk.internal.org > >> <http://jdk.internal.org>.objectweb.asm.ClassReader.accept(ClassReader.java:535) > >> >>>>> > >> >>>>> at > >> >>jdk.nashorn.internal.tools.nasgen.Main.process(Main.java:121) > >> >>>>> > >> >>>>> at > >> >>>>jdk.nashorn.internal.tools.nasgen.Main.processAll(Main.java:88) > >> >>>>> > >> >>>>> at > >> jdk.nashorn.internal.tools.nasgen.Main.main(Main.java:62) > >> >>>>> > >> >>>>>make[1]: *** [BuildNashorn.gmk:79: > >> >>>>>/cygdrive/c/Projects/openjdk/build/windows-x86_64-normal-server-fastdebug/na > >> >>>>>shorn/classes/_the.nasgen.run] Error 1 > >> >>>>> > >> >>>>>make: *** > >> [/cygdrive/c/Projects/openjdk//make/Main.gmk:122: > >> >>nashorn-only] > >> >>>>>Error 2 > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>>How can I fix this issue? > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>>Thanks > >> >>>>> > >> >>>>>GB > >> >>>>> > >> >>>>> > >> >>>>> > >> > >
