-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fixes for non-Baselibs (spack) build #2682
Conversation
Thank you for the clarification. |
@mathomp4 I'm trying to compile this version using ESMF 8.6.1b04 in order to test it in the ufs-weather-model and the build fails in cmake configure with:
Line 152 in CMakeLists.txt is:
If I comment out line 152 the configure step finishes successfully and the build proceeds. Alias targets are read-only and can not be changed. |
@DusanJovic-NOAA You should not see that if you are using ESMF 8.6.1b04 and you have the same You'll want to check and see. I propagated that file to ESMA_cmake and @DanRosen of ESMF said that it needs to go in more places too:
You might want to make sure |
Note, though, that |
I'm building ESMF and MAPL manually, without spack. However in my libraries build directory I find these FindESMF.cmake files:
esmf's and mapl's versions are identical, but esma_cmake's is different. |
Let me see if I can somehow make mapl 'find' esmf's FindESMF.cmake. Sounds weird, to tell mapl where to 'find' esmf's FindESMF.cmake only to find ESMF. |
The version of Line 61 in 5f91a5c
after ESMA_cmake's diretory is already appended to CMAKE_MODULE_PATH, so esma's version take precedent. If I change APPEND to PREPEND then the version from mapl/cmake directory is used. |
@DusanJovic-NOAA Ahhh. I see. Smart. I'll test that. If that works, then we'll do that. |
NOTE
A note to @tclune This branch is called
hotfix/mathomp4/fix-spack-build
only because a previous attempt (see #2599) when I thought it was a simple fix was a hotfix. But since this will require a newer ESMF, we are sort of stuck not making it a hotfix. But keeping the branch name the same lets CI be happy in testing.Description
As found by @AlexanderRichert-NOAA in spack/spack#42619 I was a bit too heavy-handed with the sed and changed too many things to
ESMF::ESMF
. As such, I broke the Spack build of MAPL 2.44For
spack install mapl
to work, this will require ESMF 8.6.1. In this case we will be moving to ESMA Baselibs 7.24.0 which has ESMF 8.6.1b04 (which is functionally identical to ESMF 8.6.1).So, this updates the internal components to ESMA_env v4.29.0 (Baselibs 7.24.0) and ESMA_cmake v3.45.0 (Update
FindESMF.cmake
and more).Related:
Related Issue
Motivation and Context
Fixes the spack build of MAPL!
How Has This Been Tested?
This builds in GEOSgcm and is zero-diff and
spack install mapl
works as well.Types of changes
Checklist: