Skip to content

MPI.jl is broken on Julia master #915

@eschnett

Description

@eschnett

This recent change to Julia master

commit 9427f339c90d9c726deeaf05517c2ecabbf02bd6
Author: Sam Schweigel <[email protected]>
Date:   Fri Sep 12 08:54:20 2025 -0700

    jl_dlfind: do not find symbols in library dependencies (#58815)

broke MPI.jl:

julia +nightly
julia> ]activate --temp
julia> ]add MPI
julia> using MPI
ERROR: InitError: could not load symbol "MPI_UNWEIGHTED":
dlsym(0xb80342a1, MPI_UNWEIGHTED): symbol not found
Stacktrace:
  [1] init_consts()
    @ MPI.API ~/.julia/packages/MPI/hNJm0/src/api/api.jl:82
  [2] __init__()
    @ MPI ~/.julia/packages/MPI/hNJm0/src/MPI.jl:168```

The reason seems to be that we are looking for the MPI constants (e.g. MPI_UNWEIGHTED) in the global namespace, but we now need to look explicitly in the respective MPI library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions