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

MOM6 fails relinking with Intel LLVM 2024.2.1 (Segfault) on Rocky8 #1120

Open
stiggy87 opened this issue Jan 16, 2025 · 0 comments
Open

MOM6 fails relinking with Intel LLVM 2024.2.1 (Segfault) on Rocky8 #1120

stiggy87 opened this issue Jan 16, 2025 · 0 comments
Assignees
Labels
bug Something is not working INFRA JEDI Infrastructure SOCA Sea-ice, Ocean, and Coupled Assimilation

Comments

@stiggy87
Copy link

Description

Testing the new Intel LLVM 2024.2.1 on Rocky8 (AWS EC2) and latest space-stack develop. When building the JEDI bundle, the MOM6 library gets re-linked and it segfaults:

/usr/bin/ar: Relink `/opt/intel/oneapi/compiler/2024.2/lib/libimf.so' with `/lib64/libm.so.6' for IFUNC symbol `cosf'
Error running link command: Segmentation fault
make[3]: *** [soca/mom6/CMakeFiles/mom6.dir/build.make:4297: soca/mom6/libmom6.a] Error 1
make[3]: *** Deleting file 'soca/mom6/libmom6.a'
make[2]: *** [CMakeFiles/Makefile2:29719: soca/mom6/CMakeFiles/mom6.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:29787: soca/src/soca/CMakeFiles/soca.dir/rule] Error 2
make: *** [Makefile:11275: soca] Error 2

There is no problem with this on Ubuntu 24.04.

To Reproduce:

What compilers/machines are you seeing this with? Intel LLVM (icx, with ifort) 2024.2.1
Give explicit steps to reproduce the behavior.

  1. Install latest Intel LLVM on Rocky8 using:
tee > /tmp/oneAPI.repo << EOF
[oneAPI]
name=Intel® oneAPI repository
baseurl=https://yum.repos.intel.com/oneapi
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
EOF

sudo mv /tmp/oneAPI.repo /etc/yum.repos.d

dnf install intel-oneapi-compiler-dpcpp-cpp-2024.2 intel-oneapi-compiler-fortran-2024.2 intel-oneapi-mpi-devel-2021.13 intel-oneapi-tbb-devel-2021.13 intel-oneapi-mkl-devel-2024.2
  1. clone soca
  2. build soca (make -j10)
  3. Should see the error shown above.

Additional context

This is strictly testing on a Rocky8 AWS instance so it may not happen on the HPCs running Rocky8. I can provide my Rocky8 instance for testing/analysis if desired.

For now, this can be backlogged into icebox unless an HPC sees this issue.

I would consider this a super low priority issue.

Output

/usr/bin/ar: Relink `/opt/intel/oneapi/compiler/2024.2/lib/libimf.so' with `/lib64/libm.so.6' for IFUNC symbol `cosf'
Error running link command: Segmentation fault
make[3]: *** [soca/mom6/CMakeFiles/mom6.dir/build.make:4297: soca/mom6/libmom6.a] Error 1
make[3]: *** Deleting file 'soca/mom6/libmom6.a'
make[2]: *** [CMakeFiles/Makefile2:29719: soca/mom6/CMakeFiles/mom6.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:29787: soca/src/soca/CMakeFiles/soca.dir/rule] Error 2
make: *** [Makefile:11275: soca] Error 2
@stiggy87 stiggy87 added bug Something is not working INFRA JEDI Infrastructure SOCA Sea-ice, Ocean, and Coupled Assimilation labels Jan 16, 2025
@stiggy87 stiggy87 self-assigned this Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working INFRA JEDI Infrastructure SOCA Sea-ice, Ocean, and Coupled Assimilation
Projects
None yet
Development

No branches or pull requests

1 participant