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

Build issues with MAPL 3 and ifx 2024.2 #2881

Closed
mathomp4 opened this issue Jun 21, 2024 · 2 comments
Closed

Build issues with MAPL 3 and ifx 2024.2 #2881

mathomp4 opened this issue Jun 21, 2024 · 2 comments
Assignees
Labels
🪲 Bug Something isn't working

Comments

@mathomp4
Copy link
Member

mathomp4 commented Jun 21, 2024

Well, unlike MAPL 2 (see #2880), MAPL 3 doesn't even build. It gets close, but dies in linking GeomIO:

[ 88%] Linking Fortran static library ../lib/libMAPL.GeomIO.a
cd /home/mathomp4/Models/MAPL3-IFX-2024.2/build-Debug/GeomIO && /ford1/share/gmao_SIteam/Utilities/cmake-3.28.3/bin/cmake -P CMakeFiles/MAPL.GeomIO.dir/cmake_clean_target.cmake
cd /home/mathomp4/Models/MAPL3-IFX-2024.2/build-Debug/GeomIO && /ford1/share/gmao_SIteam/Utilities/cmake-3.28.3/bin/cmake -E remove /home/mathomp4/Models/MAPL3-IFX-2024.2/build-Debug/lib/libMAPL.GeomIO.a
cd /home/mathomp4/Models/MAPL3-IFX-2024.2/build-Debug/GeomIO && /ford1/share/gmao_SIteam/Utilities/cmake-3.28.3/bin/cmake -E cmake_link_script CMakeFiles/MAPL.GeomIO.dir/link.txt --verbose=1
/usr/bin/ar qc ../lib/libMAPL.GeomIO.a CMakeFiles/MAPL.GeomIO.dir/GeomIO.F90.o CMakeFiles/MAPL.GeomIO.dir/SharedIO.F90.o CMakeFiles/MAPL.GeomIO.dir/Geom_PFIO.F90.o CMakeFiles/MAPL.GeomIO.dir/Grid_PFIO.F90.o CMakeFiles/MAPL.GeomIO.dir/GeomCatagorizer.F90.o CMakeFiles/MAPL.GeomIO.dir/pFIOServerBounds.F90.o
/usr/bin/ar: Relink `/ford1/share/gmao_SIteam/intel/oneapi/compiler/2024.2/lib/libimf.so' with `/lib64/libm.so.6' for IFUNC symbol `cosf'
Error running link command: Segmentation fault
make[2]: *** [GeomIO/CMakeFiles/MAPL.GeomIO.dir/build.make:173: lib/libMAPL.GeomIO.a] Error 1

I'll mention @bena-nasa as he wrote the layer, but honestly, this error sort of baffles me. GeomIO's CMake is pretty boring and I don't think the code is that spectacularly different from the rest of MAPL3.

I mean, the error sort of points to a cosine function (I'd imagine) but there is no cos() in there.

@mathomp4 mathomp4 added the 🪲 Bug Something isn't working label Jun 21, 2024
@mathomp4
Copy link
Member Author

Wait a second. This is a static library? MAPL 3 is all shared... One moment...

@mathomp4 mathomp4 changed the title Issues with MAPL 3 and ifx 2024.2 Build issues with MAPL 3 and ifx 2024.2 Jun 21, 2024
@mathomp4
Copy link
Member Author

Closing as #2882 will fix this. Congrats to ifx for exposing a bug that apparently ifort, gfortran, and nagfor all missed!

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

2 participants