jdk8u-dev MacOS 10.15+ build environment?
Simon Tooke
stooke at redhat.com
Wed May 5 13:29:01 UTC 2021
On 2021-04-30 12:55 p.m., Hohensee, Paul wrote:
> 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.
The current supported deployment version of macos for OpenJDK 8u appears
to be 10.8 (2012), but 10.8 hasn't received security patches for years.
I don't have any input on customer requirements, unfortunately, but if
they're deploying on 10.8, they have other issues.
What is the minimum deployment target for Xcode 12? The information
seems hard to come by, and probably, as you've experienced, depends on
the usage of individual APIs more than the Xcode version itself.
If possible, I'd like to push the Xcode version to 12.X, as that is a
fairly modern compiler, and has support for arm64 (which I hope won't be
an issue for 8u, but who knows). It's also more in line with the later
OpenJDK builds. If we choose a recent Xcode, hopefully we can avoid the
current situation for the remaining lifetime of 8u (or at least push it
out so this only has to happen once more).
-Simon
>
> Thanks,
> Paul
>
> -----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.
>
> Thanks,
> --
> 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
>
--
Simon Tooke
Principal Software Engineer - Java Platform
Red Hat Canada, Inc.
stooke at redhat.com
More information about the jdk8u-dev
mailing list