Skip to content

Update the cmake minimum version to 3.5 #22154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2025

Conversation

pshipton
Copy link
Member

See some discussion in https://github.ibm.com/runtimes/infrastructure/issues/10196 about compatibility with cmake 4.x

@keithc-ca
Copy link
Contributor

The minimum must also be increased in OMR - 3.2 will not be accepted by cmake 4.1.

@pshipton
Copy link
Member Author

The minimum must also be increased in OMR - 3.2 will not be accepted by cmake 4.1.

Is that for building OMR, or do the places in OMR affect the OpenJ9 build?

@keithc-ca
Copy link
Contributor

do the places in OMR affect the OpenJ9 build?

See https://github.com/eclipse-omr/omr/blob/master/CMakeLists.txt#L26 which applies to the OMR portion when used in OpenJ9.

@pshipton
Copy link
Member Author

I saw the places, I'm not convinced they affect an OpenJ9 build since afaik OpenJ9 doesn't build OMR from the top level (although I'm easily wrong), unless in your testing you've encountered a problem?

@keithc-ca
Copy link
Contributor

unless in your testing you've encountered a problem

Yes. Using a newer version of cmake leads to a fatal error unless both OMR and OpenJ9 are modified.

@pshipton
Copy link
Member Author

It will have to wait until after Canada Day vacations.

@keithc-ca
Copy link
Contributor

We don't need to change the minimum, just opt into policy changes of newer versions; see #22161 and eclipse-omr/omr#7817 (which can be merged independently).

@pshipton pshipton closed this Jun 27, 2025
@keithc-ca
Copy link
Contributor

Reopening: #22161 was reverted.

@keithc-ca keithc-ca reopened this Jul 2, 2025
@keithc-ca
Copy link
Contributor

Sorry, meant to reopen #19445, not this.

@keithc-ca keithc-ca closed this Jul 2, 2025
@pshipton pshipton reopened this Jul 7, 2025
@pshipton
Copy link
Member Author

pshipton commented Jul 7, 2025

jenkins compile aix jdk11

@keithc-ca
Copy link
Contributor

Is this intended to just be stop-gap until a working version of #22161 is available?

Using a newer version of cmake leads to a fatal error unless both OMR and OpenJ9 are modified.

We'll still need a similar change in OMR before anyone could use cmake 4.0.x.

@pshipton
Copy link
Member Author

pshipton commented Jul 7, 2025

Is this intended to just be stop-gap until a working version of #22161 is available?

Could be. First I wanted to check if this change caused the AIX build problem. I'll enquire about changing OMR.

pshipton added a commit to pshipton/omr that referenced this pull request Jul 7, 2025
This maintains compatibility with some 4.0.x versions.

Related to eclipse-openj9/openj9#22154

Signed-off-by: Peter Shipton <[email protected]>
@pshipton
Copy link
Member Author

pshipton commented Jul 7, 2025

As long as there are no objections from the OMR community, the OMR cmake minimum will be updated to 3.5.
eclipse-omr/omr#7826 (review)

@keithc-ca
Copy link
Contributor

This won't be fully effective until eclipse-omr/omr#7826 promotes, but I see no reason to delay merging this.

@keithc-ca keithc-ca merged commit 5869929 into eclipse-openj9:master Jul 8, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants