Discussion:
build fail with Cygwin
Guy Bonneau
2017-05-03 03:04:39 UTC
Permalink
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.<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
David Holmes
2017-05-03 03:55:56 UTC
Permalink
Hi Guy,
Post by Guy Bonneau
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
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
-----
Post by Guy Bonneau
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
http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b
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)
/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
David Holmes
2017-05-03 12:49:42 UTC
Permalink
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
Post by David Holmes
Hi Guy,
Post by Guy Bonneau
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
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
-----
Post by Guy Bonneau
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
http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b
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)
Post by Guy Bonneau
at jdk.nashorn.internal.tools.nasgen.Main.main(Main.java:62)
/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
Guy Bonneau
2017-05-03 23:15:36 UTC
Permalink
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
Post by David Holmes
http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip
which seems the 8u JDK.
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
Post by David Holmes
Hi Guy,
Post by Guy Bonneau
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
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
-----
Post by Guy Bonneau
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
http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b
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)
Post by Guy Bonneau
at jdk.nashorn.internal.tools.nasgen.Main.main(Main.java:62)
/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
David Holmes
2017-05-04 02:22:00 UTC
Permalink
Post by Guy Bonneau
Great!
I cloned the default dev repository.
I used the same configuration again. This time it went farther. But it
Updating images/src.zip
/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
Post by Guy Bonneau
Thanks
Guy Bonneau
Post by David Holmes
http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip
which seems the 8u JDK.
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
Post by David Holmes
Hi Guy,
Post by Guy Bonneau
I am trying to build OpenJDK 8 under Windows 7 with Cygwin 2.8.0
and ran
Post by David Holmes
Post by Guy Bonneau
into many issues that I was able to successfully fix until the last one
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
-----
Post by Guy Bonneau
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
Post by David Holmes
Post by Guy Bonneau
http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b
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)
Post by David Holmes
Post by Guy Bonneau
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)
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.processAll(Main.java:88)
Post by Guy Bonneau
at jdk.nashorn.internal.tools.nasgen.Main.main(Main.java:62)
/cygdrive/c/Projects/openjdk/build/windows-x86_64-normal-server-fastdebug/na
shorn/classes/_the.nasgen.run] Error 1
nashorn-only]
Post by David Holmes
Post by Guy Bonneau
Error 2
How can I fix this issue?
Thanks
GB
Guy Bonneau
2017-05-04 04:07:53 UTC
Permalink
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
Post by David Holmes
Post by Guy Bonneau
Great!
I cloned the default dev repository.
I used the same configuration again. This time it went farther. But it
Updating images/src.zip
/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
Post by Guy Bonneau
Thanks
Guy Bonneau
Post by David Holmes
http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip
which seems the 8u JDK.
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
Post by David Holmes
Hi Guy,
Post by Guy Bonneau
I am trying to build OpenJDK 8 under Windows 7 with Cygwin 2.8.0
and ran
Post by David Holmes
Post by Guy Bonneau
into many issues that I was able to successfully fix until the last one
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
-----
Post by Guy Bonneau
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
Post by David Holmes
Post by Guy Bonneau
http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b
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)
Post by David Holmes
Post by Guy Bonneau
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)
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.processAll(Main.java:88)
Post by Guy Bonneau
at jdk.nashorn.internal.tools.nasgen.Main.main(Main.java:62)
/cygdrive/c/Projects/openjdk/build/windows-x86_64-normal-server-fastdebug/na
shorn/classes/_the.nasgen.run] Error 1
nashorn-only]
Post by David Holmes
Post by Guy Bonneau
Error 2
How can I fix this issue?
Thanks
GB
David Holmes
2017-05-04 04:20:29 UTC
Permalink
Post by Guy Bonneau
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
Post by Guy Bonneau
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
. )
sun\misc\PostVMInitHook.class
sun\usagetracker\UsageTrackerClient.class
sun\usagetracker\UsageTrackerClient$1.class
sun\usagetracker\UsageTrackerClient$4.class
sun\usagetracker\UsageTrackerClient$2.class
sun\usagetracker\UsageTrackerClient$3.class
sun\dc\DuctusRenderingEngine.class
sun\font\T2KFontScaler.class
sun\font\T2KFontScaler$1.class
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
sun\awt\motif\X11GB2312.class
sun\awt\motif\X11GB2312$Decoder.class
sun\awt\motif\X11GB2312$Encoder.class
sun\awt\motif\X11GBK.class
sun\awt\motif\X11GBK$Encoder.class
sun\awt\motif\X11KSC5601.class
sun\awt\motif\X11KSC5601$Decoder.class
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
/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
Post by David Holmes
Post by Guy Bonneau
Great!
I cloned the default dev repository.
I used the same configuration again. This time it went farther. But it
Updating images/src.zip
/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
Post by Guy Bonneau
Thanks
Guy Bonneau
Post by David Holmes
http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip
which seems the 8u JDK.
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
Post by David Holmes
Hi Guy,
Post by Guy Bonneau
I am trying to build OpenJDK 8 under Windows 7 with Cygwin 2.8.0
and ran
Post by David Holmes
Post by Guy Bonneau
into many issues that I was able to successfully fix until the
last one
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
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
-----
Post by Guy Bonneau
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
Post by David Holmes
Post by Guy Bonneau
http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b
Running nasgen
Exception in thread "main" java.lang.VerifyError: class
jdk.nashorn.internal.objects.ScriptFunctionImpl overrides final
method
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
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)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
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)
Post by David Holmes
Post by Guy Bonneau
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)
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.processAll(Main.java:88)
Post by Guy Bonneau
at jdk.nashorn.internal.tools.nasgen.Main.main(Main.java:62)
/cygdrive/c/Projects/openjdk/build/windows-x86_64-normal-server-fastdebug/na
shorn/classes/_the.nasgen.run] Error 1
nashorn-only]
Post by David Holmes
Post by Guy Bonneau
Error 2
How can I fix this issue?
Thanks
GB
Sriram Narayanan
2017-05-04 04:59:51 UTC
Permalink
It may be time saving to have the logs uploaded somewhere for a
comprehensive review and faster diagnostics.I

