Skip to content

ufs-weather-model build on MacBook M3 Sonoma 14.5 #2371

Answered by natalie-perlin
barlage asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks to the support at https://github.com/orgs/esmf-org/discussions/311 (comment)
building and running ufs_model is successful when CXX linker is used instead of Fortran linker.
This includes the following change in main CMakeLists.txt for the ufs_model:

set_target_properties(ufs_model PROPERTIES LINKER_LANGUAGE CXX)

(note use of "CXX" instead of the currently used "Fortran" in the ufs wm repo)

So the final linking of the executable is the key issue. I did test options to do the last step of linking the ufs_model by hand, and replacing "mpicxx " in the string that assembles a successful ufs_model binary by "mpifort" with the same list of libraries, which did not help to solve the problem.

Replies: 12 comments 17 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@climbfuji
Comment options

@barlage
Comment options

Comment options

You must be logged in to vote
3 replies
@gspetro-NOAA
Comment options

@climbfuji
Comment options

@climbfuji
Comment options

Comment options

You must be logged in to vote
7 replies
@uturuncoglu
Comment options

@barlage
Comment options

@uturuncoglu
Comment options

@climbfuji
Comment options

@gspetro-NOAA
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@climbfuji
Comment options

@DusanJovic-NOAA
Comment options

@natalie-perlin
Comment options

@mathomp4
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@climbfuji
Comment options

Answer selected by natalie-perlin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants