Skip to content

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

@stiggy87

Description

@stiggy87

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

Metadata

Metadata

Assignees

Labels

INFRAJEDI InfrastructureSOCASea-ice, Ocean, and Coupled AssimilationbugSomething is not working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions