<div dir="ltr">When trying to compile the latest jdk8u on linux I get failures over warnings with the register keywords.<div><br></div><div>I'm using <a href="https://github.com/openjdk/jdk8u-dev.git">https://github.com/openjdk/jdk8u-dev.git</a> which seems to be pretty up to date (I'm using master), and last commit is less than two days ago.<br><div><br></div><div>This is a workaround I had to use:</div><div>diff --git a/hotspot/make/linux/makefiles/gcc.make b/hotspot/make/linux/makefiles/gcc.make<br>index 7dde7f0963..81f156574a 100644<br>--- a/hotspot/make/linux/makefiles/gcc.make<br>+++ b/hotspot/make/linux/makefiles/gcc.make<br>@@ -202,7 +202,7 @@ else<br> endif<br><br> # Compiler warnings are treated as errors<br>-WARNINGS_ARE_ERRORS = -Werror<br>+WARNINGS_ARE_ERRORS = -Werror -Wno-register</div><div><br></div><div>But I guess the best solution is to remove the register keywords from the codebase.</div><div><br></div><div>How is adoptium building it? Does it use specific compiler? Is the supported compiler documented anywhere?</div><div><br></div><div>FTR using temurin-build repository and scripts, fails for other reasons, and fails even with -D/--podman docker containers.<br><br>This patch builds it with centos stream 9 on amd64.</div><div><br></div><div>Am I doing something wrong? What's the recommended way of building jdk8?</div><div><br></div><div>Thanks,</div><div>Elazar Leibovich</div></div></div>