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

Duplicate symbols in C/Fortran MPICH libraries #7272

Open
hansec opened this issue Jan 22, 2025 · 0 comments
Open

Duplicate symbols in C/Fortran MPICH libraries #7272

hansec opened this issue Jan 22, 2025 · 0 comments
Assignees

Comments

@hansec
Copy link

hansec commented Jan 22, 2025

Similar to #6814, I am building MPICH 4.2.3. statically (with -fPIC) on macOS. I find that both libraries libmpi.a/libpmpi.a and libmpifort.a contain the objects for the F08<->C status conversion functions (MPI_Status_c2f08, MPI_Status_f08c, PMPI_Status_c2f08, PMPI_Status_f08c). I later try to link all three libraries into a shared library, which fails because of duplicate symbols. This process works on 4.2.2.

The objects are defined in mpi_f08_types.o in libmpifort.a and in lib_libpmpi_la-c_binding.o/lib_libmpi_la-c_binding.o in libpmpi.a/libmpi.a.

I assume a fix similar to #6815 can fix this?

@hzhou hzhou self-assigned this Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants