Re: jdk8u: -Wno-regsiter to support newer compilers

2024-08-08 Thread Zdeněk Žamberský
On 07. 08. 24 14:02, Zdeněk Žamberský wrote: I think to have jdk8 build work out of box, it is better to use older OSes. Like rhel/centos <= 8. You can use VM or container. I personally usually use rhel-8 VM, if I want to build jdk8 locally. Others distros, which should work: Ubuntu <= 20.04 de

Re: jdk8u: -Wno-regsiter to support newer compilers

2024-08-07 Thread Thorsten Glaser
On Wed, 7 Aug 2024, Zdeněk Žamberský wrote: > Others distros, which should work: > Ubuntu <= 20.04 > debian <= bullseye (I think) I maintain OpenJDK 8 for Debian, and my own (local repo and PPA), Debian’s and Ubuntu’s own builds cover Debian wheezy (7) up to unstable and all Ubuntu LTS versions f

Re: jdk8u: -Wno-regsiter to support newer compilers

2024-08-07 Thread Zdeněk Žamberský
Hello, this is known issue, which should get fixed by JDK-8281096: https://github.com/openjdk/jdk8u-dev/pull/357 (see also: https://github.com/openjdk/jdk8u-dev/pull/508) TLDR: Jdk 8 explicitly specifies older c++ version (gnu++98, which not yet deprecated 'register' keyword), but flags are n

Re: jdk8u: -Wno-regsiter to support newer compilers

2024-08-07 Thread Zdeněk Žamberský
Just to clarify, I meant distros, which should just work out of box (currently). That is: installation of dependencies -> configure -> make. According to documentation, without patching, explicit/custom toolchain configuration, etc.. (newer distros often need some additional effort due to newe

Re: jdk8u: -Wno-regsiter to support newer compilers

2024-08-07 Thread Zdeněk Žamberský
I think to have jdk8 build work out of box, it is better to use older OSes. Like rhel/centos <= 8. You can use VM or container. I personally usually use rhel-8 VM, if I want to build jdk8 locally. Others distros, which should work: Ubuntu <= 20.04 debian <= bullseye (I think) When it comes to ve

Re: jdk8u: -Wno-regsiter to support newer compilers

2024-08-07 Thread Stewart X Addison
Hi Elazar, > How is adoptium building it? Does it use specific compiler? 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

Re: jdk8u: -Wno-regsiter to support newer compilers

2024-08-06 Thread David Holmes
On 7/08/2024 4:42 am, Elazar Leibovich wrote: Thanks, I did follow the readme, but could not find any commentary about the build environment or the required compilers. There is a tiny bit of info there but I think it is out-of-date: Linux X86 (32-bit) and X64 (64-bit) Fedora 9 gcc 4.3 Mac OS

Re: jdk8u: -Wno-regsiter to support newer compilers

2024-08-06 Thread Elazar Leibovich
Thanks, I did follow the readme, but could not find any commentary about the build environment or the required compilers. Even less information was on Mac OS X, where the autoconf files seems not to be updated, and as a result arm was chosen instead of aarch64. If you can point me to a specific se

Re: jdk8u: -Wno-regsiter to support newer compilers

2024-08-06 Thread Magnus Ihse Bursie
On 2024-08-06 20:33, Elazar Leibovich wrote: Thanks, I still fail to understand how JDK8u developers are building the project. Setting up a build environment for jdk8 is unfortunately not a trivial task. The build readme can be of some use: https://github.com/openjdk/jdk8u-dev/blob/master/do

Re: jdk8u: -Wno-regsiter to support newer compilers

2024-08-06 Thread Elazar Leibovich
Thanks, I still fail to understand how JDK8u developers are building the project. Is there a docker file specifying the build environment? What's the recommended way of doing that? Removing the register keyword, plus disabling an overflow warning in a specific test with pragma did the trick for me,

Re: jdk8u: -Wno-regsiter to support newer compilers

2024-08-06 Thread Magnus Ihse Bursie
Hi Elazar, I see that you never got any replies here. I suggest that you re-ask your question on the jdk8u mailing list instead (cc'd). /Magnus On 2024-07-19 16:20, Elazar Leibovich wrote: When trying to compile the latest jdk8u on linux I get failures over warnings with the register keyword

jdk8u: -Wno-regsiter to support newer compilers

2024-07-19 Thread Elazar Leibovich
When trying to compile the latest jdk8u on linux I get failures over warnings with the register keywords. I'm using https://github.com/openjdk/jdk8u-dev.git which seems to be pretty up to date (I'm using master), and last commit is less than two days ago. This is a workaround I had to use: diff -