Describe the bug
I tried today to build FMS 2025.04 with ifx 2025.3 and got this:
[ 61%] Linking Fortran executable test_mpp_alltoall
ld.lld: error: relocation refers to a symbol in a discarded section: mpp_mod::mpp_byte_
>>> defined in libfms.a(mpp.F90.o)
>>> section group signature: mpp_mod_mp_mpp_byte_
>>> prevailing definition is in CMakeFiles/test_mpp_alltoall.dir/test_fms/mpp/test_mpp_alltoall.F90.o
>>> or the symbol in the prevailing group had STB_WEAK binding and the symbol in a non-prevailing group had STB_GLOBAL binding. Mixing groups with STB_WEAK and STB_GLOBAL binding signature is not supported
>>> referenced by ifxrddV1S.i90
>>> mpp.F90.o:(mpp_mod::mpp_init_) in archive libfms.a
>>> referenced by ifxMVBfzj.i90
>>> CMakeFiles/test_mpp_alltoall.dir/test_fms/mpp/test_mpp_alltoall.F90.o:(test_mpp_alltoall::test_mpp_alltoallw_real4_)
>>> referenced by ifxMVBfzj.i90
>>> CMakeFiles/test_mpp_alltoall.dir/test_fms/mpp/test_mpp_alltoall.F90.o:(test_mpp_alltoall::test_mpp_alltoallw_real4_)
>>> referenced 14 more times
gmake[4]: *** [CMakeFiles/test_mpp_alltoall.dir/build.make:111: test_mpp_alltoall] Error 1
gmake[4]: Leaving directory '/gpfsm/dswdev/gmao_SIteam/Baselibs/ESMA-Baselibs-9.4.0/src/FMS/build'
gmake[3]: *** [CMakeFiles/Makefile2:4099: CMakeFiles/test_mpp_alltoall.dir/all] Error 2
gmake[3]: Leaving directory '/gpfsm/dswdev/gmao_SIteam/Baselibs/ESMA-Baselibs-9.4.0/src/FMS/build'
gmake[2]: *** [Makefile:146: all] Error 2
gmake[2]: Leaving directory '/gpfsm/dswdev/gmao_SIteam/Baselibs/ESMA-Baselibs-9.4.0/src/FMS/build'
make[1]: *** [GNUmakefile:1133: FMS.install] Error 2
make[1]: Leaving directory '/gpfsm/dswdev/gmao_SIteam/Baselibs/ESMA-Baselibs-9.4.0/src'
I'm going to cc @climbfuji as maybe he's seen this in his ifx travels?
To Reproduce
I am building FMS 2025.04 in ESMA-Baselibs and the CMake line is:
cmake -B build -S . -DCMAKE_INSTALL_PREFIX=$(prefix)/FMS \
-DCMAKE_PREFIX_PATH=$(prefix) -DFPIC=ON -DCONSTANTS=GEOS \
-DNetCDF_ROOT=$(prefix) -DNetCDF_INCLUDE_DIR=$(prefix)/include/netcdf
Expected behavior
Things to build.
System Environment
Describe the system environment, include:
- OS: SLES 15.4
- Compiler(s): Intel
ifx 2025.3
- MPI: Intel MPI 2021.17
- netCDF Version: C: v4.9.2, Fortran: v4.6.1
- Configure options:
-DFPIC=ON -DCONSTANTS=GEOS -DNetCDF_ROOT=$(prefix) -DNetCDF_INCLUDE_DIR=$(prefix)/include/netcdf
Additional context
I was able to build with ifort 2021.13 + IMPI 2021.13 and gfortran 15.2 + openmpi 4.1.6. So I'm thinking it is an ifx issue.
Describe the bug
I tried today to build FMS 2025.04 with ifx 2025.3 and got this:
I'm going to cc @climbfuji as maybe he's seen this in his ifx travels?
To Reproduce
I am building FMS 2025.04 in ESMA-Baselibs and the CMake line is:
Expected behavior
Things to build.
System Environment
Describe the system environment, include:
ifx2025.3-DFPIC=ON -DCONSTANTS=GEOS -DNetCDF_ROOT=$(prefix) -DNetCDF_INCLUDE_DIR=$(prefix)/include/netcdfAdditional context
I was able to build with ifort 2021.13 + IMPI 2021.13 and gfortran 15.2 + openmpi 4.1.6. So I'm thinking it is an ifx issue.