GMT fails to precompile in Julia 1.10.4

I’m updating to Julia 1.10.4. Most of the packages precompiled fine, but GMT is refusing to precompile. When I use VScode, I get the following error:

ERROR: LoadError: InitError: could not load library "C:\Users\johns\.julia\artifacts\9db36ce542776801f81c6432d08864ea4abfc279\bin\libgdal-35.dll"
The specified module could not be found. 
Stacktrace:
  [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
    @ Base.Libc.Libdl .\libdl.jl:117
  [2] dlopen(s::String, flags::UInt32)
    @ Base.Libc.Libdl .\libdl.jl:116
  [3] macro expansion
    @ C:\Users\johns\.julia\packages\JLLWrappers\pG9bm\src\products\library_generators.jl:63 [inlined]
  [4] __init__()
    @ GDAL_jll C:\Users\johns\.julia\packages\GDAL_jll\EQFRa\src\wrappers\x86_64-w64-mingw32-cxx11.jl:78
  [5] run_module_init(mod::Module, i::Int64)
    @ Base .\loading.jl:1134
  [6] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1122
  [7] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
    @ Base .\loading.jl:1067
  [8] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base .\loading.jl:1581
  [9] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1938
 [10] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1812
 [11] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
...
 [26] top-level scope
    @ stdin:3
in expression starting at C:\Users\johns\.julia\packages\GMT\bf7CV\src\GMT.jl:1
in expression starting at stdin:3
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Failed to precompile GMT [5752ebe1-31b9-557e-87aa-f909b540aa54] to "C:\\Users\\johns\\.julia\\compiled\\v1.10\\GMT\\jl_36AD.tmp".

Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base .\loading.jl:2468
  [3] compilecache
    @ .\loading.jl:2340 [inlined]
  [4] (::Base.var"#968#969"{Base.PkgId})()
    @ Base .\loading.jl:1974
  [5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile C:\Users\johns\AppData\Local\Programs\julia-1.10.4\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
  [6] #mkpidlock#6
    @ C:\Users\johns\AppData\Local\Programs\julia-1.10.4\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
  [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile C:\Users\johns\AppData\Local\Programs\julia-1.10.4\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
  [8] #invokelatest#2
    @ .\essentials.jl:894 [inlined]
  [9] invokelatest
    @ .\essentials.jl:889 [inlined]
 [10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base .\loading.jl:2983
 [11] maybe_cachefile_lock
    @ .\loading.jl:2980 [inlined]
...
    @ VSCodeServer.JSONRPC c:\Users\johns\.vscode\extensions\julialang.language-julia-1.83.2\scripts\packages\JSONRPC\src\typed.jl:67
 [31] serve_notebook(pipename::String, outputchannel_logger::Base.CoreLogging.SimpleLogger; crashreporting_pipename::String)
    @ VSCodeServer c:\Users\johns\.vscode\extensions\julialang.language-julia-1.83.2\scripts\packages\VSCodeServer\src\serve_notebook.jl:139
 [32] top-level scope
    @ c:\Users\johns\.vscode\extensions\julialang.language-julia-1.83.2\scripts\notebook\notebook.jl:35
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...

I tried adding and building in the REPL, as well as uninstalling and reinstalling in the package builder.

When I re-added and built, I got the following:

  Resolving package versions...
    Updating `C:\Users\johns\.julia\environments\v1.10\Project.toml`
  [5752ebe1] + GMT v1.15.0
    Updating `C:\Users\johns\.julia\environments\v1.10\Manifest.toml`
  [5752ebe1] + GMT v1.15.0
  [3da0fdf6] + MPIPreferences v0.1.11
  [8ce61222] + Arrow_jll v10.0.0+1
  [0b7ba130] + Blosc_jll v1.21.5+0
  [a7073274] + GDAL_jll v301.901.100+0
  [d604d12d] + GEOS_jll v3.12.2+0
  [b68b8c3f] + GMT_jll v6.5.2+0
  [61579ee1] + Ghostscript_jll v9.55.0+4
  [59f7168a] + Giflib_jll v5.2.1+0
  [0951126a] + GnuTLS_jll v3.8.4+0
  [0234f1f7] + HDF5_jll v1.14.3+3
  [e33a78d0] + Hwloc_jll v2.11.0+0
βŒ… [a51ab1cf] + ICU_jll v69.1.0+0
  [b39eb1a6] + Kerberos_krb5_jll v1.19.3+0
  [08be9ffa] + LibPQ_jll v16.0.0+0
  [d3a379c0] + LittleCMS_jll v2.16.0+0
  [5ced341a] + Lz4_jll v1.9.4+0
  [7cb0a576] + MPICH_jll v4.2.1+1
  [f1f71cc9] + MPItrampoline_jll v5.4.0+0
  [9237b28f] + MicrosoftMPI_jll v10.1.4+2
  [7243133f] + NetCDF_jll v400.902.211+1
βŒ… [4c82536e] + Nettle_jll v3.7.2+0
βŒ… [656ef2d0] + OpenBLAS32_jll v0.3.24+0
  [643b3616] + OpenJpeg_jll v2.5.2+0
βŒ… [fe0851c0] + OpenMPI_jll v4.1.6+0
  [c2071276] + P11Kit_jll v0.24.1+0
  [2f80f16e] + PCRE_jll v8.45.0+0
  [58948b4f] + PROJ_jll v901.300.0+1
βŒ… [784f63db] + Qhull_jll v8.0.1003+0
  [76ed43ae] + SQLite_jll v3.45.3+0
βŒ… [e0b8ae26] + Thrift_jll v0.16.0+0
βŒ… [28df3c45] + boost_jll v1.76.0+1
  [477f73a3] + libaec_jll v1.1.2+0
  [06c338fa] + libgeotiff_jll v100.701.300+0
  [c5f90fcd] + libwebp_jll v1.4.0+0
  [337d8026] + libzip_jll v1.10.1+0
βŒ… [fe1e1685] + snappy_jll v1.1.10+0
  [781609d7] + GMP_jll v6.2.1+6
        Info Packages marked with βŒ… have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m`

Then, when I tried to precompile, I got

Precompiling project...
  βœ— GMT_jll
  βœ— GMT
  βœ— GMT β†’ GMTDataFramesExt
  0 dependencies successfully precompiled in 9 seconds. 588 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

GMT [5752ebe1-31b9-557e-87aa-f909b540aa54]

Failed to precompile GMT [5752ebe1-31b9-557e-87aa-f909b540aa54] to "C:\\Users\\johns\\.julia\\compiled\\v1.10\\GMT\\jl_8FC8.tmp".
ERROR: LoadError: InitError: could not load library "C:\Users\johns\.julia\artifacts\9db36ce542776801f81c6432d08864ea4abfc279\bin\libgdal-35.dll"
The specified module could not be found.
Stacktrace:
  [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
    @ Base.Libc.Libdl .\libdl.jl:117
  [2] dlopen(s::String, flags::UInt32)
    @ Base.Libc.Libdl .\libdl.jl:116
  [3] macro expansion
    @ C:\Users\johns\.julia\packages\JLLWrappers\pG9bm\src\products\library_generators.jl:63 [inlined]
  [4] __init__()
    @ GDAL_jll C:\Users\johns\.julia\packages\GDAL_jll\EQFRa\src\wrappers\x86_64-w64-mingw32-cxx11.jl:78
  [5] run_module_init(mod::Module, i::Int64)
    @ Base .\loading.jl:1134
  [6] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1122
  [7] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
    @ Base .\loading.jl:1067
  [8] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base .\loading.jl:1581
  [9] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1938
 [10] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1812
 [11] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [12] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [13] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1803
 [14] macro expansion
    @ .\loading.jl:1790 [inlined]
 [15] macro expansion
    @ .\lock.jl:267 [inlined]
 [16] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1753
 [17] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [18] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [19] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1746
 [20] include(mod::Module, _path::String)
    @ Base .\Base.jl:495
 [21] top-level scope
    @ C:\Users\johns\.julia\packages\JLLWrappers\pG9bm\src\toplevel_generators.jl:192
 [22] include
    @ .\Base.jl:495 [inlined]
 [23] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base .\loading.jl:2222
 [24] top-level scope
    @ stdin:3
during initialization of module GDAL_jll
in expression starting at C:\Users\johns\.julia\packages\GMT_jll\hdOO4\src\wrappers\x86_64-w64-mingw32.jl:7
in expression starting at C:\Users\johns\.julia\packages\GMT_jll\hdOO4\src\GMT_jll.jl:2
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile GMT_jll [b68b8c3f-ed99-5bef-9675-4739d9426b26] to "C:\\Users\\johns\\.julia\\compiled\\v1.10\\GMT_jll\\jl_918D.tmp".
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base .\loading.jl:2468
  [3] compilecache
    @ .\loading.jl:2340 [inlined]
  [4] (::Base.var"#968#969"{Base.PkgId})()
    @ Base .\loading.jl:1974
  [5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile C:\Users\johns\AppData\Local\Programs\julia-1.10.4\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
  [6] #mkpidlock#6
    @ C:\Users\johns\AppData\Local\Programs\julia-1.10.4\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
  [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile C:\Users\johns\AppData\Local\Programs\julia-1.10.4\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
  [8] #invokelatest#2
    @ .\essentials.jl:894 [inlined]
  [9] invokelatest
    @ .\essentials.jl:889 [inlined]
 [10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base .\loading.jl:2983
 [11] maybe_cachefile_lock
    @ .\loading.jl:2980 [inlined]
 [12] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1970
 [13] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1812
 [14] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [15] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [16] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1803
 [17] macro expansion
    @ .\loading.jl:1790 [inlined]
 [18] macro expansion
    @ .\lock.jl:267 [inlined]
 [19] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1753
 [20] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [21] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [22] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1746
 [23] top-level scope
    @ C:\Users\johns\.julia\packages\GMT\bf7CV\src\GMT.jl:47
 [24] include
    @ .\Base.jl:495 [inlined]
 [25] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:2222
 [26] top-level scope
    @ stdin:3
in expression starting at C:\Users\johns\.julia\packages\GMT\bf7CV\src\GMT.jl:1
in expression starting at stdin:

I’m open to any suggestions. Thanks in advance.

I just tried to install it in a clean project on Linux, and it worked fine.

Did you try to install it in a clean project?

Like:

mkdir myproject
cd myproject
julia --project="."

and then in Julia

using Pkg
Pkg.add("GMT")

?

(If it matters, my computer runs windows 11.)

I just tried that. It still failed to precompile. Here is the message I got:

   Resolving package versions...
   Installed Libtiff_jll ─ v4.6.0+0
  Downloaded artifact: Libtiff
    Updating `C:\Users\johns\myproject\Project.toml`
  [5752ebe1] + GMT v1.15.0
    Updating `C:\Users\johns\myproject\Manifest.toml`
  [a8cc5b0e] + Crayons v4.1.1
  [9a962f9c] + DataAPI v1.16.0
  [e2d170a0] + DataValueInterfaces v1.0.0
  [5752ebe1] + GMT v1.15.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [692b3bcd] + JLLWrappers v1.5.0
  [b964fa9f] + LaTeXStrings v1.3.1
  [3da0fdf6] + MPIPreferences v0.1.11
  [bac558e1] + OrderedCollections v1.6.3
  [aea7be01] + PrecompileTools v1.2.1
  [21216c6a] + Preferences v1.4.3
  [08abe8d2] + PrettyTables v2.3.2
  [189a3867] + Reexport v1.2.2
  [892a3eda] + StringManipulation v0.3.4
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.11.1
  [8ce61222] + Arrow_jll v10.0.0+1
  [0b7ba130] + Blosc_jll v1.21.5+0
  [6e34b625] + Bzip2_jll v1.0.8+1
  [2e619515] + Expat_jll v2.6.2+0
  [f5851436] + FFTW_jll v3.3.10+0
  [a7073274] + GDAL_jll v301.901.100+0
  [d604d12d] + GEOS_jll v3.12.2+0
  [b68b8c3f] + GMT_jll v6.5.2+0
  [78b55507] + Gettext_jll v0.21.0+0
  [61579ee1] + Ghostscript_jll v9.55.0+4
  [59f7168a] + Giflib_jll v5.2.1+0
  [7746bdde] + Glib_jll v2.80.2+0
  [0951126a] + GnuTLS_jll v3.8.4+0
  [0234f1f7] + HDF5_jll v1.14.3+3
  [e33a78d0] + Hwloc_jll v2.11.0+0
βŒ… [a51ab1cf] + ICU_jll v69.1.0+0
  [aacddb02] + JpegTurbo_jll v3.0.3+0
  [b39eb1a6] + Kerberos_krb5_jll v1.19.3+0
  [17f450c3] + LAPACK32_jll v3.12.0+0
βŒ… [88015f11] + LERC_jll v3.0.0+1
  [1d63c593] + LLVMOpenMP_jll v15.0.7+0
  [dd4b983a] + LZO_jll v2.10.2+0
  [08be9ffa] + LibPQ_jll v16.0.0+0
βŒ… [e9f186c6] + Libffi_jll v3.2.2+1
  [d4300ac3] + Libgcrypt_jll v1.8.11+0
  [7e76a0d4] + Libglvnd_jll v1.6.0+0
  [7add5ba3] + Libgpg_error_jll v1.49.0+0
  [94ce4f54] + Libiconv_jll v1.17.0+0
  [4b2f31a3] + Libmount_jll v2.40.1+0
  [89763e89] + Libtiff_jll v4.6.0+0
  [d3a379c0] + LittleCMS_jll v2.16.0+0
  [5ced341a] + Lz4_jll v1.9.4+0
  [7cb0a576] + MPICH_jll v4.2.1+1
  [f1f71cc9] + MPItrampoline_jll v5.4.0+0
  [9237b28f] + MicrosoftMPI_jll v10.1.4+2
  [7243133f] + NetCDF_jll v400.902.211+1
βŒ… [4c82536e] + Nettle_jll v3.7.2+0
βŒ… [656ef2d0] + OpenBLAS32_jll v0.3.24+0
  [643b3616] + OpenJpeg_jll v2.5.2+0
βŒ… [fe0851c0] + OpenMPI_jll v4.1.6+0
  [458c3c95] + OpenSSL_jll v3.0.14+0
  [c2071276] + P11Kit_jll v0.24.1+0
  [2f80f16e] + PCRE_jll v8.45.0+0
  [58948b4f] + PROJ_jll v901.300.0+1
βŒ… [784f63db] + Qhull_jll v8.0.1003+0
  [76ed43ae] + SQLite_jll v3.45.3+0
βŒ… [e0b8ae26] + Thrift_jll v0.16.0+0
  [02c8fc9c] + XML2_jll v2.13.1+0
  [aed1982a] + XSLT_jll v1.1.41+0
  [ffd25f8a] + XZ_jll v5.4.6+0
  [4f6342f7] + Xorg_libX11_jll v1.8.6+0
  [0c0b7dd1] + Xorg_libXau_jll v1.0.11+0
  [a3789734] + Xorg_libXdmcp_jll v1.1.4+0
  [1082639a] + Xorg_libXext_jll v1.3.6+0
  [14d82f49] + Xorg_libpthread_stubs_jll v0.1.1+0
  [c7cfdc94] + Xorg_libxcb_jll v1.17.0+0
  [c5fb5394] + Xorg_xtrans_jll v1.5.0+0
  [3161d3a3] + Zstd_jll v1.5.6+0
βŒ… [28df3c45] + boost_jll v1.76.0+1
  [477f73a3] + libaec_jll v1.1.2+0
  [06c338fa] + libgeotiff_jll v100.701.300+0
  [b53b4c65] + libpng_jll v1.6.43+1
  [c5f90fcd] + libwebp_jll v1.4.0+0
  [337d8026] + libzip_jll v1.10.1+0
βŒ… [fe1e1685] + snappy_jll v1.1.10+0
  [0dad84c5] + ArgTools v1.1.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching
  [b77e0a4c] + InteractiveUtils
  [4af54fe1] + LazyArtifacts
  [b27032c2] + LibCURL v0.6.4
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.10.0
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays v1.10.0
  [10745b16] + Statistics v1.10.0
  [fa267f1f] + TOML v1.0.3
  [a4e569a6] + Tar v1.10.0
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll v1.1.1+0
  [781609d7] + GMP_jll v6.2.1+6
  [deac9b47] + LibCURL_jll v8.4.0+0
  [e37daf67] + LibGit2_jll v1.6.4+0
  [29816b5a] + LibSSH2_jll v1.11.0+1
  [c8ffd9c3] + MbedTLS_jll v2.28.2+1
  [14a3606d] + MozillaCACerts_jll v2023.1.10
  [4536629a] + OpenBLAS_jll v0.3.23+4
  [efcefdf7] + PCRE2_jll v10.42.0+1
  [bea87d4a] + SuiteSparse_jll v7.2.1+1
  [83775a58] + Zlib_jll v1.2.13+1
  [8e850b90] + libblastrampoline_jll v5.8.0+1
  [8e850ede] + nghttp2_jll v1.52.0+1
  [3f19e933] + p7zip_jll v17.4.0+2
        Info Packages marked with βŒ… have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m`
Precompiling project...
  βœ— GMT_jll
  βœ— GMT
  7 dependencies successfully precompiled in 9 seconds. 80 already precompiled.
  2 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

So I followed the directions to get a report of the errors and got:

Precompiling project...
  βœ— GMT_jll
  βœ— GMT
  0 dependencies successfully precompiled in 4 seconds. 87 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

GMT [5752ebe1-31b9-557e-87aa-f909b540aa54]

Failed to precompile GMT [5752ebe1-31b9-557e-87aa-f909b540aa54] to "C:\\Users\\johns\\.julia\\compiled\\v1.10\\GMT\\jl_52F8.tmp".
ERROR: LoadError: InitError: could not load library "C:\Users\johns\.julia\artifacts\9db36ce542776801f81c6432d08864ea4abfc279\bin\libgdal-35.dll"
The specified module could not be found.
Stacktrace:
  [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
    @ Base.Libc.Libdl .\libdl.jl:117
  [2] dlopen(s::String, flags::UInt32)
    @ Base.Libc.Libdl .\libdl.jl:116
  [3] macro expansion
    @ C:\Users\johns\.julia\packages\JLLWrappers\pG9bm\src\products\library_generators.jl:63 [inlined]
  [4] __init__()
    @ GDAL_jll C:\Users\johns\.julia\packages\GDAL_jll\EQFRa\src\wrappers\x86_64-w64-mingw32-cxx11.jl:78
  [5] run_module_init(mod::Module, i::Int64)
    @ Base .\loading.jl:1134
  [6] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1122
  [7] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
    @ Base .\loading.jl:1067
  [8] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base .\loading.jl:1581
  [9] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1938
 [10] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1812
 [11] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [12] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [13] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1803
 [14] macro expansion
    @ .\loading.jl:1790 [inlined]
 [15] macro expansion
    @ .\lock.jl:267 [inlined]
 [16] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1753
 [17] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [18] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [19] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1746
 [20] include(mod::Module, _path::String)
    @ Base .\Base.jl:495
 [21] top-level scope
    @ C:\Users\johns\.julia\packages\JLLWrappers\pG9bm\src\toplevel_generators.jl:192
 [22] include
    @ .\Base.jl:495 [inlined]
 [23] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base .\loading.jl:2222
 [24] top-level scope
    @ stdin:3
during initialization of module GDAL_jll
in expression starting at C:\Users\johns\.julia\packages\GMT_jll\hdOO4\src\wrappers\x86_64-w64-mingw32.jl:7
in expression starting at C:\Users\johns\.julia\packages\GMT_jll\hdOO4\src\GMT_jll.jl:2
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile GMT_jll [b68b8c3f-ed99-5bef-9675-4739d9426b26] to "C:\\Users\\johns\\.julia\\compiled\\v1.10\\GMT_jll\\jl_549E.tmp".
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base .\loading.jl:2468
  [3] compilecache
    @ .\loading.jl:2340 [inlined]
  [4] (::Base.var"#968#969"{Base.PkgId})()
    @ Base .\loading.jl:1974
  [5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile C:\Users\johns\AppData\Local\Programs\julia-1.10.4\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
  [6] #mkpidlock#6
    @ C:\Users\johns\AppData\Local\Programs\julia-1.10.4\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
  [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile C:\Users\johns\AppData\Local\Programs\julia-1.10.4\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
  [8] #invokelatest#2
    @ .\essentials.jl:894 [inlined]
  [9] invokelatest
    @ .\essentials.jl:889 [inlined]
 [10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base .\loading.jl:2983
 [11] maybe_cachefile_lock
    @ .\loading.jl:2980 [inlined]
 [12] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1970
 [13] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1812
 [14] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [15] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [16] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1803
 [17] macro expansion
    @ .\loading.jl:1790 [inlined]
 [18] macro expansion
    @ .\lock.jl:267 [inlined]
 [19] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1753
 [20] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [21] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [22] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1746
 [23] top-level scope
    @ C:\Users\johns\.julia\packages\GMT\bf7CV\src\GMT.jl:47
 [24] include
    @ .\Base.jl:495 [inlined]
 [25] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:2222
 [26] top-level scope
    @ stdin:3
in expression starting at C:\Users\johns\.julia\packages\GMT\bf7CV\src\GMT.jl:1
in expression starting at stdin:

It’s not GMT, it is GDAL on Windows (and on Windows only). All packages that have GDAL as a dependency are suffering with this issue

2 Likes

Is there a way to downgrade GDAL to get something that works on Windows? If yes, how?

1 Like

In a previous breaking of this kind Martijn in this comment mentioned using
add GDAL_jll@301.900
but I don’t know if it fixes it (I work and develop on Windows with my own GDAL builds).

2 Likes

Thanks @joa-quim and @visr, this brilliant fix worked for me: GMT.jl is running again on Windows.

2 Likes

Good to know. Then it should fix also all other dependent packages.

Thank you. This worked for me as well.