jdk8u-dev MacOS 10.15+ build environment?

Hohensee, Paul hohensee at amazon.com
Fri Apr 30 16:55:39 UTC 2021

For Corretto, we're using macOS 10.10 and Xcode 6 to build 8u. The 8u build fails with 10.8 + Xcode 4 due to the backport of https://bugs.openjdk.java.net/browse/JDK-8211301, which uses NSFullSizeContentViewWindowMask, which is not present in 10.8. Similarly with https://bugs.openjdk.java.net/browse/JDK-8251546, TCP_KEEPCNT and TCP_KEEPINTVL are not present in 10.8.

I suggest we update the minimum macOS build environment. 10.8 and Xcode 4 have been out of support for a long time. If your company delivers macOS 8u binaries, please post your minimum build configuration.


-----Original Message-----
From: jdk8u-dev <jdk8u-dev-retn at openjdk.java.net> on behalf of Andrew Hughes <gnu.andrew at redhat.com>
Date: Tuesday, March 16, 2021 at 8:42 PM
To: Simon Tooke <stooke at redhat.com>
Cc: "jdk8u-dev at openjdk.java.net" <jdk8u-dev at openjdk.java.net>
Subject: RE: jdk8u-dev MacOS 10.15+ build environment?

On 08:24 Mon 15 Mar     , Simon Tooke wrote:
> On 2021-03-15 7:19 a.m., Andrew Haley wrote:
> > On 3/1/21 2:33 PM, Andrew Leonard wrote:
> >
> > > I have a Mac OS contribution i've developed and tested at AdoptOpenJDK, I
> > > would like to contribute it upstream to jdk8u-dev, unfortunately the
> > > jdk8u-dev supported build platform is MacOS 10.7. Is there a method people
> > > use to build & test their contributions if you don't have a MacOS 10.7
> > > environment? The AdoptOpenJDK jdk8u base has patches to allow building
> > > jdk8u with Xcode 11.5 on 10.15+..
> > Let's get those patches in, then. Who contributed them? We'd
> > need to get them to contribute to 8u.
> Almost all the patches are backports; as they were not bugfixes per se, they
> rarely got approved.
> https://github.com/stooke/jdk8u-xcode10  see especially the patch
> directories.
> -Simon

From what I remember, they were not proposed as backports but as a separate
patch without the source history.

I can't see a problem with most of the changes proposed, particularly if they
only touch a build configuration (Mac OS) which doesn't work at present.

Patches like https://cr.openjdk.java.net/~phh/jdk8u-xcode12-patches/hotspot/8033289.patch
I've backported myself a long time ago in IcedTea.

Which version of clang are we targetting? As I said before, with the shared code,
a lot of this seems to be warnings from a particular version of clang that will
likely be the same on other platforms, and so can be reproduced without needing
Mac OS.

Andrew :)

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