Build OpenJDK 8 on MacOS Mojave (10.14.3)
Simon Tooke
stooke at redhat.com
Thu Mar 21 14:28:29 UTC 2019
I have (with a couple of small changes) built 8u on the latest macOS +
XCode. The laptop with that build is at home right now, so I cant
forward a patch. It was mostly fixing clang debug file generation and
updating Xcode version checking.
My build runs fine but crashes on shutdown in
PerfDataManager::destroy(). Interestingly, it was an issue for some
people building JDK 9, too [1]; I suspect it won't be too hard to track
down, but since it's a weekend project I haven't got to it yet.
I'll poke at it this evening.
-Simon
[1]
https://stackoverflow.com/questions/51123714/issue-when-using-mac-to-build-openjdk-9
On 3/21/2019 6:05 AM, Langer, Christoph wrote:
> Hi,
>
> the Mac experts will probably find my question to be silly and start laughing… but nevertheless, I’m asking it here
>
> I was looking into building OpenJDK 8 today on my developer Mac, which runs Mojave (10.14.3). configure immediately tells me, I need Xcode 4. So I was trying to install xcode 4.6.3 – but seems this wouldn’t run on Mojave. What can I do?
>
> Ok, on the build requirements page [0], the requirements are documented to be MacOS 10.7 (Lion). However, I’m thinking, since OpenJDK 8 is not completely legacy yet, at least a developer build should be possible on a current operating system. I would accept having to install the oldest running Xcode compiler for sure, but not at all being able to build on a recent MacOS is not good.
>
> So, question to the experts: Will it be impossible to bump the build environment because changes would be too complex? Or is there a solution to this which I’m just not aware of?
>
> Thank you and Best regards
> Christoph
>
> [0] https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms
>
More information about the jdk8u-dev
mailing list