JDK-8252551 : JDK-8250630 causes build error on Win*
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 16
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: x86_64
  • Submitted: 2020-08-30
  • Updated: 2021-01-13
  • Resolved: 2020-08-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16 b14Fixed
Related Reports
Relates :  
Description
The following fix was pushed in jdk-16+14-556, but the fix
appears to cause a build error on Windows:

[2020-08-30T15:22:05,060Z] Creating support/native/java.base/libnio/static/nio.lib from 18 file(s)
[2020-08-30T15:22:06,701Z] t:/workspace/open/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c(719): error C2220: the following warning is treated as an error
[2020-08-30T15:22:06,701Z] t:/workspace/open/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c(719): warning C4101: 'pass': unreferenced local variable
[2020-08-30T15:22:06,717Z] modules/jdk.jdwp.agent/Lib.gmk:30: recipe for target '/cygdrive/t/workspace/build/windows-x64-debug/support/native/jdk.jdwp.agent/libdt_socket/static/socketTransport.obj' failed
[2020-08-30T15:22:06,717Z] make[3]: *** [/cygdrive/t/workspace/build/windows-x64-debug/support/native/jdk.jdwp.agent/libdt_socket/static/socketTransport.obj] Error 1
[2020-08-30T15:22:06,717Z] make[3]: *** Waiting for unfinished jobs....
[2020-08-30T15:22:07,889Z] Compiling 74 files for jdk.crypto.cryptoki
[2020-08-30T15:22:08,013Z] Compiling 409 files for jdk.compiler
[2020-08-30T15:22:08,276Z] Creating support/native/jdk.internal.le/lible/static/le.lib from 1 file(s)
[2020-08-30T15:22:09,436Z] make/Main.gmk:216: recipe for target 'jdk.jdwp.agent-static-libs' failed
[2020-08-30T15:22:09,436Z] make[2]: *** [jdk.jdwp.agent-static-libs] Error 2
[2020-08-30T15:22:09,436Z] make[2]: *** Waiting for unfinished jobs....
[2020-08-30T15:22:09,702Z] Compiling 197 files for java.naming
[2020-08-30T15:24:12,728Z] make[2]: INTERNAL: Exiting with 13 jobserver tokens available; should be 16!
[2020-08-30T15:24:12,774Z] 
[2020-08-30T15:24:12,774Z] ERROR: Build failed for target 'default (product-bundles test-bundles static-libs-bundles)' in configuration 'windows-x64-debug' (exit code 2) 
[2020-08-30T15:24:12,900Z] Stopping sjavac server
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/051767c83ff1 User: dcubed Date: 2020-08-30 16:46:19 +0000
30-08-2020

Looks like the fix for JDK-8250630 made the 'pass' local variable unused. Here's the likely fix: $ hg diff diff -r d7707af10c98 src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c --- a/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c Sun Aug 30 15:48:16 2020 +0300 +++ b/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c Sun Aug 30 11:37:39 2020 -0400 @@ -716,7 +716,6 @@ char** actualAddress) { int err; - int pass; struct addrinfo *addrInfo = NULL; struct addrinfo *listenAddr = NULL; struct addrinfo *ai = NULL; Testing the above in a Mach5 Tier3 job set.
30-08-2020