JDK-8248901: Signed immediate support in [...] breaks 8u build on Windows/RHEL 6

Severin Gehwolf sgehwolf at redhat.com
Tue Aug 10 14:01:21 UTC 2021


On Tue, 2021-08-10 at 11:53 +0200, Severin Gehwolf wrote:
> Hi Andrew,
> 
> On Tue, 2021-08-10 at 06:26 +0100, Andrew Hughes wrote:
> > On 18:22 Mon 09 Aug     , Severin Gehwolf wrote:
> > > Hi,
> > > 
> > > JDK-8248901 got backported to 8u and is included in 8u312-b01. It ended
> > > up there as a pre-requisite for JDK-8247766 which isn't yet approved
> > > (thus, pushed). This breaks the Vanilla JDK 8u builds for Linux (built
> > > on RHEL/CentOS 6) and Windows.
> > > 
> > > See:
> > > https://bugs.openjdk.java.net/browse/JDK-8270379?focusedCommentId=14440384&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14440384
> > > 
> > > and
> > > 
> > > https://bugs.openjdk.java.net/browse/JDK-8270379?focusedCommentId=14440626&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14440626
> > > 
> > > Could somebody please look into it or shall we rather revert?
> > > 
> > > Opinions?
> > > 
> > > Thanks,
> > > Severin
> > > 
> > 
> > On RHEL 6, the definition of {U,}INT64_C is guarded by
> > __STDC_CONSTANT_MACROS. If we define that in globalDefinitions.hpp,
> > or globalDefinitions_gcc.hpp, the build works on that platform.
> > 
> > Comparing stdint.h on RHEL 6 with the one on RHEL 8 shows:
> > 
> > -/* The ISO C99 standard specifies that in C++ implementations these
> > -   should only be defined if explicitly requested.  */
> > -#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
> > -
> > 
> > In the webrev [0], I've added it to globalDefinitions.hpp in the hope
> > it may also work on Windows. Please give this a try.
> 
> Thanks, testing it now.

The proposed patch seems to fix the build on both platforms.

Windows before:
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-windows-x64-hotspot/1088/

Windows after:
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-windows-x64-hotspot/1089/

Linux before:
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-linux-x64-hotspot/1038/

Linux after:
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-linux-x64-hotspot/1039/

Please propose for review!

Thanks,
Severin



More information about the jdk8u-dev mailing list