[jdk11u-dev] RFR: Allow building with Clang 13 [v9]

Reilly Brogan duke at openjdk.org
Wed Jul 31 19:09:42 UTC 2024


On Mon, 22 Aug 2022 21:26:28 GMT, Reilly Brogan <duke at openjdk.org> wrote:

>> The more I look at this, I think we should strive for a clean & full backport of https://bugs.openjdk.java.net/browse/JDK-8229258 if this is required to enable clang13 compilation.
>
>> The more I look at this, I think we should strive for a clean & full backport of https://bugs.openjdk.java.net/browse/JDK-8229258 if this is required to enable clang13 compilation.
> 
> Yes, I agree. I was going to suggest that myself but I'm temporarily without reliable internet so I haven't been able to work on this for a while.

> Hi @ReillyBrogan, Do you have any updates? Thanks a lot.

We use this patch on Solus with LLVM 18 and it works fine (with https://github.com/getsolus/packages/blob/main/packages/o/openjdk-11/files/0001-ftbfs-llvm-17.patch). Gtest and tier1 jtreg tests pass, and we haven't had any user reports of issues with it.

I don't really have the time or the inclination to work on this currently. It would probably take a openjdk maintainer to really carry this forward, and I imagine they won't do so since forward LLVM compatibility isn't a guarantee.

> OpenJDK 11 build and work fine with LLVM 18 on FreeBSD 14.1 amd64.

Note that FreeBSD uses forks of the JDK projects with additional patches for various LLVM and FreeBSD issues. Their approach to fixing this issue is to disable inlining for the variable, but I couldn't get that to work without test failures.

-------------

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/1284#issuecomment-2261219173


More information about the jdk-updates-dev mailing list