Got a warning treated as an error -- should I keep trying to build? And if so, how?
Kim Barrett
kim.barrett at oracle.com
Tue Aug 12 14:45:46 UTC 2025
On 8/11/25 8:16 PM, David Alayachew wrote:
> 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 <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.
[...]
> 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
It looks like that was addressed in openjdk mainline here:
https://github.com/openjdk/jdk/pull/25293 - integrated 2025-05-21
Maybe that change hasn't been merged into the valhalla repository?
You can configure with --disable-warnings-as-error to suppress the error.
More information about the build-dev
mailing list