Skip to content

Glib_jll fails to load on Windows on v1.13 #61004

@nhz2

Description

@nhz2

Initially reported in https://discourse.julialang.org/t/glib-jll-usage-failure-on-v1-13-0-beta2-on-windows/135565

It seems like Glib_jll can no longer find some of the standard library DLLs in 1.13. Prepending ~/.julia/juliaup/julia-1.13.0-beta2+0.x64.w64.mingw32/bin to the path seems to fix the issue.

Here is a MWE:

(@v1.13) pkg> activate --temp
  Activating new project at `C:\Users\nzimm\AppData\Local\Temp\jl_ToZVgH`

(jl_ToZVgH) pkg> add Glib_jll
   Resolving package versions...
    Updating `C:\Users\nzimm\AppData\Local\Temp\jl_ToZVgH\Project.toml`
  [7746bdde] + Glib_jll v2.86.3+0
    Updating `C:\Users\nzimm\AppData\Local\Temp\jl_ToZVgH\Manifest.toml`
  [692b3bcd] + JLLWrappers v1.7.1
  [21216c6a] + Preferences v1.5.1
  [b0724c58] + GettextRuntime_jll v0.22.4+0
  [7746bdde] + Glib_jll v2.86.3+0
⌅ [e9f186c6] + Libffi_jll v3.4.7+0
  [94ce4f54] + Libiconv_jll v1.18.0+0
  [4b2f31a3] + Libmount_jll v2.41.3+0
  [56f22d72] + Artifacts v1.11.0
  [ade2ca70] + Dates v1.11.0
  [8f399da3] + Libdl v1.11.0
  [de0858da] + Printf v1.11.0
  [fa267f1f] + TOML v1.0.3
  [4ec0a83e] + Unicode v1.11.0
  [e66e0078] + CompilerSupportLibraries_jll v1.3.0+1
  [efcefdf7] + PCRE2_jll v10.46.0+0
  [83775a58] + Zlib_jll v1.3.1+2
        Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m`

julia> using Glib_jll
ERROR: InitError: could not load library "C:\Users\nzimm\.julia\artifacts\a155d84614ae0a3fe75f0114904ba7d7ec8cf9a5\bin\libgio-2.0-0.dll"
The specified module could not be found.
Stacktrace:
  [1] #dlopen#3
    @ .\libdl.jl:120 [inlined]
  [2] dlopen(s::String, flags::UInt32)
    @ Base.Libc.Libdl .\libdl.jl:119
  [3] macro expansion
    @ C:\Users\nzimm\.julia\packages\JLLWrappers\m2Pjh\src\products\library_generators.jl:63 [inlined]
  [4] __init__()
    @ Glib_jll C:\Users\nzimm\.julia\packages\Glib_jll\6MvrG\src\wrappers\x86_64-w64-mingw32.jl:18
  [5] run_module_init(mod::Module, i::Int64)
    @ Base .\loading.jl:1452
  [6] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1440
  [7] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}; register::Bool)
    @ Base .\loading.jl:1328
  [8] _include_from_serialized
    @ .\loading.jl:1285 [inlined]
  [9] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{…}, DEPOT_PATH::Vector{…})
    @ Base .\loading.jl:2160
 [10] _require_search_from_serialized
    @ .\loading.jl:2054 [inlined]
 [11] __require_prelocked(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2702
 [12] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2570
 [13] macro expansion
    @ .\loading.jl:2498 [inlined]
 [14] macro expansion
    @ .\lock.jl:376 [inlined]
 [15] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2462
 [16] require
    @ .\loading.jl:2438 [inlined]
 [17] eval_import_path
    @ .\module.jl:36 [inlined]
 [18] eval_import_path_all(at::Module, path::Expr, keyword::String)
    @ Base .\module.jl:60
 [19] _eval_using(to::Module, path::Expr)
    @ Base .\module.jl:137
 [20] top-level scope
    @ REPL[2]:1
during initialization of module Glib_jll
Some type information was truncated. Use `show(err)` to see complete types.

julia> versioninfo()
Julia Version 1.13.0-beta2
Commit f36fbbfd95 (2026-02-04 11:07 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 16 × 12th Gen Intel(R) Core(TM) i5-1240P
  WORD_SIZE: 64
  LLVM: libLLVM-20.1.8 (ORCJIT, alderlake)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 16 virtual cores)
Environment:
  JULIA_PKG_USE_CLI_GIT = true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions