<div dir="ltr"><div>Hi Elazar,</div><div><br></div><div>> How is adoptium building it? Does it use specific <span class="gmail-il">compiler</span>?</div><div><br></div><div>Yes - Adoptium uses our own build of gcc 7.5.0 to build Temurin's jdk8u on Linux. If you wish to use the same environment as us, the simplest way is to pull the `adoptopenjdk/centos7_build_image` and use that which will be a preconfigured environment (replace centos7 with centos6 if on x64 for exactly the one we use, but 7 will likely work too) and you should be able to use the temurin-build scripts in that container. The 7.5.0 compiler is under `/usr/local/gcc` in that image. Other GCC versions are installed under /usr/local that we use for different versions of the JDK. If you specifically want to go down the route of creating those containers yourself from scratch, they are set up using ansible in the dockerfiles from <a href="https://github.com/adoptium/infrastructure/tree/master/ansible/docker">https://github.com/adoptium/infrastructure/tree/master/ansible/docker</a>.</div><div><br></div><div>> FTR using temurin-build repository and scripts, fails for other reasons, and fails even with -D/--podman docker containers.</div><div><br></div><div>Thanks for the info. If you could raise an issue with the details of that over at <a href="https://github.com/adoptium/temurin-build">https://github.com/adoptium/temurin-build</a> that would be appreciated. While we don't use those options in the main temurin build processes they are useful for other users of our scripts and someone has been updating and testing those options recently (after a bit of stagnation) to add the support for podman so I believe they should be in a reasonable state at the moment. Hopefully we can get that fixed if they are currently misbehaving in some environments.<br></div><div><br></div><div>Hope that helps.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div><div>Stewart...</div><div>--</div><div>Working for <a href="https://www.redhat.com" target="_blank">Red Hat</a> on <a href="https://adoptium.net" target="_blank">Adoptium Temurin</a> and <a href="http://nodejs.org" target="_blank">Node.js<br></a><div><a href="https://fosstodon.org/@sxa" target="_blank">https://fosstodon.org/@sxa</a></div></div><a href="https://github.com/sxa" target="_blank">https://github.com/sxa</a><br><div><a href="http://nodejs.org" target="_blank"></a></div><div><br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 6 Aug 2024 at 17:37, Magnus Ihse Bursie <<a href="mailto:magnus.ihse.bursie@oracle.com">magnus.ihse.bursie@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Elazar,<br>
<br>
I see that you never got any replies here. I suggest that you re-ask <br>
your question on the jdk8u mailing list instead (cc'd).<br>
<br>
/Magnus<br>
<br>
On 2024-07-19 16:20, Elazar Leibovich wrote:<br>
> When trying to compile the latest jdk8u on linux I get failures over <br>
> warnings with the register keywords.<br>
><br>
> I'm using <a href="https://github.com/openjdk/jdk8u-dev.git" rel="noreferrer" target="_blank">https://github.com/openjdk/jdk8u-dev.git</a> which seems to be <br>
> pretty up to date (I'm using master), and last commit is less than two <br>
> days ago.<br>
><br>
> This is a workaround I had to use:<br>
> diff --git a/hotspot/make/linux/makefiles/gcc.make <br>
> 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<br>
><br>
> But I guess the best solution is to remove the register keywords from <br>
> the codebase.<br>
><br>
> How is adoptium building it? Does it use specific compiler? Is the <br>
> supported compiler documented anywhere?<br>
><br>
> FTR using temurin-build repository and scripts, fails for other <br>
> reasons, and fails even with -D/--podman docker containers.<br>
><br>
> This patch builds it with centos stream 9 on amd64.<br>
><br>
> Am I doing something wrong? What's the recommended way of building jdk8?<br>
><br>
> Thanks,<br>
> Elazar Leibovich<br>
<br>
</blockquote></div>