Ram
Post by David Holmes
Post by Guy Bonneau
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
Post by Guy Bonneau
(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
. )
sun\misc\PostVMInitHook.class
sun\usagetracker\UsageTrackerClient.class
sun\usagetracker\UsageTrackerClient$1.class
sun\usagetracker\UsageTrackerClient$4.class
sun\usagetracker\UsageTrackerClient$2.class
sun\usagetracker\UsageTrackerClient$3.class
sun\dc\DuctusRenderingEngine.class
sun\font\T2KFontScaler.class
sun\font\T2KFontScaler$1.class
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
sun\awt\motif\X11GB2312.class
sun\awt\motif\X11GB2312$Decoder.class
sun\awt\motif\X11GB2312$Encoder.class
sun\awt\motif\X11GBK.class
sun\awt\motif\X11GBK$Encoder.class
sun\awt\motif\X11KSC5601.class
sun\awt\motif\X11KSC5601$Decoder.class
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
Post by Guy Bonneau
/cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serve
r-fastdebug/images/lib/_the.rt.jar.contents.tmp
/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
Post by Guy Bonneau
Post by Guy Bonneau
Great!
I cloned the default dev repository.
I used the same configuration again. This time it went farther. But it
Updating images/src.zip
/cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-serv
er-fastdebug/images/lib/_the.rt.jar.contents]
Post by Guy Bonneau
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
Post by Guy Bonneau
Thanks
Guy Bonneau
Post by David Holmes
http://www.java.net/download/openjdk/jdk8/promoted/b132/
openjdk-8-src-b132-03_mar_2014.zip
Post by Guy Bonneau
Post by David Holmes
which seems the 8u JDK.
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/
And I have both latest Oracle JDK 7 and JDK 8 installed on my
computer.
Post by Guy Bonneau
Post by David Holmes
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
Post by David Holmes
Hi Guy,
Post by Guy Bonneau
I am trying to build OpenJDK 8 under Windows 7 with Cygwin 2.8.0
and ran
Post by David Holmes
Post by Guy Bonneau
into many issues that I was able to successfully fix until the
last one
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
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
-----
Post by Guy Bonneau
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
Post by David Holmes
Post by Guy Bonneau
http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b
Running nasgen
Exception in thread "main" java.lang.VerifyError: class
jdk.nashorn.internal.objects.ScriptFunctionImpl overrides final
method
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
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)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at java.net.URLClassLoader.access
$100(URLClassLoader.java:73)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
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)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at java.net.URLClassLoader.findCl
ass(URLClassLoader.java:361)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
Post by David Holmes
Post by Guy Bonneau
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at
jdk.nashorn.internal.tools.nasgen.StringConstants.<clin
it>(StringConstants.j
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
ava:85)
at
jdk.nashorn.internal.tools.nasgen.ScriptClassInstrument
or$2.visitMethodInsn(
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
ScriptClassInstrumentor.java:157)
at
jdk.internal.org.objectweb.asm.MethodVisitor.visitMetho
dInsn(MethodVisitor.j
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
ava:509)
at
jdk.internal.org.objectweb.asm.ClassReader.readCode(
ClassReader.java:1445)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.internal.org.objectweb.asm.ClassReader.readMethod(
ClassReader.java:1046)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.internal.org.objectweb.asm.ClassReader.accept(
ClassReader.java:722)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.internal.org.objectweb.asm.ClassReader.accept(
ClassReader.java:535)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.process(Main.java:121)
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.processAll(Main.java:88)
Post by Guy Bonneau
at jdk.nashorn.internal.tools.nas
gen.Main.main(Main.java:62)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
/cygdrive/c/Projects/openjdk/build/windows-x86_64-norma
l-server-fastdebug/na
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
shorn/classes/_the.nasgen.run] Error 1
nashorn-only]
Post by David Holmes
Post by Guy Bonneau
Error 2
How can I fix this issue?
Thanks
GB
Guy Bonneau
2017-05-04 11:25:52 UTC
Permalink
Did it. Both configuration and build logs are now shared at:

