Runtime error on MacOSx with nlohmann::json, out_of_range exception: key 'NUOPC' not found #311
-
Requirements
Affiliation(s)NOAA EPIC ESMF Versionv8.6.0 IssueESMF v8.6.0 is built on MacOS as a part of a software stack for the ufs_weather model; it is
There is another GitHub discussion on the issues with running ufs_weather_model on MacOS, which boil down to the same error: Any further leads on how to diagnose the exact issue and solve the problem is extremely valuable!.. This appears to be stuck for few months. Autotag |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 11 replies
-
Hi @natalie-perlin
I think the issue may have to do with the libc++abi library and namespaces. If there are any |
Beta Was this translation helpful? Give feedback.
-
@danrosen25 @billsacks SDKROOT set, No any warnings were issued. All PET files were identical to:
|
Beta Was this translation helpful? Give feedback.
-
Thanks @natalie-perlin Then we can also try adding the following to the CMakeLists.txt for UFS. Probably best before the project call. |
Beta Was this translation helpful? Give feedback.
-
@natalie-perlin |
Beta Was this translation helpful? Give feedback.
-
I'm seeing a different error in this log.
The develop branch of the nuopc-app-prototypes isn't guaranteed to work with older versions of ESMF. You may need to download the specific version that matches your ESMF release: https://github.com/esmf-org/nuopc-app-prototypes/releases/tag/v8.6.0 |
Beta Was this translation helpful? Give feedback.
-
@billsacks @danrosen25 @SamuelTrahanNOAA What seemed to help to build ufs_model and to run it SUCCESSFULLY(!) was to set LINKER_LANGUAGE to CXX instead of Fortran in CMakeLists.txt, i.e.: The only one concern is the need to set linker to CXX for the code that is nearly entirely in Fortran (and a little C), just because of a library (even a few libraries) in CXX... Please correct me if I'm wrong! Thank you for your help! |
Beta Was this translation helpful? Give feedback.
@billsacks @danrosen25 @SamuelTrahanNOAA
What seemed to help to build ufs_model and to run it SUCCESSFULLY(!) was to set LINKER_LANGUAGE to CXX instead of Fortran in CMakeLists.txt, i.e.:
set_target_properties(ufs_model PROPERTIES LINKER_LANGUAGE CXX)
The only one concern is the need to set linker to CXX for the code that is nearly entirely in Fortran (and a little C), just because of a library (even a few libraries) in CXX... Please correct me if I'm wrong!
Thank you for your help!