Skip to content
This repository was archived by the owner on Nov 18, 2026. It is now read-only.

Properly link pnetcdf library - #23

Merged
mmiesch merged 1 commit into
release-stablefrom
bugfix/pnetcdf
Jul 6, 2021
Merged

mmiesch merged 1 commit into
release-stablefrom
bugfix/pnetcdf

Conversation

@mmiesch

@mmiesch mmiesch commented Jul 3, 2021 •

Copy link
Copy Markdown

This fixes #22 for me on my Mac.

I am not a CMake expert - there may be better ways to to this, but it works.

I am working on Mac Big Sure with a clang/gfortran/openmpi stack. I was able to reproduce the error in #22 and this fixed it for me. If others verify that this works then I will issue a corresponding PR to jedi-cmake next week. This may also need to be added to the C and CXX targets but this is sufficient for MPAS.

WIth this fix, mpas-bundle builds on my Mac and all mpas-jedi tests pass:

100% tests passed, 0 tests failed out of 41

DESCRIPTION OF CHANGES:
This PR fixes the error linking with PnetCDF when it is built on the Mac machines.

LIST OF MODIFIED FILES:
M cmake/Modules/FindPnetCDF.cmake

ISSUE
Fixes #22

TESTS CONDUCTED:
WIth this fix, mpas-bundle builds on the Mac machines. No impact on Cheyenne build.

@ytremolet ytremolet left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fixes the compilation and all tests pass for me. Thanks.

@shlyaeva shlyaeva left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Solved my issue with building mpas-jedi on mac! Thank you @mmiesch.
It may be worth checking that this doesn't break builds on other machines (cheyenne?), but I don't have access to that.

@byoung-joo

Copy link
Copy Markdown
Collaborator

I will test this PR on Cheyenne now.

@byoung-joo

Copy link
Copy Markdown
Collaborator

This PR was built on Cheyenne. I just got many of ctest failed with UserError: obs bias.output file section missing from the configuration caught. I am looking at the logs, but the failures are not related to this PR.

@shlyaeva

shlyaeva commented Jul 6, 2021

Copy link
Copy Markdown

@byoung-joo thank you for reporting that. Those error messages are a result of the PR I opened in ufo that got merged this morning. I will issue bugfix ASAP.

@byoung-joo byoung-joo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I will merge this soon

@byoung-joo

Copy link
Copy Markdown
Collaborator

Oh I don't have a permission to merge this. As JJ is out of town, we can wait a bit or someone who is authorized might want to merge this PR.

@mmiesch

mmiesch commented Jul 6, 2021

Copy link
Copy Markdown
Author

I can do it - thanks all for testing

@mmiesch
mmiesch merged commit a1f2275 into release-stable Jul 6, 2021
@mmiesch
mmiesch deleted the bugfix/pnetcdf branch July 6, 2021 17:35
climbfuji pushed a commit that referenced this pull request Aug 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Error linking with PnetCDF

4 participants