https://www.dropbox.com/sh/6xbmjzxu8xlbsr0/AADBHa-Zn7owJpyeihlmej9pa?dl=0


Guy
It may be time saving to have the logs uploaded somewhere for a comprehensive review and faster diagnostics.I
Ram
Post by Guy Bonneau
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
Post by Guy Bonneau
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
. )
sun\misc\PostVMInitHook.class
sun\usagetracker\UsageTrackerClient.class
sun\usagetracker\UsageTrackerClient$1.class
sun\usagetracker\UsageTrackerClient$4.class
sun\usagetracker\UsageTrackerClient$2.class
sun\usagetracker\UsageTrackerClient$3.class
sun\dc\DuctusRenderingEngine.class
sun\font\T2KFontScaler.class
sun\font\T2KFontScaler$1.class
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
sun\awt\motif\X11GB2312.class
sun\awt\motif\X11GB2312$Decoder.class
sun\awt\motif\X11GB2312$Encoder.class
sun\awt\motif\X11GBK.class
sun\awt\motif\X11GBK$Encoder.class
sun\awt\motif\X11KSC5601.class
sun\awt\motif\X11KSC5601$Decoder.class
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
/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
Post by David Holmes
Post by Guy Bonneau
Great!
I cloned the default dev repository.
I used the same configuration again. This time it went farther. But it
Updating images/src.zip
/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
Post by Guy Bonneau
Thanks
Guy Bonneau
Post by David Holmes
http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip
which seems the 8u JDK.
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
Post by David Holmes
Hi Guy,
Post by Guy Bonneau
I am trying to build OpenJDK 8 under Windows 7 with Cygwin 2.8.0
and ran
Post by David Holmes
Post by Guy Bonneau
into many issues that I was able to successfully fix until the
last one
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
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
-----
Post by Guy Bonneau
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
Post by David Holmes
Post by Guy Bonneau
http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b
Running nasgen
Exception in thread "main" java.lang.VerifyError: class
jdk.nashorn.internal.objects.ScriptFunctionImpl overrides final
method
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
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)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
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)
Post by David Holmes
Post by Guy Bonneau
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at
jdk.nashorn.internal.tools.nasgen.StringConstants.<clinit>(StringConstants.j
ava:85)
at
jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn(
ScriptClassInstrumentor.java:157)
at
jdk.internal.org(http://jdk.internal.org).objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j
ava:509)
at
jdk.internal.org(http://jdk.internal.org).objectweb.asm.ClassReader.readCode(ClassReader.java:1445)
at
jdk.internal.org(http://jdk.internal.org).objectweb.asm.ClassReader.readMethod(ClassReader.java:1046)
at
jdk.internal.org(http://jdk.internal.org).objectweb.asm.ClassReader.accept(ClassReader.java:722)
at
jdk.internal.org(http://jdk.internal.org).objectweb.asm.ClassReader.accept(ClassReader.java:535)
at
jdk.nashorn.internal.tools.nasgen.Main.process(Main.java:121)
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.processAll(Main.java:88)
Post by Guy Bonneau
at jdk.nashorn.internal.tools.nasgen.Main.main(Main.java:62)
/cygdrive/c/Projects/openjdk/build/windows-x86_64-normal-server-fastdebug/na
shorn/classes/_the.nasgen.run] Error 1
nashorn-only]
Post by David Holmes
Post by Guy Bonneau
Error 2
How can I fix this issue?
Thanks
GB
David Holmes
2017-05-04 12:48:01 UTC
Permalink
Post by Guy Bonneau
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
Post by Guy Bonneau
Guy
Post by Sriram Narayanan
It may be time saving to have the logs uploaded somewhere for a
comprehensive review and faster diagnostics.I
Ram
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
. )
sun\misc\PostVMInitHook.class
sun\usagetracker\UsageTrackerClient.class
sun\usagetracker\UsageTrackerClient$1.class
sun\usagetracker\UsageTrackerClient$4.class
sun\usagetracker\UsageTrackerClient$2.class
sun\usagetracker\UsageTrackerClient$3.class
sun\dc\DuctusRenderingEngine.class
sun\font\T2KFontScaler.class
sun\font\T2KFontScaler$1.class
sun\security\provider\DSA$LegacyDSA.class
com\sun\crypto\provider
WARNING: Path does not exist as file or directory: javax\crypto
sun\awt\motif\X11GB2312.class
sun\awt\motif\X11GB2312$Decoder.class
sun\awt\motif\X11GB2312$Encoder.class
sun\awt\motif\X11GBK.class
sun\awt\motif\X11GBK$Encoder.class
sun\awt\motif\X11KSC5601.class
sun\awt\motif\X11KSC5601$Decoder.class
sun\awt\motif\X11KSC5601$Encoder.class
WARNING: Path does not exist as file or directory: sun\security\ec
sun\security\internal
sun\security\mscapi
sun\security\pkcs11
com\oracle\jrockit\jfr
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
/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
Post by Guy Bonneau
Great!
I cloned the default dev repository.
I used the same configuration again. This time it went
farther. But it
Post by Guy Bonneau
Updating images/src.zip
/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
images-only]
Post by Guy Bonneau
Error 2
Any hint?
The actual error will be earlier in the log.
David
Post by Guy Bonneau
Thanks
Guy Bonneau
Le 03/05/17 à 08:49, *David Holmes *
Post by David Holmes
http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip
<http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip>
Post by Guy Bonneau
Post by David Holmes
which seems the 8u JDK.
No that is the GA release of JDK 8. The latest 8u
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/
<http://hg.openjdk.java.net/jdk8u/jdk8u-dev/>
Post by Guy Bonneau
Post by David Holmes
And I have both latest Oracle JDK 7 and JDK 8 installed
on my computer.
Post by Guy Bonneau
Post by David Holmes
Thus I guess the bootstrap JDK must be Oracle JDK 7
1.7.0_80
Post by Guy Bonneau
Post by David Holmes
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 *
Post by David Holmes
Hi Guy,
Post by Guy Bonneau
I am trying to build OpenJDK 8 under Windows 7 with
Cygwin 2.8.0
Post by Guy Bonneau
Post by David Holmes
and ran
Post by David Holmes
Post by Guy Bonneau
into many issues that I was able to successfully fix
until the
last one
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Are you trying to build the latest 8u sources or the
original 8
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
sources? I suspect the former as the referenced
nashorn class below
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
does not exist as of 8u72. What boot JDK are you using?
David
-----
Post by Guy Bonneau
bash ./configure
--with-freetype=/cygdrive/c/Projects/freetype-2.7
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
--with-target-bits=64 --enable-debug --disable-ccache
Note that I had to apply this JDK 9 patch to be able
to build the
Post by Guy Bonneau
Post by David Holmes
OpenJDK
Post by David Holmes
Post by Guy Bonneau
http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b
<http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b>
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
Running nasgen
Exception in thread "main" java.lang.VerifyError: class
jdk.nashorn.internal.objects.ScriptFunctionImpl
overrides final
method
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
setPrototype.(Ljava/lang/Object;)V
at java.lang.ClassLoader.defineClass1(Native
Method)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.lang.ClassLoader.defineClass(ClassLoader.java:763)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader.access$100(URLClassLoader.java:73)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader$1.run(URLClassLoader.java:368)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader$1.run(URLClassLoader.java:362)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.security.AccessController.doPrivileged(Native Method)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader.findClass(URLClassLoader.java:361)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.lang.ClassLoader.loadClass(ClassLoader.java:424)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
Post by David Holmes
Post by Guy Bonneau
at
java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.StringConstants.<clinit>(StringConstants.j
ava:85)
at
jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn(
ScriptClassInstrumentor.java:157)
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
ava:509)
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.ClassReader.readCode(ClassReader.java:1445)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.ClassReader.readMethod(ClassReader.java:1046)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.ClassReader.accept(ClassReader.java:722)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.ClassReader.accept(ClassReader.java:535)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.process(Main.java:121)
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.processAll(Main.java:88)
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.main(Main.java:62)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
/cygdrive/c/Projects/openjdk/build/windows-x86_64-normal-server-fastdebug/na
shorn/classes/_the.nasgen.run] Error 1
make: ***
nashorn-only]
Post by David Holmes
Post by Guy Bonneau
Error 2
How can I fix this issue?
Thanks
GB
Guy Bonneau
2017-05-04 13:04:22 UTC
Permalink
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
Post by David Holmes
Post by Guy Bonneau
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
Post by Guy Bonneau
Guy
Post by Sriram Narayanan
It may be time saving to have the logs uploaded somewhere for a
comprehensive review and faster diagnostics.I
Ram
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
. )
sun\misc\PostVMInitHook.class
sun\usagetracker\UsageTrackerClient.class
sun\usagetracker\UsageTrackerClient$1.class
sun\usagetracker\UsageTrackerClient$4.class
sun\usagetracker\UsageTrackerClient$2.class
sun\usagetracker\UsageTrackerClient$3.class
sun\dc\DuctusRenderingEngine.class
sun\font\T2KFontScaler.class
sun\font\T2KFontScaler$1.class
sun\security\provider\DSA$LegacyDSA.class
com\sun\crypto\provider
WARNING: Path does not exist as file or directory: javax\crypto
sun\awt\motif\X11GB2312.class
sun\awt\motif\X11GB2312$Decoder.class
sun\awt\motif\X11GB2312$Encoder.class
sun\awt\motif\X11GBK.class
sun\awt\motif\X11GBK$Encoder.class
sun\awt\motif\X11KSC5601.class
sun\awt\motif\X11KSC5601$Decoder.class
sun\awt\motif\X11KSC5601$Encoder.class
WARNING: Path does not exist as file or directory: sun\security\ec
sun\security\internal
sun\security\mscapi
sun\security\pkcs11
com\oracle\jrockit\jfr
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
/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
Post by Guy Bonneau
Great!
I cloned the default dev repository.
I used the same configuration again. This time it went
farther. But it
Post by Guy Bonneau
Updating images/src.zip
/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
images-only]
Post by Guy Bonneau
Error 2
Any hint?
The actual error will be earlier in the log.
David
Post by Guy Bonneau
Thanks
Guy Bonneau
Le 03/05/17 à 08:49, *David Holmes *
Post by David Holmes
http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip
<http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip>
Post by Guy Bonneau
Post by David Holmes
which seems the 8u JDK.
No that is the GA release of JDK 8. The latest 8u
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/
<http://hg.openjdk.java.net/jdk8u/jdk8u-dev/>
Post by Guy Bonneau
Post by David Holmes
And I have both latest Oracle JDK 7 and JDK 8 installed
on my computer.
Post by Guy Bonneau
Post by David Holmes
Thus I guess the bootstrap JDK must be Oracle JDK 7
1.7.0_80
Post by Guy Bonneau
Post by David Holmes
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 *
Post by David Holmes
Hi Guy,
Post by Guy Bonneau
I am trying to build OpenJDK 8 under Windows 7 with
Cygwin 2.8.0
Post by Guy Bonneau
Post by David Holmes
and ran
Post by David Holmes
Post by Guy Bonneau
into many issues that I was able to successfully fix
until the
last one
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Are you trying to build the latest 8u sources or the
original 8
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
sources? I suspect the former as the referenced
nashorn class below
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
does not exist as of 8u72. What boot JDK are you using?
David
-----
Post by Guy Bonneau
bash ./configure
--with-freetype=/cygdrive/c/Projects/freetype-2.7
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
--with-target-bits=64 --enable-debug --disable-ccache
Note that I had to apply this JDK 9 patch to be able
to build the
Post by Guy Bonneau
Post by David Holmes
OpenJDK
Post by David Holmes
Post by Guy Bonneau
http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b
<http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b>
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
Running nasgen
Exception in thread "main" java.lang.VerifyError: class
jdk.nashorn.internal.objects.ScriptFunctionImpl
overrides final
method
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
setPrototype.(Ljava/lang/Object;)V
at java.lang.ClassLoader.defineClass1(Native
Method)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.lang.ClassLoader.defineClass(ClassLoader.java:763)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader.access$100(URLClassLoader.java:73)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader$1.run(URLClassLoader.java:368)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader$1.run(URLClassLoader.java:362)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.security.AccessController.doPrivileged(Native Method)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader.findClass(URLClassLoader.java:361)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.lang.ClassLoader.loadClass(ClassLoader.java:424)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
Post by David Holmes
Post by Guy Bonneau
at
java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.StringConstants.<clinit>(StringConstants.j
ava:85)
at
jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn(
ScriptClassInstrumentor.java:157)
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
ava:509)
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.ClassReader.readCode(ClassReader.java:1445)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.ClassReader.readMethod(ClassReader.java:1046)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.ClassReader.accept(ClassReader.java:722)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.ClassReader.accept(ClassReader.java:535)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.process(Main.java:121)
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.processAll(Main.java:88)
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.main(Main.java:62)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
/cygdrive/c/Projects/openjdk/build/windows-x86_64-normal-server-fastdebug/na
shorn/classes/_the.nasgen.run] Error 1
make: ***
nashorn-only]
Post by David Holmes
Post by Guy Bonneau
Error 2
How can I fix this issue?
Thanks
GB
Guy Bonneau
2017-05-04 13:54:45 UTC
Permalink
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
Post by Guy Bonneau
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
Post by David Holmes
Post by Guy Bonneau
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
Post by Guy Bonneau
Guy
Post by Sriram Narayanan
It may be time saving to have the logs uploaded somewhere for a
comprehensive review and faster diagnostics.I
Ram
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
. )
sun\misc\PostVMInitHook.class
sun\usagetracker\UsageTrackerClient.class
sun\usagetracker\UsageTrackerClient$1.class
sun\usagetracker\UsageTrackerClient$4.class
sun\usagetracker\UsageTrackerClient$2.class
sun\usagetracker\UsageTrackerClient$3.class
sun\dc\DuctusRenderingEngine.class
sun\font\T2KFontScaler.class
sun\font\T2KFontScaler$1.class
sun\security\provider\DSA$LegacyDSA.class
com\sun\crypto\provider
WARNING: Path does not exist as file or directory: javax\crypto
sun\awt\motif\X11GB2312.class
sun\awt\motif\X11GB2312$Decoder.class
sun\awt\motif\X11GB2312$Encoder.class
sun\awt\motif\X11GBK.class
sun\awt\motif\X11GBK$Encoder.class
sun\awt\motif\X11KSC5601.class
sun\awt\motif\X11KSC5601$Decoder.class
sun\awt\motif\X11KSC5601$Encoder.class
WARNING: Path does not exist as file or directory: sun\security\ec
sun\security\internal
sun\security\mscapi
sun\security\pkcs11
com\oracle\jrockit\jfr
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
/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
Post by Guy Bonneau
Great!
I cloned the default dev repository.
I used the same configuration again. This time it went
farther. But it
Post by Guy Bonneau
Updating images/src.zip
/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
images-only]
Post by Guy Bonneau
Error 2
Any hint?
The actual error will be earlier in the log.
David
Post by Guy Bonneau
Thanks
Guy Bonneau
Le 03/05/17 à 08:49, *David Holmes *
Post by David Holmes
http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip
<http://www.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip>
Post by Guy Bonneau
Post by David Holmes
which seems the 8u JDK.
No that is the GA release of JDK 8. The latest 8u
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/
<http://hg.openjdk.java.net/jdk8u/jdk8u-dev/>
Post by Guy Bonneau
Post by David Holmes
And I have both latest Oracle JDK 7 and JDK 8 installed
on my computer.
Post by Guy Bonneau
Post by David Holmes
Thus I guess the bootstrap JDK must be Oracle JDK 7
1.7.0_80
Post by Guy Bonneau
Post by David Holmes
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 *
Post by David Holmes
Hi Guy,
Post by Guy Bonneau
I am trying to build OpenJDK 8 under Windows 7 with
Cygwin 2.8.0
Post by Guy Bonneau
Post by David Holmes
and ran
Post by David Holmes
Post by Guy Bonneau
into many issues that I was able to successfully fix
until the
last one
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Are you trying to build the latest 8u sources or the
original 8
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
sources? I suspect the former as the referenced
nashorn class below
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
does not exist as of 8u72. What boot JDK are you using?
David
-----
Post by Guy Bonneau
bash ./configure
--with-freetype=/cygdrive/c/Projects/freetype-2.7
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
--with-target-bits=64 --enable-debug --disable-ccache
Note that I had to apply this JDK 9 patch to be able
to build the
Post by Guy Bonneau
Post by David Holmes
OpenJDK
Post by David Holmes
Post by Guy Bonneau
http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b
<http://hg.openjdk.java.net/jdk9/dev/rev/f67da475256b>
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
Running nasgen
Exception in thread "main" java.lang.VerifyError: class
jdk.nashorn.internal.objects.ScriptFunctionImpl
overrides final
method
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
setPrototype.(Ljava/lang/Object;)V
at java.lang.ClassLoader.defineClass1(Native
Method)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.lang.ClassLoader.defineClass(ClassLoader.java:763)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader.access$100(URLClassLoader.java:73)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader$1.run(URLClassLoader.java:368)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader$1.run(URLClassLoader.java:362)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.security.AccessController.doPrivileged(Native Method)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.net.URLClassLoader.findClass(URLClassLoader.java:361)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
java.lang.ClassLoader.loadClass(ClassLoader.java:424)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
Post by David Holmes
Post by Guy Bonneau
at
java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.StringConstants.<clinit>(StringConstants.j
ava:85)
at
jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn(
ScriptClassInstrumentor.java:157)
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.MethodVisitor.visitMethodInsn(MethodVisitor.j
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
ava:509)
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.ClassReader.readCode(ClassReader.java:1445)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.ClassReader.readMethod(ClassReader.java:1046)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.ClassReader.accept(ClassReader.java:722)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.internal.org
<http://jdk.internal.org>.objectweb.asm.ClassReader.accept(ClassReader.java:535)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.process(Main.java:121)
Post by David Holmes
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.processAll(Main.java:88)
Post by Guy Bonneau
at
jdk.nashorn.internal.tools.nasgen.Main.main(Main.java:62)
Post by Guy Bonneau
Post by David Holmes
Post by David Holmes
Post by Guy Bonneau
/cygdrive/c/Projects/openjdk/build/windows-x86_64-normal-server-fastdebug/na
shorn/classes/_the.nasgen.run] Error 1
make: ***
nashorn-only]
Post by David Holmes
Post by Guy Bonneau
Error 2
How can I fix this issue?
Thanks
GB
Weijun Wang
2017-05-04 14:04:40 UTC
Permalink
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
Post by Guy Bonneau
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
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
Post by Guy Bonneau
https://www.dropbox.com/sh/6xbmjzxu8xlbsr0/AADBHa-Zn7owJpyeihlmej9pa?dl=0
Guy Bonneau
2017-05-04 17:43:15 UTC
Permalink
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
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
Post by Guy Bonneau
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
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
Post by Guy Bonneau
https://www.dropbox.com/sh/6xbmjzxu8xlbsr0/AADBHa-Zn7owJpyeihlmej9pa?dl=0
Michal Vala
2017-05-04 19:33:50 UTC
Permalink
Post by Guy Bonneau
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
Post by Guy Bonneau
Thanks
Guy
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
Post by Guy Bonneau
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
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
Post by Guy Bonneau
https://www.dropbox.com/sh/6xbmjzxu8xlbsr0/AADBHa-Zn7owJpyeihlmej9pa?dl=0
--
Michal Vala
OpenJDK QE
Red Hat Czech
Guy Bonneau
2017-05-04 22:53:45 UTC
Permalink
No success with the change to the profile.

