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

Static linkage MPI + OpenMP fails with multiple definition: hwloc_internal_memattr_set_value

NicolaPepe88
Beginner
145 Views

Hello!

 

I'm trying to link statically an MPI (or hybrid: MPI+OMP) application but the error is:

 

ld: /opt/intel/oneapi_2025.1.1/compiler/2025.1/lib/libiomp5.a(memattrs.o): in function `hwloc_internal_memattr_set_value': (.text+0x1a40): multiple definition of `hwloc_internal_memattr_set_value'; /opt/intel/oneapi_2025.1.1/mpi/2021.15/lib/libmpi.a(memattrs.o):/build/impi/_buildspace/release/src/hwloc/hwloc/../../../../../src/hwloc/hwloc/memattrs.c:938: first defined here

Same error for MPI or hybrid test.

As mentioned by @foxtran,`hwloc_internal_memattr_set_value` is used both in MPI and OpenMP runtimes.

 

I'm using the latest version of HPC toolkit : 2025.1.1 (30.04.2025)

Here the version of mpiifx

mpiifx -v
mpiifx for the Intel(R) MPI Library 2021.15 for Linux*
Copyright Intel Corporation.
ifx version 2025.1.1

 

 

 

Labels (2)
0 Kudos
1 Reply
TobiasK
Moderator
37 Views

@NicolaPepe88 thanks for reporting that, The developers are looking into it


0 Kudos
Reply