Intel® MPI Library
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
2228 Discussions

Incompatible -static_mpi and -static-intel flags for linking in 2024.1

vbashkardin
Beginner
875 Views

Hello,

 

I am trying to compile and link a simple Fortran MPI application to produce a static binary with minimal shared library dependencies. This is what I am getting:

 

$ mpiifx -o mpi_hello_world -static_mpi -static-intel mpi_hello_world.f90
`.text.__intel_get_fast_memcpy_impl' referenced in section `.text.__real_memcpy_impl_setup' of /hpc/tstapps/intel/x86_64/oneapi-2024.update.1/compiler/2024.1/lib/libirc.a(fastmemcpy.c.o): defined in discarded section `.text.__intel_get_fast_memcpy_impl[__intel_get_fast_memcpy_impl]' of /hpc/tstapps/intel/x86_64/oneapi-2024.update.1/compiler/2024.1/lib/libirc.a(fastmemcpy.c.o)
`.text.__intel_get_fast_memset_impl' referenced in section `.text.__real_memset_impl_setup' of /hpc/tstapps/intel/x86_64/oneapi-2024.update.1/compiler/2024.1/lib/libirc.a(fastmemset.c.o): defined in discarded section `.text.__intel_get_fast_memset_impl[__intel_get_fast_memset_impl]' of /hpc/tstapps/intel/x86_64/oneapi-2024.update.1/compiler/2024.1/lib/libirc.a(fastmemset.c.o)
`.text.addq_abs' referenced in section `.text.__addq' of /hpc/tstapps/intel/x86_64/oneapi-2024.update.1/compiler/2024.1/lib/libirc.a(ia32_addsubq.c.o): defined in discarded section `.text.addq_abs[addq_abs]' of /hpc/tstapps/intel/x86_64/oneapi-2024.update.1/compiler/2024.1/lib/libirc.a(ia32_addsubq.c.o)
`.text.subq_abs' referenced in section `.text.__addq' of /hpc/tstapps/intel/x86_64/oneapi-2024.update.1/compiler/2024.1/lib/libirc.a(ia32_addsubq.c.o): defined in discarded section `.text.subq_abs[subq_abs]' of /hpc/tstapps/intel/x86_64/oneapi-2024.update.1/compiler/2024.1/lib/libirc.a(ia32_addsubq.c.o)

 

It looks like I have to drop -static_mpi in order to avoid the symbol conflict in libirc.a and libifort.a

 

This is what I am using:

$ ifx --version
ifx (IFX) 2024.1.0 20240308
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.

$ mpiifx -v
mpiifx for the Intel(R) MPI Library @IMPI_OFFICIALVERSION@ for Linux*
Copyright Intel Corporation.
ifx version 2024.1.0

 

Labels (2)
2 Replies
TobiasK
Moderator
827 Views

@vbashkardin


thanks for reporting this.

The issue is already resolved in our internal builds for the next release 2021.13 / oneAPI 2024.2


0 Kudos
TobiasK
Moderator
552 Views

@vbashkardin

HPC kit 2024.2 / Intel MPI 2021.13 is available now. Please test it.


Reply