Skip to content
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

Merged

Conversation

walshmm
Copy link
Contributor

@walshmm walshmm commented Aug 10, 2023

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

  • Bugfix
  • CI

Does this introduce a breaking change?

  • No

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.

  • Yes This PR is up to date with current the current state of 'develop'
  • Yes Code added or changed in the PR has been clang-formatted
  • N/A This PR adds tests to cover any new code, or to catch a bug that is being fixed
  • N/A Documentation has been added (if appropriate)

prckent
prckent previously approved these changes Aug 10, 2023
Copy link
Contributor

@prckent prckent left a 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 \
Copy link
Contributor

@ye-luo ye-luo Aug 10, 2023

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.

Copy link
Contributor

@ye-luo ye-luo Aug 10, 2023

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

Copy link
Contributor Author

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

@ye-luo
Copy link
Contributor

ye-luo commented Aug 10, 2023

Please push the image and use this PR to see if the image update works as intended.

@walshmm
Copy link
Contributor Author

walshmm commented Aug 11, 2023

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:

-- The C compiler identification is GNU 9.5.0
-- The CXX compiler identification is GNU 9.5.0

Copy link
Contributor

@ye-luo ye-luo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed effective.

@ye-luo
Copy link
Contributor

ye-luo commented Aug 11, 2023

Test this please

@ye-luo ye-luo enabled auto-merge August 11, 2023 20:55
@ye-luo ye-luo merged commit 4c84791 into QMCPACK:develop Aug 11, 2023
@prckent prckent mentioned this pull request Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants