Details
-
Bug
-
Resolution: Fixed
-
P2
-
14, 15
-
- Environment: cygwin version 2.11.1(0.329/5/3) (root at /cygdrive/c/cygwin64)
- Boot JDK: openjdk version "13-internal" 2019-09-17 OpenJDK Runtime Environment (build 13-internal+0-adhoc..build) OpenJDK 64-Bit Server VM (build 13-internal+0-adhoc..build, mixed mode, sharing) (at /cygdrive/c/cygwin64/home/windows/jdks/jdk13)
- Toolchain: microsoft (Microsoft Visual Studio 2013)
- C Compiler: Version 18.00.31101 (at /cygdrive/c/progra~2/micros~1.0/vc/bin/x86_am~1/cl)
Environment: cygwin version 2.11.1(0.329/5/3) (root at /cygdrive/c/cygwin64) Boot JDK: openjdk version "13-internal" 2019-09-17 OpenJDK Runtime Environment (build 13-internal+0-adhoc..build) OpenJDK 64-Bit Server VM (build 13-internal+0-adhoc..build, mixed mode, sharing) (at /cygdrive/c/cygwin64/home/windows/jdks/jdk13) Toolchain: microsoft (Microsoft Visual Studio 2013) C Compiler: Version 18.00.31101 (at /cygdrive/c/progra~2/micros~1.0/vc/bin/x86_am~1/cl)
-
b29
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8236392 | 15 | Stefan Karlsson | P2 | Resolved | Fixed | b03 |
Description
On older MSVC 2013, build fails with:
c:\cygwin64\home\windows\worker\jdkX-windows\build\src\hotspot\share\gc/z/zMarkStack.hpp(76) : error C2059: syntax error : 'identifier'
c:\cygwin64\home\windows\worker\jdkX-windows\build\src\hotspot\share\gc/z/zMarkStack.hpp(77) : error C2059: syntax error : 'identifier'
make[3]: *** [lib/CompileJvm.gmk:178: /cygdrive/c/cygwin64/home/windows/worker/jdkX-windows/build/build/windows-x86_64-server-release/hotspot/variant-server/libjvm/objs/ad_x86.obj] Error 1
make[3]: *** Waiting for unfinished jobs....
c:\cygwin64\home\windows\worker\jdkX-windows\build\src\hotspot\share\gc/z/zMarkStack.hpp(76) : error C2059: syntax error : 'identifier'
c:\cygwin64\home\windows\worker\jdkX-windows\build\src\hotspot\share\gc/z/zMarkStack.hpp(77) : error C2059: syntax error : 'identifier'
It concerns ZCACHE_ALIGNED. Dropping ZCACHE_ALIGNED from those lines makes the build failed later:
Building target 'images' in configuration 'windows-x86_64-server-release'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(35) : error C2059: syntax error : '<L_TYPE_raw>'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(35) : error C2238: unexpected token(s) preceding ';'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(37) : error C2059: syntax error : '<L_TYPE_raw>'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(37) : error C2238: unexpected token(s) preceding ';'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(42) : error C2146: syntax error : missing ';' before identifier 'VirtualAlloc2'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(42) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(44) : error C2146: syntax error : missing ';' before identifier 'MapViewOfFile3'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(44) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
The obvious workaround is --with-jvm-features=-zgc, which is unfortunate.
c:\cygwin64\home\windows\worker\jdkX-windows\build\src\hotspot\share\gc/z/zMarkStack.hpp(76) : error C2059: syntax error : 'identifier'
c:\cygwin64\home\windows\worker\jdkX-windows\build\src\hotspot\share\gc/z/zMarkStack.hpp(77) : error C2059: syntax error : 'identifier'
make[3]: *** [lib/CompileJvm.gmk:178: /cygdrive/c/cygwin64/home/windows/worker/jdkX-windows/build/build/windows-x86_64-server-release/hotspot/variant-server/libjvm/objs/ad_x86.obj] Error 1
make[3]: *** Waiting for unfinished jobs....
c:\cygwin64\home\windows\worker\jdkX-windows\build\src\hotspot\share\gc/z/zMarkStack.hpp(76) : error C2059: syntax error : 'identifier'
c:\cygwin64\home\windows\worker\jdkX-windows\build\src\hotspot\share\gc/z/zMarkStack.hpp(77) : error C2059: syntax error : 'identifier'
It concerns ZCACHE_ALIGNED. Dropping ZCACHE_ALIGNED from those lines makes the build failed later:
Building target 'images' in configuration 'windows-x86_64-server-release'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(35) : error C2059: syntax error : '<L_TYPE_raw>'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(35) : error C2238: unexpected token(s) preceding ';'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(37) : error C2059: syntax error : '<L_TYPE_raw>'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(37) : error C2238: unexpected token(s) preceding ';'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(42) : error C2146: syntax error : missing ';' before identifier 'VirtualAlloc2'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(42) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(44) : error C2146: syntax error : missing ';' before identifier 'MapViewOfFile3'
c:\Work\jdk-jdk14\src\hotspot\os\windows\gc/z/zSyscall_windows.hpp(44) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
The obvious workaround is --with-jvm-features=-zgc, which is unfortunate.
Attachments
Issue Links
- backported by
-
JDK-8236392 Windows (MSVC 2013) build failures after JDK-8233299
-
- Resolved
-
- relates to
-
JDK-8233299 Implementation: JEP 365: ZGC on Windows
-
- Resolved
-