You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
On my mac I am hitting the following problem:
Undefined symbols for architecture x86_64:
"_maximize_system_stacksize_limit", referenced from:
___fms_mod_MOD_check_nml_error in libfms_r8.a(fms.F90.o)
___fms_mod_MOD_fms_init.part.0 in libfms_r8.a(fms.F90.o)
___fms_mod_MOD_write_version_number in libfms_r8.a(fms.F90.o)
___fms_mod_MOD_error_mesg in libfms_r8.a(fms.F90.o)
___fms_mod_MOD_fms_init in libfms_r8.a(fms.F90.o)
"_mpp_init_", referenced from:
___module_wrt_grid_comp_MOD_wrt_initialize_p1 in libfv3atm.a(module_wrt_grid_comp.F90.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
I already had to add use mpp_mod and use fms_mod before the use fms statement in module_wrt_grid_comp.F90, but it seems that the C function maximize_system_stacksize_limit isn't defined anywhere in the installed library:
> grep -Rie maximize_system_stacksize_limit envs/fms-beta-chained-clang/install/apple-clang/13.1.6/fms-2023.02-beta1-q26chym
Binary file envs/fms-beta-chained-clang/install/apple-clang/13.1.6/fms-2023.02-beta1-q26chym/lib/libfms_r4.a matches
Binary file envs/fms-beta-chained-clang/install/apple-clang/13.1.6/fms-2023.02-beta1-q26chym/lib/libfms_r8.a matches
> nm envs/fms-beta-chained-clang/install/apple-clang/13.1.6/fms-2023.02-beta1-q26chym/lib/libfms_r4.a |grep maximize
envs/fms-beta-chained-clang/install/apple-clang/13.1.6/fms-2023.02-beta1-q26chym/lib/libfms_r4.a:yaml_parser_binding.c.o: no symbols
envs/fms-beta-chained-clang/install/apple-clang/13.1.6/fms-2023.02-beta1-q26chym/lib/libfms_r4.a:yaml_output_functions.c.o: no symbols
envs/fms-beta-chained-clang/install/apple-clang/13.1.6/fms-2023.02-beta1-q26chym/lib/libfms_r4.a:constants.F90.o: no symbols
envs/fms-beta-chained-clang/install/apple-clang/13.1.6/fms-2023.02-beta1-q26chym/lib/libfms_r4.a:constantsr4.F90.o: no symbols
envs/fms-beta-chained-clang/install/apple-clang/13.1.6/fms-2023.02-beta1-q26chym/lib/libfms_r4.a:fm_yaml.F90.o: no symbols
U _maximize_system_stacksize_limit
envs/fms-beta-chained-clang/install/apple-clang/13.1.6/fms-2023.02-beta1-q26chym/lib/libfms_r4.a:yaml_parser.F90.o: no symbols
envs/fms-beta-chained-clang/install/apple-clang/13.1.6/fms-2023.02-beta1-q26chym/lib/libfms_r4.a:fms_yaml_output.F90.o: no symbols
envs/fms-beta-chained-clang/install/apple-clang/13.1.6/fms-2023.02-beta1-q26chym/lib/libfms_r4.a:platform.F90.o: no symbols
(and same for libfms_r8.a).
To Reproduce
Try to build current ufs-weather-model with [email protected] - note that you need to enable the legacy fms_io bindings.
Expected behavior
No undefined references in final linker step
@climbfuji - I suspect this is an issue with the newly created fms/fms_stacksize.c file not existing in the CMakeLists.txt fms_c_src_files list. Also, we have not yet tested the functionality on a Mac - still trying to get a working autotools environment for our tests. So if you do encounter issues with any of the logic in this file, please keep us updated via this issue.
Describe the bug
On my mac I am hitting the following problem:
I already had to add
use mpp_mod
anduse fms_mod
before theuse fms
statement inmodule_wrt_grid_comp.F90
, but it seems that the C functionmaximize_system_stacksize_limit
isn't defined anywhere in the installed library:(and same for
libfms_r8.a
).To Reproduce
Try to build current ufs-weather-model with
[email protected]
- note that you need to enable the legacyfms_io
bindings.Expected behavior
No undefined references in final linker step
System Environment
Additional context
Add any other context about the problem. If applicable, include where any files
that help describe, or reproduce the problem exist.
The text was updated successfully, but these errors were encountered: