-
Notifications
You must be signed in to change notification settings - Fork 488
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
8283402: Update to gcc 11.2 on Linux #761
Conversation
/reviewers 2 |
👋 Welcome back kcr! A progress list of the required criteria for merging this PR into |
@kevinrushforth |
Copy/paste error. That should be 11.2 (I updated the Description). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I shall do a test build and update.
@@ -83,8 +83,8 @@ jobs: | |||
run: | | |||
set -x | |||
sudo apt-get update | |||
sudo apt-get install libgl1-mesa-dev libx11-dev libxxf86vm-dev libxt-dev pkg-config libgtk2.0-dev libgtk-3-dev libxtst-dev gcc-10=10.3.0-1ubuntu1~20.04 g++-10=10.3.0-1ubuntu1~20.04 | |||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 | |||
sudo apt-get install libgl1-mesa-dev libx11-dev libxxf86vm-dev libxt-dev pkg-config libgtk2.0-dev libgtk-3-dev libxtst-dev gcc-11 g++-11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this install 11.2? The CI is using Focal, and afaik there is no gcc-11.2 for focal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it will use whatever the latest is for GitHub actions. There doesn't seem to be an 11.2 package for GHA. It should be sufficient for most testing, but highlights one of the limitations of relying on GitHub Actions for anything more than a sanity test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(based on the printout I see in the log files, the current version of gcc 1.x available on the GHA Linux nodes is 11.1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
11.1 is what I'm using on 18.04 and 20.04 as well. I wonder if that is good enough, or are there particular reasons why you want to update to 11.2 ?
Updating to gcc 11.2 matches JDK 19 -- JDK-8283057. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build on Ubuntu 20.04 looked fine to me.
Given that the gcc 11.2 compiler isn't available for the latest Ubuntu LTS, 20.04, it seems worth putting this on hold for a bit. I have moved it to Draft. |
This is working on our build/ci pipeline now, using a dedicated devkit that is very similar to the one produced by https://github.com/openjdk/jdk/tree/master/make/devkit . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm this works with a GCC 11.2 built from source (on an Ubuntu 22.0.4 system).
@kevinrushforth This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 8 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
/integrate |
Going to push as commit c7d3fd9.
Your commit was automatically rebased without conflicts. |
@kevinrushforth Pushed as commit c7d3fd9. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This patch updates the compiler to gcc 11.2 on Linux, in order to match JDK 19 -- see JDK-8283057.
I ran a full build and test, including media and WebKit.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx pull/761/head:pull/761
$ git checkout pull/761
Update a local copy of the PR:
$ git checkout pull/761
$ git pull https://git.openjdk.org/jfx pull/761/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 761
View PR using the GUI difftool:
$ git pr show -t 761
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/761.diff