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

EAMxx: create rrtmgp allsky baseline target with CreateUnitTest utility #6875

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

bartgol
Copy link
Contributor

@bartgol bartgol commented Jan 7, 2025

Fix issue in eamxx build system when we generate baselines using shared libs.


The cmake utility links (indirectly) against scream_io, which avoids link errors in case of shared libraries. The errors are due to the fact that scream_share does use scream_io stuff, but the rrtmgp executable was not linking against it (directly or indirectly). However, since the exec was indeed not using ANY of the scream_io symbols, static linking is fine, but dynamic linking is not (one of the key differences in static vs dynamic linking).

The cmake utility links (indirectly) against scream_io, which avoids
link errors in case of shared libraries. The errors are due to the
fact that scream_share does use scream_io stuff, but the rrtmgp
executable was not linking against it. Since the exec was indeed
not using ANY of the scream_io symbols, static linking is fine, but
dynamic linking is not.
@bartgol bartgol added bug fix PR Testing Anything related to unit/system tests CMake build system EAMxx PRs focused on capabilities for EAMxx labels Jan 7, 2025
@bartgol bartgol requested a review from tcclevenger January 7, 2025 23:28
@bartgol bartgol self-assigned this Jan 7, 2025
@bartgol
Copy link
Contributor Author

bartgol commented Jan 8, 2025

Just the expected failures from MAM as in master. Merging.

@bartgol bartgol merged commit 6e40aeb into master Jan 8, 2025
17 of 20 checks passed
@bartgol bartgol deleted the bartgol/eamxx/fix-rrtmgp-test-with-shared-libs branch January 8, 2025 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix PR CMake build system EAMxx PRs focused on capabilities for EAMxx Testing Anything related to unit/system tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants