Got a warning treated as an error -- should I keep trying to build? And if so, how?

David Alayachew davidalayachew at gmail.com
Tue Aug 12 00:16:45 UTC 2025


Hello Build Dev Team,

I was trying to build the Valhalla repository off of the lworld branch, but
I ran into the following build error.

I went through the directions on this link --
https://openjdk.org/groups/build/doc/building.html

I went through the trouble-shooting section as well. It had useful
information, but nothing that clearly moved me forward.

I successfully ran bash configure. Here is the final output section

====================================================
A new configuration has been successfully created in
/home/david/valhalla/build/windows-x86_64-server-release
using default settings.

Configuration summary:
* Name:           windows-x86_64-server-release
* Debug level:    release
* HS debug level: product
* JVM variants:   server
* JVM features:   server: 'cds compiler1 compiler2 epsilongc g1gc jfr
jni-check jvmci jvmti management parallelgc serialgc services shenandoahgc
vm-structs zgc'
* OpenJDK target: OS: windows, CPU architecture: x86, address length: 64
* Version string: 25-internal-adhoc.david.valhalla (25-internal)
* Source date:    1754954438 (2025-08-11T23:20:38Z)

Tools summary:
* Environment:    cygwin version 3.6.4-1.x86_64, 2025-07-15 07:55 UTC;
windows version 10.0.26100.4652; prefix "/cygdrive"; root "C:\cygwin64"
* Boot JDK:       openjdk version "25-ea" 2025-09-16 OpenJDK Runtime
Environment (build 25-ea+34-3482) OpenJDK 64-Bit Server VM (build
25-ea+34-3482, mixed mode, sharing) (at
/cygdrive/c/users/david/_workspace_new/_programming/_jdk/jdk-25)
* Toolchain:      microsoft (Microsoft Visual Studio 2022)
* C Compiler:     Version 19.44.35214 (at
/cygdrive/c/progra~1/micros~4/2022/commun~1/vc/tools/msvc/1444~1.352/bin/hostx64/x64/cl.exe)
* C++ Compiler:   Version 19.44.35214 (at
/cygdrive/c/progra~1/micros~4/2022/commun~1/vc/tools/msvc/1444~1.352/bin/hostx64/x64/cl.exe)

Build performance summary:
* Build jobs:     8
* Memory limit:   15605 MB






And here is the output for the make images command.




Creating support/modules_cmds/jdk.jlink/jlink.exe from 1 file(s)
Creating support/modules_cmds/jdk.jpackage/jpackage.exe from 1 file(s)
Creating
jdk/modules/jdk.jpackage/jdk/jpackage/internal/resources/jpackageapplauncher.exe
from 24 file(s)
Creating support/modules_libs/jdk.jpackage/jpackage.dll from 23 file(s)
Creating support/modules_cmds/jdk.jlink/jmod.exe from 1 file(s)
Creating
jdk/modules/jdk.jpackage/jdk/jpackage/internal/resources/wixhelper.dll from
19 file(s)
Creating
jdk/modules/jdk.jpackage/jdk/jpackage/internal/resources/msiwrapper.exe
from 18 file(s)
Creating support/modules_cmds/jdk.jshell/jshell.exe from 1 file(s)
Creating
jdk/modules/jdk.jpackage/jdk/jpackage/internal/resources/jpackageapplauncherw.exe
from 24 file(s)
Creating support/modules_cmds/jdk.jstatd/jstatd.exe from 1 file(s)
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(184):
error C2220: the following warning is treated as an error
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(184):
warning C5287: operands are different enum types
'<unnamed-enum-JVMTI_VERSION_1>' and
'<unnamed-enum-JVMTI_VERSION_MASK_INTERFACE_TYPE>'; use an explicit cast to
silence this warning
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(184):
note: to simplify migration, consider the temporary use of /Wv:18 flag with
the version of the compiler with which you used to build without warnings
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(186):
warning C5287: operands are different enum types
'<unnamed-enum-JVMTI_VERSION_1>' and
'<unnamed-enum-JVMTI_VERSION_MASK_INTERFACE_TYPE>'; use an explicit cast to
silence this warning
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(186):
note: to simplify migration, consider the temporary use of /Wv:18 flag with
the version of the compiler with which you used to build without warnings
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(188):
warning C5287: operands are different enum types
'<unnamed-enum-JVMTI_VERSION_1>' and
'<unnamed-enum-JVMTI_VERSION_MASK_INTERFACE_TYPE>'; use an explicit cast to
silence this warning
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(188):
note: to simplify migration, consider the temporary use of /Wv:18 flag with
the version of the compiler with which you used to build without warnings
make[3]: *** [modules/jdk.jdwp.agent/Lib.gmk:55:
/home/david/valhalla/build/windows-x86_64-server-release/support/native/jdk.jdwp.agent/libjdwp/debugInit.obj]
Error 1
make[3]: *** Waiting for unfinished jobs....
Creating support/modules_libs/jdk.net/extnet.dll from 1 file(s)
Creating support/modules_libs/jdk.security.auth/jaas.dll from 1 file(s)
Updating images/sec-bin.zip
Updating images/sec-windows-bin.zip
make[2]: *** [make/Main.gmk:182: jdk.jdwp.agent-libs] Error 2
make[2]: *** Waiting for unfinished jobs....
Updating images/jgss-windows-x64-bin.zip

ERROR: Build failed for target 'images' in configuration
'windows-x86_64-server-release' (exit code 2)

=== Output from failing command(s) repeated here ===
* For target support_native_jdk.jdwp.agent_libjdwp_debugInit.obj:
debugInit.c
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(184):
error C2220: the following warning is treated as an error
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(184):
warning C5287: operands are different enum types
'<unnamed-enum-JVMTI_VERSION_1>' and
'<unnamed-enum-JVMTI_VERSION_MASK_INTERFACE_TYPE>'; use an explicit cast to
silence this warning
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(184):
note: to simplify migration, consider the temporary use of /Wv:18 flag with
the version of the compiler with which you used to build without warnings
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(186):
warning C5287: operands are different enum types
'<unnamed-enum-JVMTI_VERSION_1>' and
'<unnamed-enum-JVMTI_VERSION_MASK_INTERFACE_TYPE>'; use an explicit cast to
silence this warning
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(186):
note: to simplify migration, consider the temporary use of /Wv:18 flag with
the version of the compiler with which you used to build without warnings
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(188):
warning C5287: operands are different enum types
'<unnamed-enum-JVMTI_VERSION_1>' and
'<unnamed-enum-JVMTI_VERSION_MASK_INTERFACE_TYPE>'; use an explicit cast to
silence this warning
C:\cygwin64\home\david\valhalla\src\jdk.jdwp.agent\share\native\libjdwp\debugInit.c(188):
note: to simplify migration, consider the temporary use of /Wv:18 flag with
the version of the compiler with which you used to build without warnings
   ... (rest of output omitted)

* All command lines available in
/home/david/valhalla/build/windows-x86_64-server-release/make-support/failure-logs.
=== End of repeated output ===

No indication of failed target found.
HELP: Try searching the build log for '] Error'.
HELP: Run 'make doctor' to diagnose build problems.

make[1]: *** [/home/david/valhalla/make/Init.gmk:144: main] Error 2
make: *** [/home/david/valhalla/make/PreInit.gmk:158: images] Error 2


Thank you for your time and help.
David Alayachew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20250811/a503cd7f/attachment-0001.htm>


More information about the build-dev mailing list