Guy
Post by Michal Vala
Post by Guy Bonneau
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
Post by Guy Bonneau
Thanks
Guy
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
Post by Guy Bonneau
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
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
Post by Guy Bonneau
https://www.dropbox.com/sh/6xbmjzxu8xlbsr0/AADBHa-Zn7owJpyeihlmej9pa?dl=0
--
Michal Vala
OpenJDK QE
Red Hat Czech
David Holmes
2017-05-04 23:26:41 UTC
Permalink
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
Post by Guy Bonneau
No success with the change to the profile.
Guy
Post by Guy Bonneau
Post by Guy Bonneau
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.
Post by Guy Bonneau
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.
Post by Guy Bonneau
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.
Post by Guy Bonneau
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.
Post by Guy Bonneau
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.
Post by Guy Bonneau
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.
Post by Guy Bonneau
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
Post by Guy Bonneau
Thanks
Guy
Post by Weijun Wang
Looks like the exploded build succeeds and there is something wrong
with the image build.
Post by Guy Bonneau
Post by Weijun Wang
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?
Post by Guy Bonneau
Post by Weijun Wang
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
/cygdrive/c/Projects/jdk-8/build/windows-x86_64-normal-server-fastdebug/images/lib/_the.rt.jar.contents]
Error 1
Post by Guy Bonneau
Post by Weijun Wang
Can you rerun that grep command and see if _the.rt.jar.contents.tmp
is empty?
Post by Guy Bonneau
Post by Weijun Wang
--Max
Post by Guy Bonneau
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.
Post by Guy Bonneau
Post by Weijun Wang
Post by Guy Bonneau
Guy
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.
Post by Guy Bonneau
Post by Weijun Wang
Post by Guy Bonneau
Thanks
Guy
Post by Guy Bonneau
https://www.dropbox.com/sh/6xbmjzxu8xlbsr0/AADBHa-Zn7owJpyeihlmej9pa?dl=0
--
Michal Vala
OpenJDK QE
Red Hat Czech
Loading...