Greetings fellow Fortraners.
I maintain a library written in modern Fortran for computing the flow of radiation (light) through planetary atmospheres. The library and associated .mod files are distributed via conda-forge. To date the libraries have been compiled for Windows with m2w64_fortran but conda-forge would like to consolidate its tool chain to use flang . The bot opened a pull request on my feedstock. The build is failing… AFAIK because the linker is unable to find symbols for procedures within modules. As one of many examples:
lld-link: error: undefined symbol: QMmo_rte_configEcheck_valuesreferenced by %SRC_DIR%\gas-optics\mo_gas_concentrations.F90:194rrtmgp-frontend\CMakeFiles\rrtmgp.dir_\gas-optics\mo_gas_concentrations.F90.obj:(_QMmo_gas_concentrationsPset_vmr_1d)
The build system is CMake for compatibility with the weather and climate models in which the code is often used.
Does anyone have experience packaging Fortran for distribution with conda? Any other bits of advice?
Thanks in advance