build fail with Cygwin
David Holmes
david.holmes at oracle.com
Thu May 4 02:22:00 UTC 2017
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 * <david.holmes at oracle.com> 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 * <david.holmes at oracle.com> 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.<clinit>(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
>> >>>
>> >>>
>> >>>
More information about the jdk8-dev
mailing list