-
Notifications
You must be signed in to change notification settings - Fork 142
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
pin clang and gcc versions for ubuntu22-openmpi #4696
pin clang and gcc versions for ubuntu22-openmpi #4696
Conversation
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 don't think we use either clang-format or clang-tidy, but if we ever do, these will also need pinning to an agreed upon version.
apt-get install gcc g++ \ | ||
clang \ | ||
apt-get install gcc-9 g++-9 \ | ||
clang-14 \ |
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.
After this, do gcc and g++ automatically point to 9 and does clang point to 14?
I'm asking this because I vaguely remember this only produce gcc-9/clang-14 but no gcc/clang.
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.
Since we are doing versioned install, please do clang-format-14 clang-tidy-14 and libomp-14-dev as they are from llvm
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.
these lines swap the defaults to the new versions
Please push the image and use this PR to see if the image update works as intended. |
@ye-luo the image has been pushed and I reran the tests, under the configure step you should see:
|
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.
Confirmed effective.
Test this please |
Please review the developer documentation
on the wiki of this project that contains help and requirements.
Proposed changes
This is updating the dockerfile for the changes I'm about to push for the
ubuntu22-openmpi:latest
image.GCC9 tests have not been using gcc9, this should set gcc9 as the default and thus fix this.
In addition, I've also done this for clang just in case.
What type(s) of changes does this code introduce?
Delete the items that do not apply
Does this introduce a breaking change?
What systems has this change been tested on?
Checklist
Update the following with a yes where the items apply. If you're unsure about any of them, don't hesitate to ask. This is
simply a reminder of what we are going to look for before merging your code.