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

Linker errors when compiling with INLINE_POST option enabled on macOS/Intel #925

Closed
climbfuji opened this issue Nov 18, 2021 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@climbfuji
Copy link
Collaborator

Description

With icc/ifort and mpich on macOS, the following errors are thrown at the last step of linking the application. All of the errors originate from the UPP library. This does not happen with GNU. I am wondering if it is related to the issue that @kgerheiser recently fixed for the ufs-weather-model or not (common symbols not being linked into a library by default on macOS with Intel)?

Note that if I turn off the CMake INLINE_POST option, the code compiles fine.

Undefined symbols for architecture x86_64:
  "_cmassi_mod_mp_cn0r0_", referenced from:
      _calmict_new_ in libupp.a(CALMICT.f.o)
      _calmict_old_ in libupp.a(CALMICT.f.o)
  "_cmassi_mod_mp_cn0r_dmrmax_", referenced from:
      _calmict_new_ in libupp.a(CALMICT.f.o)
      _calmict_old_ in libupp.a(CALMICT.f.o)
  "_cmassi_mod_mp_cn0r_dmrmin_", referenced from:
      _calmict_new_ in libupp.a(CALMICT.f.o)
      _calmict_old_ in libupp.a(CALMICT.f.o)
  "_cmassi_mod_mp_flarge2_", referenced from:
      _calmict_old_ in libupp.a(CALMICT.f.o)
  "_cmassi_mod_mp_massi_", referenced from:
      _calmict_new_ in libupp.a(CALMICT.f.o)
      _calmict_old_ in libupp.a(CALMICT.f.o)
  "_cmassi_mod_mp_mdrmax_", referenced from:
      _calmict_new_ in libupp.a(CALMICT.f.o)
      _calmict_old_ in libupp.a(CALMICT.f.o)
  "_cmassi_mod_mp_nlimax_", referenced from:
      _calmict_old_ in libupp.a(CALMICT.f.o)
  "_cmassi_mod_mp_rqr_drmax_", referenced from:
      _calmict_new_ in libupp.a(CALMICT.f.o)
      _calmict_old_ in libupp.a(CALMICT.f.o)
  "_cmassi_mod_mp_rqr_drmin_", referenced from:
      _calmict_new_ in libupp.a(CALMICT.f.o)
      _calmict_old_ in libupp.a(CALMICT.f.o)
  "_cmassi_mod_mp_t_ice_", referenced from:
      _calmict_new_ in libupp.a(CALMICT.f.o)
      _calmict_old_ in libupp.a(CALMICT.f.o)
  "_cmassi_mod_mp_trad_ice_", referenced from:
      _calrad_wcloud_ in libupp.a(CALRAD_WCLOUD_newcrtm.f.o)
      _cldrad_ in libupp.a(CLDRAD.f.o)
  "_cmassi_mod_mp_xmrmax_", referenced from:
      _calmict_new_ in libupp.a(CALMICT.f.o)
      _calmict_old_ in libupp.a(CALMICT.f.o)
  "_gridspec_mod_mp_cenlat_", referenced from:
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_gridspec_mod_mp_cenlon_", referenced from:
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_gridspec_mod_mp_dxval_", referenced from:
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
      _mdl2p_ in libupp.a(MDL2P.f.o)
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _mapsslp_ in libupp.a(MAPSSLP.f.o)
  "_gridspec_mod_mp_dyval_", referenced from:
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
      _cldrad_ in libupp.a(CLDRAD.f.o)
      _mdl2thandpv_ in libupp.a(MDL2THANDPV.f.o)
      _calvor_ in libupp.a(CALVOR.f.o)
  "_gridspec_mod_mp_gridtype_", referenced from:
      _post_gfs_mp_post_run_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_post_run_regional_ in libfv3atm.a(post_regional.F90.o)
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _calrad_wcloud_ in libupp.a(CALRAD_WCLOUD_newcrtm.f.o)
      _cldrad_ in libupp.a(CLDRAD.f.o)
      _mdl2agl_ in libupp.a(MDL2AGL.f.o)
      _mdl2p_ in libupp.a(MDL2P.f.o)
      ...
  "_gridspec_mod_mp_latlast_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_gridspec_mod_mp_latlast_r_", referenced from:
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_gridspec_mod_mp_latstart_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_gridspec_mod_mp_latstart_r_", referenced from:
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_gridspec_mod_mp_lonlast_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_gridspec_mod_mp_lonlast_r_", referenced from:
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_gridspec_mod_mp_lonstart_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_gridspec_mod_mp_lonstart_r_", referenced from:
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_gridspec_mod_mp_maptype_", referenced from:
      _post_gfs_mp_post_run_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_post_run_regional_ in libfv3atm.a(post_regional.F90.o)
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_gengrb2msg_ in libupp.a(grib2_module.f.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
      _mdl2p_ in libupp.a(MDL2P.f.o)
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      ...
  "_gridspec_mod_mp_standlon_", referenced from:
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_gridspec_mod_mp_truelat1_", referenced from:
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_gridspec_mod_mp_truelat2_", referenced from:
      _post_regional_mp_post_getattr_regional_ in libfv3atm.a(post_regional.F90.o)
      _grib2_module_mp_getgds_ in libupp.a(grib2_module.f.o)
  "_lookup_mod_mp_pl_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _otlft_ in libupp.a(OTLFT.f.o)
      _otlift_ in libupp.a(OTLIFT.f.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
      ...
  "_lookup_mod_mp_plq_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
  "_lookup_mod_mp_ptbl_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _otlft_ in libupp.a(OTLFT.f.o)
      _otlift_ in libupp.a(OTLIFT.f.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
      ...
  "_lookup_mod_mp_qs0_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _otlft_ in libupp.a(OTLFT.f.o)
      _otlift_ in libupp.a(OTLIFT.f.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
      ...
  "_lookup_mod_mp_rdp_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _otlft_ in libupp.a(OTLFT.f.o)
      _otlift_ in libupp.a(OTLIFT.f.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
      ...
  "_lookup_mod_mp_rdpq_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
  "_lookup_mod_mp_rdq_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _otlft_ in libupp.a(OTLFT.f.o)
      _otlift_ in libupp.a(OTLIFT.f.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
      ...
  "_lookup_mod_mp_rdth_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _otlft_ in libupp.a(OTLFT.f.o)
      _otlift_ in libupp.a(OTLIFT.f.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
      ...
  "_lookup_mod_mp_rdthe_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _otlft_ in libupp.a(OTLFT.f.o)
      _otlift_ in libupp.a(OTLIFT.f.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
      ...
  "_lookup_mod_mp_rdtheq_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
  "_lookup_mod_mp_sqs_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _otlft_ in libupp.a(OTLFT.f.o)
      _otlift_ in libupp.a(OTLIFT.f.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
      ...
  "_lookup_mod_mp_sthe_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _otlft_ in libupp.a(OTLFT.f.o)
      _otlift_ in libupp.a(OTLIFT.f.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
      ...
  "_lookup_mod_mp_stheq_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
  "_lookup_mod_mp_the0_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _otlft_ in libupp.a(OTLFT.f.o)
      _otlift_ in libupp.a(OTLIFT.f.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
      ...
  "_lookup_mod_mp_the0q_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
  "_lookup_mod_mp_thl_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _otlft_ in libupp.a(OTLFT.f.o)
      _otlift_ in libupp.a(OTLIFT.f.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
      ...
  "_lookup_mod_mp_ttbl_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _otlft_ in libupp.a(OTLFT.f.o)
      _otlift_ in libupp.a(OTLIFT.f.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
      ...
  "_lookup_mod_mp_ttblq_", referenced from:
      _post_gfs_mp_set_postvars_gfs_ in libfv3atm.a(post_gfs.F90.o)
      _post_regional_mp_set_postvars_regional_ in libfv3atm.a(post_regional.F90.o)
      _upp_physics_mp_calcape_ in libupp.a(UPP_PHYSICS.f.o)
      _upp_physics_mp_calcape2_ in libupp.a(UPP_PHYSICS.f.o)
      _wetbulb_ in libupp.a(WETBULB.f.o)
  "_pmicrph_mod_mp_acrcg_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_acrcg_new_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_acrcr_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_acrcs_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_acrcs_new_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_acrig_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_acris_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_acrls_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_agraupel_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_alpha1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_ap_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_arain_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_asnow_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_ato_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_bacls_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_bacrcg_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_bacrcg_new_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_bacrcr_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_bacrcs_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_bacrcs_new_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_bacrig_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_bacris_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_berc1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_beta1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_bg_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_bp_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_br_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_bs_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_c1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_cir_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_cirf_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_cnp_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_const1a_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_const1b_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_const1r_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_const2r_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_const_ng1_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_const_ng2_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_const_ns1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_const_ns2_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_cpiacr0_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_cpiacr1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_cpiacr2_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_cpiacr3_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_crg_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_crs_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_csg_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_csr_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_cw_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_delqr0_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_depg1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_depg2_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_depg3_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_depg4_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_depr1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_depr2_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_depr3_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_depr4_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_deps1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_deps2_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_deps3_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_deps4_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_dgraupel_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_diace_min_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_dice_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_drain2_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_drain_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_dsnow2_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_dsnow_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_efcr_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_efcs_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_efgc_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_efgi_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_efgr_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_efgs_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_efir_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_efis_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_efsr_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_fgraupel_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_fra1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_frain_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_frd1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_fsnow_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_gamma3_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_gon_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_hgfr_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_int0_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_pgm1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_pgm2_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_pgm3_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_pgm4_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_pi_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_psm1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_psm2_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_psm3_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_psm4_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_qck1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_qcth_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_qr0_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_r1_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_rho_not_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_ron2_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_ron_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_ron_min_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_slog_r1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_slor_r1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_slos_r1_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_son_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_tno_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_topg_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_topr_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_tops_", referenced from:
      _mdlfld_ in libupp.a(MDLFLD.f.o)
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_xm01_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_xm0g_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_xm0s_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_xnu_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_xr0g_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_xr0s_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_pmicrph_mod_mp_xsmax_", referenced from:
      _paramr_ in libupp.a(PARAMR.f.o)
  "_rhgrd_mod_mp_rhgrd_", referenced from:
      _calmict_old_ in libupp.a(CALMICT.f.o)
  "_svptbl_mod_mp_c1xpvs0_", referenced from:
      _gpvs_ in libupp.a(GPVS.f.o)
  "_svptbl_mod_mp_c1xpvs_", referenced from:
      _gpvs_ in libupp.a(GPVS.f.o)
      _fpvs_ in libupp.a(GPVS.f.o)
  "_svptbl_mod_mp_c2xpvs0_", referenced from:
      _gpvs_ in libupp.a(GPVS.f.o)
  "_svptbl_mod_mp_c2xpvs_", referenced from:
      _gpvs_ in libupp.a(GPVS.f.o)
      _fpvs_ in libupp.a(GPVS.f.o)
  "_svptbl_mod_mp_tbpvs0_", referenced from:
      _gpvs_ in libupp.a(GPVS.f.o)
  "_svptbl_mod_mp_tbpvs_", referenced from:
      _gpvs_ in libupp.a(GPVS.f.o)
      _fpvs_ in libupp.a(GPVS.f.o)
ld: symbol(s) not found for architecture x86_64
@climbfuji climbfuji added the bug Something isn't working label Nov 18, 2021
@climbfuji climbfuji changed the title Linker errors when compiling with INLINE_POST option enabled on macOS Linker errors when compiling with INLINE_POST option enabled on macOS/Intel Nov 18, 2021
@kgerheiser
Copy link
Contributor

I imagine those are unitialized module variables that Intel marks as common symbols and that ranlib command should be added there.

@kgerheiser
Copy link
Contributor

You could test it by running ranlib -c libupp.a and re-linking.

@climbfuji
Copy link
Collaborator Author

Excellent, @kgerheiser that solved the problem. I guess this issue needs to move to UPP. Thanks a lot!

@climbfuji
Copy link
Collaborator Author

See NOAA-EMC/UPP#416 for the issue in the UPP repository. The ufs-weather-model issue can be closed once UPP has created a new release with the bugfix included and the UFS weather model uses it, or with PR #904, which makes UPP a submodule in the UFS WM.

@DeniseWorthen
Copy link
Collaborator

I'm going to guess this can be closed, since UPP is now a submodule in UWM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants