JDK-8248901: Signed immediate support in [...] breaks 8u build on Windows/RHEL 6
Andrew Hughes
gnu.andrew at redhat.com
Tue Aug 10 05:26:50 UTC 2021
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.
Can you also file a bug for this, rather than commenting on the
backport bug? We'll need a bug ID even to do a full reversion.
[0] https://cr.openjdk.java.net/~andrew/openjdk8/8248901-fail/webrev.01/
Thanks,
--
Andrew :)
Pronouns: he / him or they / them
Senior Free Java Software Engineer
OpenJDK Package Owner
Red Hat, Inc. (http://www.redhat.com)
PGP Key: ed25519/0xCFDA0F9B35964222 (hkp://keys.gnupg.net)
Fingerprint = 5132 579D D154 0ED2 3E04 C5A0 CFDA 0F9B 3596 4222
More information about the jdk8u-dev
mailing list