GDAL.jl
GDAL.jl copied to clipboard
MPIPreferences OpenMPI configuration breaks GDAL.jl precompilation`
Problem Description
GDAL.jl fails to precompile when OpenMPI is configured via MPIPreferences because it has a hard dependency on MPICH_jll, which gets blocked by the OpenMPI configuration.
Reproduction Steps
Create an empty folder in in that a new Julia project
using Pkg
Pkg.activate(".")
Pkg.add(["GDAL", "MPIPreferences"])
using MPIPreferences
MPIPreferences.use_jll_binary("OpenMPI_jll") # or MPIPreferences.use_system_binary() if OpenMPI is installed
Restart julia (important) and try to instantiate the project or to precompile GDAL. When you check the error messages, you will see that there is a dependency from libgdal.so to libmpi.so.12, which is part of MPICH_jll.
System
Julia version: 1.11.6 GDAL version: 1.11.0 Tried on Fedora 42 and Arch Linux