On 8/29/21 7:40 PM, R H wrote:
Since jdk18+7, I can not build openjdk anymore for amd64 (debian-11 and
centOS 7, both with clang and gcc, plus windows-10). AARCH64 is OK, as
is anything up to jdk18+6.

* For target
buildtools_interim_langtools_modules_java.compiler.interim__the.BUILD_java.compiler.interim_batch:
warning: unknown enum constant Feature.SEALED_CLASSES
warning: unknown enum constant Feature.SEALED_CLASSES
error: warnings found and -Werror specified
1 error
2 warnings

I always use --disable-warnings-as-errors, which seems to be ignored in
this particular instance.

What am I doing wrong?

Weird, current jdk18 builds fine everywhere I look.

This warning is likely coming from javac invocation. I would suspect the boot JDK issues. Please tell what boot JDK are you using, show the configure output, and ./configure invocation that you are using.

Also, you might want to pin-point the exact changeset that broke it using git bisect (git bisect good jdk-18+6; git bisect bad jdk-18+7; ...)

--
Thanks,
-Aleksey

Reply via email to