From guy.bonneau at videotron.ca Wed May 3 03:04:39 2017 From: guy.bonneau at videotron.ca (Guy Bonneau) Date: Tue, 2 May 2017 23:04:39 -0400 Subject: build fail with Cygwin Message-ID: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> 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: 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 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.(StringConstants.j ava:85) at jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn( ScriptClassInstrumentor.java:157) at jdk.internal.org.objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j ava:509) at jdk.internal.org.objectweb.asm.ClassReader.readCode(ClassReader.java:1445) at jdk.internal.org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1046) at jdk.internal.org.objectweb.asm.ClassReader.accept(ClassReader.java:722) at 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 From david.holmes at oracle.com Wed May 3 03:55:56 2017 From: david.holmes at oracle.com (David Holmes) Date: Wed, 3 May 2017 13:55:56 +1000 Subject: build fail with Cygwin In-Reply-To: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> Message-ID: 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 > > > > 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.(StringConstants.j > ava:85) > > at > jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn( > ScriptClassInstrumentor.java:157) > > at > jdk.internal.org.objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j > ava:509) > > at > jdk.internal.org.objectweb.asm.ClassReader.readCode(ClassReader.java:1445) > > at > jdk.internal.org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1046) > > at > jdk.internal.org.objectweb.asm.ClassReader.accept(ClassReader.java:722) > > at > 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 > > > From david.holmes at oracle.com Wed May 3 12:49:42 2017 From: david.holmes at oracle.com (David Holmes) Date: Wed, 3 May 2017 22:49:42 +1000 Subject: build fail with Cygwin In-Reply-To: <7390d85efac61.5909957f@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5lOYdBmoRBok75lOadNtgZ@videotron.ca> <7390d85efac61.5909957f@videotron.ca> Message-ID: 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 > > 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/ > 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 * 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 >> > >> > >> > >> >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.(StringConstants.j >> >ava:85) >> > >> > at >> >jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn( >> >ScriptClassInstrumentor.java:157) >> > >> > at >> >jdk.internal.org.objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j >> >ava:509) >> > >> > at >> >jdk.internal.org.objectweb.asm.ClassReader.readCode(ClassReader.java:1445) >> > >> > at >> >jdk.internal.org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1046) >> > >> > at >> >jdk.internal.org.objectweb.asm.ClassReader.accept(ClassReader.java:722) >> > >> > at >> >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 >> > >> > >> > From guy.bonneau at videotron.ca Wed May 3 23:15:36 2017 From: guy.bonneau at videotron.ca (Guy Bonneau) Date: Wed, 03 May 2017 19:15:36 -0400 Subject: build fail with Cygwin In-Reply-To: <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5lOYdBmoRBok75lOadNtgZ@videotron.ca> <7390d85efac61.5909957f@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> Message-ID: <7210f8f59be86.590a2c58@videotron.ca> 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? Thanks Guy Bonneau Le 03/05/17 ? 08:49, David Holmes 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 > > > >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/ > > >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 * 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 > >>> > >>> > >>> > >>>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.(StringConstants.j > >>>ava:85) > >>> > >>> at > >>>jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn( > >>>ScriptClassInstrumentor.java:157) > >>> > >>> at > >>>jdk.internal.org.objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j > >>>ava:509) > >>> > >>> at > >>>jdk.internal.org.objectweb.asm.ClassReader.readCode(ClassReader.java:1445) > >>> > >>> at > >>>jdk.internal.org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1046) > >>> > >>> at > >>>jdk.internal.org.objectweb.asm.ClassReader.accept(ClassReader.java:722) > >>> > >>> at > >>>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 > >>> > >>> > >>> > From david.holmes at oracle.com Thu May 4 02:22:00 2017 From: david.holmes at oracle.com (David Holmes) Date: Thu, 4 May 2017 12:22:00 +1000 Subject: build fail with Cygwin In-Reply-To: <7210f8f59be86.590a2c58@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5lOYdBmoRBok75lOadNtgZ@videotron.ca> <7390d85efac61.5909957f@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> <7210f8f59be86.590a2c58@videotron.ca> Message-ID: <27417c95-1c91-4f2e-bf01-862dbe940b20@oracle.com> 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 * 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 >> > >> >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/ >> >> >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 * 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 >> >>> >> >>> >> >>> >> >>>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.(StringConstants.j >> >>>ava:85) >> >>> >> >>> at >> >>>jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn( >> >>>ScriptClassInstrumentor.java:157) >> >>> >> >>> at >> >>>jdk.internal.org.objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j >> >>>ava:509) >> >>> >> >>> at >> >>>jdk.internal.org.objectweb.asm.ClassReader.readCode(ClassReader.java:1445) >> >>> >> >>> at >> >>>jdk.internal.org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1046) >> >>> >> >>> at >> >>>jdk.internal.org.objectweb.asm.ClassReader.accept(ClassReader.java:722) >> >>> >> >>> at >> >>>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 >> >>> >> >>> >> >>> From guy.bonneau at videotron.ca Thu May 4 04:07:53 2017 From: guy.bonneau at videotron.ca (Guy Bonneau) Date: Thu, 04 May 2017 00:07:53 -0400 Subject: build fail with Cygwin In-Reply-To: <66P8dHt1OImXY66PAdZk5E@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5lOYdBmoRBok75lOadNtgZ@videotron.ca> <7390d85efac61.5909957f@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> <7210f8f59be86.590a2c58@videotron.ca> <66P8dHt1OImXY66PAdZk5E@videotron.ca> Message-ID: <7240ff359cd2a.590a70d9@videotron.ca> 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? 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 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 * 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 > >>> > >>>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/ > >> > >>>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 * 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 > >>>>> > >>>>> > >>>>> > >>>>>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.(StringConstants.j > >>>>>ava:85) > >>>>> > >>>>> at > >>>>>jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn( > >>>>>ScriptClassInstrumentor.java:157) > >>>>> > >>>>> at > >>>>>jdk.internal.org.objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j > >>>>>ava:509) > >>>>> > >>>>> at > >>>>>jdk.internal.org.objectweb.asm.ClassReader.readCode(ClassReader.java:1445) > >>>>> > >>>>> at > >>>>>jdk.internal.org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1046) > >>>>> > >>>>> at > >>>>>jdk.internal.org.objectweb.asm.ClassReader.accept(ClassReader.java:722) > >>>>> > >>>>> at > >>>>>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 > >>>>> > >>>>> > >>>>> > From david.holmes at oracle.com Thu May 4 04:20:29 2017 From: david.holmes at oracle.com (David Holmes) Date: Thu, 4 May 2017 14:20:29 +1000 Subject: build fail with Cygwin In-Reply-To: <7240ff359cd2a.590a70d9@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5lOYdBmoRBok75lOadNtgZ@videotron.ca> <7390d85efac61.5909957f@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> <7210f8f59be86.590a2c58@videotron.ca> <66P8dHt1OImXY66PAdZk5E@videotron.ca> <7240ff359cd2a.590a70d9@videotron.ca> Message-ID: <38de0531-a439-c3c6-b3f2-04383b87f9a0@oracle.com> 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 * 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 * 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 >> >>> >> >>>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/ >> >> >> >>>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 * 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 >> >>>>> >> >>>>> >> >>>>> >> >>>>>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.(StringConstants.j >> >>>>>ava:85) >> >>>>> >> >>>>> at >> >>>>>jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn( >> >>>>>ScriptClassInstrumentor.java:157) >> >>>>> >> >>>>> at >> >>>>>jdk.internal.org.objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j >> >>>>>ava:509) >> >>>>> >> >>>>> at >> >>>>>jdk.internal.org.objectweb.asm.ClassReader.readCode(ClassReader.java:1445) >> >>>>> >> >>>>> at >> >>>>>jdk.internal.org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1046) >> >>>>> >> >>>>> at >> >>>>>jdk.internal.org.objectweb.asm.ClassReader.accept(ClassReader.java:722) >> >>>>> >> >>>>> at >> >>>>>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 >> >>>>> >> >>>>> >> >>>>> From sriramnrn at gmail.com Thu May 4 04:59:51 2017 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Thu, 4 May 2017 12:59:51 +0800 Subject: build fail with Cygwin In-Reply-To: <38de0531-a439-c3c6-b3f2-04383b87f9a0@oracle.com> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5lOYdBmoRBok75lOadNtgZ@videotron.ca> <7390d85efac61.5909957f@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> <7210f8f59be86.590a2c58@videotron.ca> <66P8dHt1OImXY66PAdZk5E@videotron.ca> <7240ff359cd2a.590a70d9@videotron.ca> <38de0531-a439-c3c6-b3f2-04383b87f9a0@oracle.com> Message-ID: 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 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-serve >> r-fastdebug/jdk/classes >> && \ >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serve >> r-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-serve >> r-fastdebug/jdk/btclasses >> build.tools.jarreorder.JarReorder \ >> -o >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serve >> r-fastdebug/images/lib/_the.jars.contents.tmp >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serve >> r-fastdebug/images/lib/classlist >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serve >> r-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-serve >> r-fastdebug/images/lib/_the.jars.contents.tmp >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serve >> r-fastdebug/images/lib/_the.jars.contents >> /usr/bin/mkdir -p >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serve >> r-fastdebug/images/lib >> /usr/bin/rm -f >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serve >> r-fastdebug/images/lib/_the.rt.jar.contents >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serve >> r-fastdebug/images/lib/_the.rt.jar.contents.tmp >> /usr/bin/grep -e '\.class$' >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serve >> r-fastdebug/images/lib/_the.jars.contents >> >>> >>> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serve >> r-fastdebug/images/lib/_the.rt.jar.contents.tmp >> make[2]: *** [CreateJars.gmk:268: >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serve >> r-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 * 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-serv >>> er-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 * 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 >>> >>> >>> >>>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/ >>> >> >>> >>>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 * 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 >>> >>>>> >>> >>>>> >>> >>>>> >>> >>>>>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(SecureClass >>> Loader.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.findCl >>> ass(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.>> it>(StringConstants.j >>> >>>>>ava:85) >>> >>>>> >>> >>>>> at >>> >>>>>jdk.nashorn.internal.tools.nasgen.ScriptClassInstrument >>> or$2.visitMethodInsn( >>> >>>>>ScriptClassInstrumentor.java:157) >>> >>>>> >>> >>>>> at >>> >>>>>jdk.internal.org.objectweb.asm.MethodVisitor.visitMetho >>> dInsn(MethodVisitor.j >>> >>>>>ava:509) >>> >>>>> >>> >>>>> at >>> >>>>>jdk.internal.org.objectweb.asm.ClassReader.readCode( >>> ClassReader.java:1445) >>> >>>>> >>> >>>>> at >>> >>>>>jdk.internal.org.objectweb.asm.ClassReader.readMethod( >>> ClassReader.java:1046) >>> >>>>> >>> >>>>> at >>> >>>>>jdk.internal.org.objectweb.asm.ClassReader.accept( >>> ClassReader.java:722) >>> >>>>> >>> >>>>> at >>> >>>>>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.nas >>> gen.Main.main(Main.java:62) >>> >>>>> >>> >>>>>make[1]: *** [BuildNashorn.gmk:79: >>> >>>>>/cygdrive/c/Projects/openjdk/build/windows-x86_64-norma >>> l-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 >>> >>>>> >>> >>>>> >>> >>>>> >>> >> From guy.bonneau at videotron.ca Thu May 4 11:25:52 2017 From: guy.bonneau at videotron.ca (Guy Bonneau) Date: Thu, 04 May 2017 07:25:52 -0400 Subject: build fail with Cygwin In-Reply-To: <7360fa67fb5e9.590b0fb9@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5lOYdBmoRBok75lOadNtgZ@videotron.ca> <7390d85efac61.5909957f@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> <7210f8f59be86.590a2c58@videotron.ca> <66P8dHt1OImXY66PAdZk5E@videotron.ca> <7240ff359cd2a.590a70d9@videotron.ca> <38de0531-a439-c3c6-b3f2-04383b87f9a0@oracle.com> <68rodIUfGImXY68rpdZuVY@videotron.ca> <7360fa67fb5e9.590b0fb9@videotron.ca> Message-ID: <73009032f8ed0.590ad780@videotron.ca> Did it. Both configuration and build logs are now shared at: https://www.dropbox.com/sh/6xbmjzxu8xlbsr0/AADBHa-Zn7owJpyeihlmej9pa?dl=0 Guy Le 04/05/17, Sriram Narayanan 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 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 * 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 * 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 > > > > > > > > >>> > > > > > > > > >>>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/ > > > > > > > > >> > > > > > > > > >>>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 * 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 > > > > > > > > >>>>> > > > > > > > > >>>>> > > > > > > > > >>>>> > > > > > > > > >>>>>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.(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 > > > > > > > > >>>>> > > > > > > > > >>>>> > > > > > > > > >>>>> > > > > > > > > > > > > > From david.holmes at oracle.com Thu May 4 12:48:01 2017 From: david.holmes at oracle.com (David Holmes) Date: Thu, 4 May 2017 22:48:01 +1000 Subject: build fail with Cygwin In-Reply-To: <73009032f8ed0.590ad780@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5lOYdBmoRBok75lOadNtgZ@videotron.ca> <7390d85efac61.5909957f@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> <7210f8f59be86.590a2c58@videotron.ca> <66P8dHt1OImXY66PAdZk5E@videotron.ca> <7240ff359cd2a.590a70d9@videotron.ca> <38de0531-a439-c3c6-b3f2-04383b87f9a0@oracle.com> <68rodIUfGImXY68rpdZuVY@videotron.ca> <7360fa67fb5e9.590b0fb9@videotron.ca> <73009032f8ed0.590ad780@videotron.ca> Message-ID: <9f9bfcaf-b07c-a337-f7ab-83b6deb57dc0@oracle.com> 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 * 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 > > 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 * >> 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 * >> 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 >> >> >>> >> >>>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/ >> >> >> >> >>>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 * >> 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 >> >> >>>>> >> >>>>> >> >>>>> >> >>>>>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.(StringConstants.j >> >>>>>ava:85) >> >>>>> >> >>>>> at >> >>>>>jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn( >> >>>>>ScriptClassInstrumentor.java:157) >> >>>>> >> >>>>> at >> >>>>>jdk.internal.org >> .objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j >> >>>>>ava:509) >> >>>>> >> >>>>> at >> >>>>>jdk.internal.org >> .objectweb.asm.ClassReader.readCode(ClassReader.java:1445) >> >>>>> >> >>>>> at >> >>>>>jdk.internal.org >> .objectweb.asm.ClassReader.readMethod(ClassReader.java:1046) >> >>>>> >> >>>>> at >> >>>>>jdk.internal.org >> .objectweb.asm.ClassReader.accept(ClassReader.java:722) >> >>>>> >> >>>>> at >> >>>>>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 >> >>>>> >> >>>>> >> >>>>> >> From guy.bonneau at videotron.ca Thu May 4 13:04:22 2017 From: guy.bonneau at videotron.ca (Guy Bonneau) Date: Thu, 04 May 2017 09:04:22 -0400 Subject: build fail with Cygwin In-Reply-To: <73408fd4fcd22.590b26c3@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5lOYdBmoRBok75lOadNtgZ@videotron.ca> <7390d85efac61.5909957f@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> <7210f8f59be86.590a2c58@videotron.ca> <66P8dHt1OImXY66PAdZk5E@videotron.ca> <7240ff359cd2a.590a70d9@videotron.ca> <38de0531-a439-c3c6-b3f2-04383b87f9a0@oracle.com> <68rodIUfGImXY68rpdZuVY@videotron.ca> <7360fa67fb5e9.590b0fb9@videotron.ca> <73009032f8ed0.590ad780@videotron.ca> <6GAyd9UbpkBnL6GB0dZ5LH@videotron.ca> <7270dfc6fb19e.590b260c@videotron.ca> <7390a54bfb0c1.590b2648@videotron.ca> <7360c3d1ffacf.590b2686@videotron.ca> <73408fd4fcd22.590b26c3@videotron.ca> Message-ID: <7360f2f3ffe18.590aee96@videotron.ca> 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 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 * 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 >>>> 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 * > >> 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 * > >> 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 > >> > >> >>> > >> >>>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/ > >> > >> >> > >> >>>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 * > >> 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 > >> > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>>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.(StringConstants.j > >> >>>>>ava:85) > >> >>>>> > >> >>>>> at > >> >>>>>jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn( > >> >>>>>ScriptClassInstrumentor.java:157) > >> >>>>> > >> >>>>> at > >> >>>>>jdk.internal.org > >> .objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j > >> >>>>>ava:509) > >> >>>>> > >> >>>>> at > >> >>>>>jdk.internal.org > >> .objectweb.asm.ClassReader.readCode(ClassReader.java:1445) > >> >>>>> > >> >>>>> at > >> >>>>>jdk.internal.org > >> .objectweb.asm.ClassReader.readMethod(ClassReader.java:1046) > >> >>>>> > >> >>>>> at > >> >>>>>jdk.internal.org > >> .objectweb.asm.ClassReader.accept(ClassReader.java:722) > >> >>>>> > >> >>>>> at > >> >>>>>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 > >> >>>>> > >> >>>>> > >> >>>>> > >> > > From guy.bonneau at videotron.ca Thu May 4 13:54:45 2017 From: guy.bonneau at videotron.ca (Guy Bonneau) Date: Thu, 04 May 2017 09:54:45 -0400 Subject: build fail with Cygwin In-Reply-To: <7270ba24ff6de.590b3287@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5lOYdBmoRBok75lOadNtgZ@videotron.ca> <7390d85efac61.5909957f@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> <7210f8f59be86.590a2c58@videotron.ca> <66P8dHt1OImXY66PAdZk5E@videotron.ca> <7240ff359cd2a.590a70d9@videotron.ca> <38de0531-a439-c3c6-b3f2-04383b87f9a0@oracle.com> <68rodIUfGImXY68rpdZuVY@videotron.ca> <7360fa67fb5e9.590b0fb9@videotron.ca> <73009032f8ed0.590ad780@videotron.ca> <6GAyd9UbpkBnL6GB0dZ5LH@videotron.ca> <7270dfc6fb19e.590b260c@videotron.ca> <7390a54bfb0c1.590b2648@videotron.ca> <7360c3d1ffacf.590b2686@videotron.ca> <73408fd4fcd22.590b26c3@videotron.ca> <6GR3dmPpyb0CV6GR6dnAGO@videotron.ca> <72f0f03ffa942.590b320d@videotron.ca> <7210aa1ef8898.590b324a@videotron.ca> <7270ba24ff6de.590b3287@videotron.ca> Message-ID: <7300cc01fd6aa.590afa65@videotron.ca> I removed the JDK 8 and left the JDK 7 (1.7.0_80). No success same error. I check the config log and saw some complaining about the JRE 7, So I removed this one as well and left only the JDK 7 to be found. No success and same error at the same place. Guy Le 04/05/17, Guy Bonneau a ?crit : > 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 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 * 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 > >> >> 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 * > > >> 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 * > > >> 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 > > >> > > >> >>> > > >> >>>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/ > > >> > > >> >> > > >> >>>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 * > > >> 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 > > >> > > >> >>>>> > > >> >>>>> > > >> >>>>> > > >> >>>>>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.(StringConstants.j > > >> >>>>>ava:85) > > >> >>>>> > > >> >>>>> at > > >> >>>>>jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn( > > >> >>>>>ScriptClassInstrumentor.java:157) > > >> >>>>> > > >> >>>>> at > > >> >>>>>jdk.internal.org > > >> .objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j > > >> >>>>>ava:509) > > >> >>>>> > > >> >>>>> at > > >> >>>>>jdk.internal.org > > >> .objectweb.asm.ClassReader.readCode(ClassReader.java:1445) > > >> >>>>> > > >> >>>>> at > > >> >>>>>jdk.internal.org > > >> .objectweb.asm.ClassReader.readMethod(ClassReader.java:1046) > > >> >>>>> > > >> >>>>> at > > >> >>>>>jdk.internal.org > > >> .objectweb.asm.ClassReader.accept(ClassReader.java:722) > > >> >>>>> > > >> >>>>> at > > >> >>>>>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 > > >> >>>>> > > >> >>>>> > > >> >>>>> > > >> > > > > > > From weijun.wang at oracle.com Thu May 4 14:04:40 2017 From: weijun.wang at oracle.com (Weijun Wang) Date: Thu, 4 May 2017 22:04:40 +0800 Subject: build fail with Cygwin In-Reply-To: <7300cc01fd6aa.590afa65@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5lOYdBmoRBok75lOadNtgZ@videotron.ca> <7390d85efac61.5909957f@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> <7210f8f59be86.590a2c58@videotron.ca> <66P8dHt1OImXY66PAdZk5E@videotron.ca> <7240ff359cd2a.590a70d9@videotron.ca> <38de0531-a439-c3c6-b3f2-04383b87f9a0@oracle.com> <68rodIUfGImXY68rpdZuVY@videotron.ca> <7360fa67fb5e9.590b0fb9@videotron.ca> <73009032f8ed0.590ad780@videotron.ca> <6GAyd9UbpkBnL6GB0dZ5LH@videotron.ca> <7270dfc6fb19e.590b260c@videotron.ca> <7390a54bfb0c1.590b2648@videotron.ca> <7360c3d1ffacf.590b2686@videotron.ca> <73408fd4fcd22.590b26c3@videotron.ca> <6GR3dmPpyb0CV6GR6dnAGO@videotron.ca> <72f0f03ffa942.590b320d@videotron.ca> <7210aa1ef8898.590b324a@videotron.ca> <7270ba24ff6de.590b3287@videotron.ca> <7300cc01fd6aa.590afa65@videotron.ca> Message-ID: <73c380b5-4cd3-3137-7841-fda815a78557@oracle.com> Looks like the exploded build succeeds and there is something wrong with the image build. Can you try if the JDK inside /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/jdk (i.e. the exploded build) works fine? The last few lines show /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 Can you rerun that grep command and see if _the.rt.jar.contents.tmp is empty? --Max On 05/04/2017 09:54 PM, Guy Bonneau wrote: > I removed the JDK 8 and left the JDK 7 (1.7.0_80). No success same error. I check the config log and saw some complaining about the JRE 7, So I removed this one as well and left only the JDK 7 to be found. No success and same error at the same place. > > Guy > > Le 04/05/17, Guy Bonneau a ?crit : >> 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 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 >>> From guy.bonneau at videotron.ca Thu May 4 17:43:15 2017 From: guy.bonneau at videotron.ca (Guy Bonneau) Date: Thu, 04 May 2017 13:43:15 -0400 Subject: build fail with Cygwin In-Reply-To: <7300d91ef8c5a.590b6813@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5lOYdBmoRBok75lOadNtgZ@videotron.ca> <7390d85efac61.5909957f@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> <7210f8f59be86.590a2c58@videotron.ca> <66P8dHt1OImXY66PAdZk5E@videotron.ca> <7240ff359cd2a.590a70d9@videotron.ca> <38de0531-a439-c3c6-b3f2-04383b87f9a0@oracle.com> <68rodIUfGImXY68rpdZuVY@videotron.ca> <7360fa67fb5e9.590b0fb9@videotron.ca> <73009032f8ed0.590ad780@videotron.ca> <6GAyd9UbpkBnL6GB0dZ5LH@videotron.ca> <7270dfc6fb19e.590b260c@videotron.ca> <7390a54bfb0c1.590b2648@videotron.ca> <7360c3d1ffacf.590b2686@videotron.ca> <73408fd4fcd22.590b26c3@videotron.ca> <6GR3dmPpyb0CV6GR6dnAGO@videotron.ca> <72f0f03ffa942.590b320d@videotron.ca> <7210aa1ef8898.590b324a@videotron.ca> <7270ba24ff6de.590b3287@videotron.ca> <7300cc01fd6aa.590afa65@videotron.ca> <6HNBdwInn3wDa6HNCdWQFb@videotron.ca> <71f090ac88147.590b582f@videotron.ca> <7390eff0fccfa.590b675d@videotron.ca> <72b0eedaff385.590b679a@videotron.ca> <7300d91ef8c5a.590b6813@videotron.ca> Message-ID: <7370b50efd605.590b2ff3@videotron.ca> Good point! This is what I have found. The file?_the.jars.contents is a text file that has a list of classes. There is many hundred of them. The command: /usr/bin/grep -e '\.class$' /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.contents yields nothing. It is empty and create an empty _the.rt.jar.contents.tmp file with nothing. I checked and it is indeed a file size of 0 bytes. However the command /usr/bin/grep -e '\.class^M$' /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.contents yields all the classes. I checked with a binary editor the file: _the.jars.contents and all the line ending are Windows style. Not Linux style. It seems the tool invoked that creates the _the.jars.contents see Windows as the OS and put Windows style EndOfLine. Then Grep pattern?fails because it searches for Linux-style EndOfLine. Note that my JDK which might be invoked to run Java outside of the Cygwin folder installation might?create Windows style EndOfLine. This could be the issue. Thus my guessing is the script must be modified with a grep pattern that can automatically extract the lines ending with .class with either Linux or Windows style EndOfLine. If you can give me a quick fix I could try it. Thanks Guy Le 04/05/17 ? 10:04, Weijun Wang a ?crit : > Looks like the exploded build succeeds and there is something wrong with the image build. > > Can you try if the JDK inside /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/jdk (i.e. the exploded build) works fine? > > The last few lines show > > /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 > > Can you rerun that grep command and see if _the.rt.jar.contents.tmp is empty? > > --Max > > On 05/04/2017 09:54 PM, Guy Bonneau wrote: > >I removed the JDK 8 and left the JDK 7 (1.7.0_80). No success same error. I check the config log and saw some complaining about the JRE 7, So I removed this one as well and left only the JDK 7 to be found. No success and same error at the same place. > > > >Guy > > > >Le 04/05/17, Guy Bonneau a ?crit : > >>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 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 > >>> > > From mvala at redhat.com Thu May 4 19:33:50 2017 From: mvala at redhat.com (Michal Vala) Date: Thu, 4 May 2017 21:33:50 +0200 Subject: build fail with Cygwin In-Reply-To: <7370b50efd605.590b2ff3@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> <7210f8f59be86.590a2c58@videotron.ca> <66P8dHt1OImXY66PAdZk5E@videotron.ca> <7240ff359cd2a.590a70d9@videotron.ca> <38de0531-a439-c3c6-b3f2-04383b87f9a0@oracle.com> <68rodIUfGImXY68rpdZuVY@videotron.ca> <7360fa67fb5e9.590b0fb9@videotron.ca> <73009032f8ed0.590ad780@videotron.ca> <6GAyd9UbpkBnL6GB0dZ5LH@videotron.ca> <7270dfc6fb19e.590b260c@videotron.ca> <7390a54bfb0c1.590b2648@videotron.ca> <7360c3d1ffacf.590b2686@videotron.ca> <73408fd4fcd22.590b26c3@videotron.ca> <6GR3dmPpyb0CV6GR6dnAGO@videotron.ca> <72f0f03ffa942.590b320d@videotron.ca> <7210aa1ef8898.590b324a@videotron.ca> <7270ba24ff6de.590b3287@videotron.ca> <7300cc01fd6aa.590afa65@videotron.ca> <6HNBdwInn3wDa6HNCdWQFb@videotron.ca> <71f090ac88147.590b582f@videotron.ca> <7390eff0fccfa.590b675d@videotron.ca> <72b0eedaff385.590b679a@videotron.ca> <7300d91ef8c5a.590b6813@videotron.ca> <7370b50efd605.590b2ff3@videotron.ca> Message-ID: <3e62252a-f670-4d67-24eb-a310323e848d@redhat.com> On 05/04/2017 07:43 PM, Guy Bonneau wrote: > Good point! > > > This is what I have found. The file _the.jars.contents is a text file that has a list of classes. There is many hundred of them. > The command: /usr/bin/grep -e '\.class$' /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.contents yields nothing. It is empty and create an empty _the.rt.jar.contents.tmp file with nothing. I checked and it is indeed a file size of 0 bytes. > > > However the command /usr/bin/grep -e '\.class^M$' /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.contents yields all the classes. > > > I checked with a binary editor the file: _the.jars.contents and all the line ending are Windows style. Not Linux style. It seems the tool invoked that creates the _the.jars.contents see Windows as the OS and put Windows style EndOfLine. Then Grep pattern fails because it searches for Linux-style EndOfLine. > > > Note that my JDK which might be invoked to run Java outside of the Cygwin folder installation might create Windows style EndOfLine. This could be the issue. > > > Thus my guessing is the script must be modified with a grep pattern that can automatically extract the lines ending with .class with either Linux or Windows style EndOfLine. > > > If you can give me a quick fix I could try it. You may try to add this to your ~/.bash_profile in cygwin export SHELLOPTS set -o ignc > > > Thanks > Guy > > > > > Le 04/05/17 ? 10:04, Weijun Wang a ?crit : >> Looks like the exploded build succeeds and there is something wrong with the image build. >> >> Can you try if the JDK inside /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/jdk (i.e. the exploded build) works fine? >> >> The last few lines show >> >> /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 >> >> Can you rerun that grep command and see if _the.rt.jar.contents.tmp is empty? >> >> --Max >> >> On 05/04/2017 09:54 PM, Guy Bonneau wrote: >>> I removed the JDK 8 and left the JDK 7 (1.7.0_80). No success same error. I check the config log and saw some complaining about the JRE 7, So I removed this one as well and left only the JDK 7 to be found. No success and same error at the same place. >>> >>> Guy >>> >>> Le 04/05/17, Guy Bonneau a ?crit : >>>> 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 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 >>>>> >> >> -- Michal Vala OpenJDK QE Red Hat Czech From guy.bonneau at videotron.ca Thu May 4 22:53:45 2017 From: guy.bonneau at videotron.ca (Guy Bonneau) Date: Thu, 04 May 2017 18:53:45 -0400 Subject: build fail with Cygwin In-Reply-To: <6MVddyCNY3wDa6MVedY5bX@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <5tj4d2pj1kBnL5tj5dUWAm@videotron.ca> <7210f8f59be86.590a2c58@videotron.ca> <66P8dHt1OImXY66PAdZk5E@videotron.ca> <7240ff359cd2a.590a70d9@videotron.ca> <38de0531-a439-c3c6-b3f2-04383b87f9a0@oracle.com> <68rodIUfGImXY68rpdZuVY@videotron.ca> <7360fa67fb5e9.590b0fb9@videotron.ca> <73009032f8ed0.590ad780@videotron.ca> <6GAyd9UbpkBnL6GB0dZ5LH@videotron.ca> <7270dfc6fb19e.590b260c@videotron.ca> <7390a54bfb0c1.590b2648@videotron.ca> <7360c3d1ffacf.590b2686@videotron.ca> <73408fd4fcd22.590b26c3@videotron.ca> <6GR3dmPpyb0CV6GR6dnAGO@videotron.ca> <72f0f03ffa942.590b320d@videotron.ca> <7210aa1ef8898.590b324a@videotron.ca> <7270ba24ff6de.590b3287@videotron.ca> <7300cc01fd6aa.590afa65@videotron.ca> <6HNBdwInn3wDa6HNCdWQFb@videotron.ca> <71f090ac88147.590b582f@videotron.ca> <7390eff0fccfa.590b675d@videotron.ca> <72b0eedaff385.590b679a@videotron.ca> <7300d91ef8c5a.590b6813@videotron.ca> <7370b50efd605.590b2ff3@videotron.ca> <6MVddyCNY3wDa6MVedY5bX@videotron.ca> Message-ID: <7260aba0fe13d.590b78b9@videotron.ca> No success with the change to the profile. Guy Le 04/05/17 ? 15:33, Michal Vala a ?crit : > > > > On 05/04/2017 07:43 PM, Guy Bonneau wrote: > >Good point! > > > > > >This is what I have found. The file _the.jars.contents is a text file that has a list of classes. There is many hundred of them. > >The command: /usr/bin/grep -e '\.class$' /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.contents yields nothing. It is empty and create an empty _the.rt.jar.contents.tmp file with nothing. I checked and it is indeed a file size of 0 bytes. > > > > > >However the command /usr/bin/grep -e '\.class^M$' /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.contents yields all the classes. > > > > > >I checked with a binary editor the file: _the.jars.contents and all the line ending are Windows style. Not Linux style. It seems the tool invoked that creates the _the.jars.contents see Windows as the OS and put Windows style EndOfLine. Then Grep pattern fails because it searches for Linux-style EndOfLine. > > > > > >Note that my JDK which might be invoked to run Java outside of the Cygwin folder installation might create Windows style EndOfLine. This could be the issue. > > > > > >Thus my guessing is the script must be modified with a grep pattern that can automatically extract the lines ending with .class with either Linux or Windows style EndOfLine. > > > > > >If you can give me a quick fix I could try it. > > You may try to add this to your ~/.bash_profile in cygwin > > export SHELLOPTS > set -o ignc > > > > > > > >Thanks > >Guy > > > > > > > > > >Le 04/05/17 ? 10:04, Weijun Wang a ?crit : > >>Looks like the exploded build succeeds and there is something wrong with the image build. > >> > >>Can you try if the JDK inside /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/jdk (i.e. the exploded build) works fine? > >> > >>The last few lines show > >> > >>/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 > >> > >>Can you rerun that grep command and see if _the.rt.jar.contents.tmp is empty? > >> > >>--Max > >> > >>On 05/04/2017 09:54 PM, Guy Bonneau wrote: > >>>I removed the JDK 8 and left the JDK 7 (1.7.0_80). No success same error. I check the config log and saw some complaining about the JRE 7, So I removed this one as well and left only the JDK 7 to be found. No success and same error at the same place. > >>> > >>>Guy > >>> > >>>Le 04/05/17, Guy Bonneau a ?crit : > >>>>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 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 > >>>>> > >> > >> > > -- > Michal Vala > OpenJDK QE > Red Hat Czech > From david.holmes at oracle.com Thu May 4 23:26:41 2017 From: david.holmes at oracle.com (David Holmes) Date: Fri, 5 May 2017 09:26:41 +1000 Subject: build fail with Cygwin In-Reply-To: <7260aba0fe13d.590b78b9@videotron.ca> References: <001601d2c3ba$01ecdf80$05c69e80$@videotron.ca> <66P8dHt1OImXY66PAdZk5E@videotron.ca> <7240ff359cd2a.590a70d9@videotron.ca> <38de0531-a439-c3c6-b3f2-04383b87f9a0@oracle.com> <68rodIUfGImXY68rpdZuVY@videotron.ca> <7360fa67fb5e9.590b0fb9@videotron.ca> <73009032f8ed0.590ad780@videotron.ca> <6GAyd9UbpkBnL6GB0dZ5LH@videotron.ca> <7270dfc6fb19e.590b260c@videotron.ca> <7390a54bfb0c1.590b2648@videotron.ca> <7360c3d1ffacf.590b2686@videotron.ca> <73408fd4fcd22.590b26c3@videotron.ca> <6GR3dmPpyb0CV6GR6dnAGO@videotron.ca> <72f0f03ffa942.590b320d@videotron.ca> <7210aa1ef8898.590b324a@videotron.ca> <7270ba24ff6de.590b3287@videotron.ca> <7300cc01fd6aa.590afa65@videotron.ca> <6HNBdwInn3wDa6HNCdWQFb@videotron.ca> <71f090ac88147.590b582f@videotron.ca> <7390eff0fccfa.590b675d@videotron.ca> <72b0eedaff385.590b679a@videotron.ca> <7300d91ef8c5a.590b6813@videotron.ca> <7370b50efd605.590b2ff3@videotron.ca> <6MVddyCNY3wDa6MVedY5bX@videotron.ca> <7260aba0fe13d.590b78b9@videotron.ca> Message-ID: First - please edit subject so we stop getting Re: added ad-infinitum :) Second - this is a general build issue relating to cygwin etc so I've cc'd build-dev and bcc'd jdk8-dev. I suspect your version of cygwin may be too new for the 8u build. You should check out the build-dev archives over the last few weeks: http://mail.openjdk.java.net/pipermail/build-dev/ David On 5/05/2017 8:53 AM, Guy Bonneau wrote: > No success with the change to the profile. > > Guy > > Le 04/05/17 ? 15:33, *Michal Vala * a ?crit : >> >> >> On 05/04/2017 07:43 PM, Guy Bonneau wrote: >> >Good point! >> > >> > >> >This is what I have found. The file _the.jars.contents is a text file >> that has a list of classes. There is many hundred of them. >> >The command: /usr/bin/grep -e '\.class$' >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.contents >> yields nothing. It is empty and create an empty >> _the.rt.jar.contents.tmp file with nothing. I checked and it is indeed >> a file size of 0 bytes. >> > >> > >> >However the command /usr/bin/grep -e '\.class^M$' >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.jars.contents >> yields all the classes. >> > >> > >> >I checked with a binary editor the file: _the.jars.contents and all >> the line ending are Windows style. Not Linux style. It seems the tool >> invoked that creates the _the.jars.contents see Windows as the OS and >> put Windows style EndOfLine. Then Grep pattern fails because it >> searches for Linux-style EndOfLine. >> > >> > >> >Note that my JDK which might be invoked to run Java outside of the >> Cygwin folder installation might create Windows style EndOfLine. This >> could be the issue. >> > >> > >> >Thus my guessing is the script must be modified with a grep pattern >> that can automatically extract the lines ending with .class with >> either Linux or Windows style EndOfLine. >> > >> > >> >If you can give me a quick fix I could try it. >> >> You may try to add this to your ~/.bash_profile in cygwin >> >> export SHELLOPTS >> set -o ignc >> >> >> > >> > >> >Thanks >> >Guy >> > >> > >> > >> > >> >Le 04/05/17 ? 10:04, Weijun Wang a ?crit : >> >>Looks like the exploded build succeeds and there is something wrong >> with the image build. >> >> >> >>Can you try if the JDK inside >> /cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/jdk >> (i.e. the exploded build) works fine? >> >> >> >>The last few lines show >> >> >> >>/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 >> >> >> >>Can you rerun that grep command and see if _the.rt.jar.contents.tmp >> is empty? >> >> >> >>--Max >> >> >> >>On 05/04/2017 09:54 PM, Guy Bonneau wrote: >> >>>I removed the JDK 8 and left the JDK 7 (1.7.0_80). No success same >> error. I check the config log and saw some complaining about the JRE >> 7, So I removed this one as well and left only the JDK 7 to be found. >> No success and same error at the same place. >> >>> >> >>>Guy >> >>> >> >>>Le 04/05/17, Guy Bonneau a ?crit : >> >>>>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 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 >> >>>>> >> >> >> >> >> >> -- >> Michal Vala >> OpenJDK QE >> Red Hat Czech