Skip to content

Using an env with an older version OpenSSL_jll breaks Pkg #58234

@nhz2

Description

@nhz2

When I start Julia 1.12 or nightly in the following env created in Julia 1.11.4 with [email protected] and try to use Pkg to update things I get the following error:

broken-env.tar.gz

JULIA_DEPOT_PATH=/tmp/newdepo: julia +nightly --project --startup-file=no
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.13.0-DEV.448 (2025-04-25)
 _/ |\__'_|_|_|\__'_|  |  Commit d9925544e0c (0 days old master)
|__/                   |

julia> using Pkg
[ Info: Precompiling Pkg [44cfe95a-1eb2-52ea-b672-e2afdf69b78f] (cache misses: dep missing source (2), mismatched flags (2))
ERROR: LoadError: ArgumentError: Package OpenSSL_jll [458c3c95-2e84-50aa-8efc-19380b2a3a95] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.
Stacktrace

Stacktrace:
  [1] __require_prelocked(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2587
  [2] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2465
  [3] macro expansion
    @ ./loading.jl:2393 [inlined]
  [4] macro expansion
    @ ./lock.jl:376 [inlined]
  [5] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2358
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2334
  [7] top-level scope
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/LibSSH2_jll/src/LibSSH2_jll.jl:9
  [8] include(mod::Module, _path::String)
    @ Base ./Base.jl:303
  [9] 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:2978
 [10] top-level scope
    @ stdin:5
 [11] eval(m::Module, e::Any)
    @ Core ./boot.jl:489
 [12] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2824
 [13] include_string
    @ ./loading.jl:2834 [inlined]
 [14] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:329
 [15] _start()
    @ Base ./client.jl:563
in expression starting at /home/nathan/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/LibSSH2_jll/src/LibSSH2_jll.jl:5
in expression starting at stdin:5
ERROR: LoadError: Failed to precompile LibSSH2_jll [29816b5a-b9ab-546f-933c-edad1886dfa8] to "/tmp/newdepo/compiled/v1.13/LibSSH2_jll/jl_JwXSH3" (ProcessExited(1)).
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:44
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, loadable_exts::Nothing)
    @ Base ./loading.jl:3265
  [3] (::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId})()
    @ Base ./loading.jl:2651
  [4] mkpidlock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/FileWatching/src/pidfile.jl:93
  [5] #mkpidlock#7
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/FileWatching/src/pidfile.jl:88 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/FileWatching/src/pidfile.jl:114
  [7] apply_gr_kw(::NamedTuple, ::GlobalRef, ::Any, ::Vararg{Any})
    @ Base ./reflection.jl:1279
  [8] #invokelatest_gr#234
    @ ./reflection.jl:1287 [inlined]
  [9] invokelatest_gr
    @ ./reflection.jl:1281 [inlined]
 [10] maybe_cachefile_lock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3836
 [11] maybe_cachefile_lock
    @ ./loading.jl:3833 [inlined]
 [12] __require_prelocked(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2637
 [13] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2465
 [14] macro expansion
    @ ./loading.jl:2393 [inlined]
 [15] macro expansion
    @ ./lock.jl:376 [inlined]
 [16] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2358
 [17] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2334
 [18] top-level scope
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/LibGit2_jll/src/LibGit2_jll.jl:6
 [19] include(mod::Module, _path::String)
    @ Base ./Base.jl:303
 [20] 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:2978
 [21] top-level scope
    @ stdin:5
 [22] eval(m::Module, e::Any)
    @ Core ./boot.jl:489
 [23] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2824
 [24] include_string
    @ ./loading.jl:2834 [inlined]
 [25] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:329
 [26] _start()
    @ Base ./client.jl:563
in expression starting at /home/nathan/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/LibGit2_jll/src/LibGit2_jll.jl:5
in expression starting at stdin:5
ERROR: LoadError: Failed to precompile LibGit2_jll [e37daf67-58a4-590a-8e99-b0245dd2ffc5] to "/tmp/newdepo/compiled/v1.13/LibGit2_jll/jl_2BbzXN" (ProcessExited(1)).
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:44
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, loadable_exts::Nothing)
    @ Base ./loading.jl:3265
  [3] (::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId})()
    @ Base ./loading.jl:2651
  [4] mkpidlock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/FileWatching/src/pidfile.jl:93
  [5] #mkpidlock#7
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/FileWatching/src/pidfile.jl:88 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/FileWatching/src/pidfile.jl:114
  [7] apply_gr_kw(::NamedTuple, ::GlobalRef, ::Any, ::Vararg{Any})
    @ Base ./reflection.jl:1279
  [8] #invokelatest_gr#234
    @ ./reflection.jl:1287 [inlined]
  [9] invokelatest_gr
    @ ./reflection.jl:1281 [inlined]
 [10] maybe_cachefile_lock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3836
 [11] maybe_cachefile_lock
    @ ./loading.jl:3833 [inlined]
 [12] __require_prelocked(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2637
 [13] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2465
 [14] macro expansion
    @ ./loading.jl:2393 [inlined]
 [15] macro expansion
    @ ./lock.jl:376 [inlined]
 [16] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2358
 [17] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2334
 [18] top-level scope
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/LibGit2/src/LibGit2.jl:16
 [19] include(mod::Module, _path::String)
    @ Base ./Base.jl:303
 [20] 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:2978
 [21] top-level scope
    @ stdin:5
 [22] eval(m::Module, e::Any)
    @ Core ./boot.jl:489
 [23] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2824
 [24] include_string
    @ ./loading.jl:2834 [inlined]
 [25] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:329
 [26] _start()
    @ Base ./client.jl:563
in expression starting at /home/nathan/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/LibGit2/src/LibGit2.jl:3
in expression starting at stdin:5
ERROR: LoadError: Failed to precompile LibGit2 [76f85450-5226-5b5a-8eaa-529ad045b433] to "/tmp/newdepo/compiled/v1.13/LibGit2/jl_bx9NRU" (ProcessExited(1)).
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:44
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, loadable_exts::Nothing)
    @ Base ./loading.jl:3265
  [3] (::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId})()
    @ Base ./loading.jl:2651
  [4] mkpidlock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/FileWatching/src/pidfile.jl:93
  [5] #mkpidlock#7
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/FileWatching/src/pidfile.jl:88 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/FileWatching/src/pidfile.jl:114
  [7] apply_gr_kw(::NamedTuple, ::GlobalRef, ::Any, ::Vararg{Any})
    @ Base ./reflection.jl:1279
  [8] #invokelatest_gr#234
    @ ./reflection.jl:1287 [inlined]
  [9] invokelatest_gr
    @ ./reflection.jl:1281 [inlined]
 [10] maybe_cachefile_lock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3836
 [11] maybe_cachefile_lock
    @ ./loading.jl:3833 [inlined]
 [12] __require_prelocked(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2637
 [13] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2465
 [14] macro expansion
    @ ./loading.jl:2393 [inlined]
 [15] macro expansion
    @ ./lock.jl:376 [inlined]
 [16] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2358
 [17] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2334
 [18] top-level scope
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/Pkg/src/GitTools.jl:10
 [19] include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./Base.jl:304
 [20] top-level scope
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/Pkg/src/Pkg.jl:65
 [21] include(mod::Module, _path::String)
    @ Base ./Base.jl:303
 [22] 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:2978
 [23] top-level scope
    @ stdin:5
 [24] eval(m::Module, e::Any)
    @ Core ./boot.jl:489
 [25] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2824
 [26] include_string
    @ ./loading.jl:2834 [inlined]
 [27] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:329
 [28] _start()
    @ Base ./client.jl:563
in expression starting at /home/nathan/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/Pkg/src/GitTools.jl:3
in expression starting at /home/nathan/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/Pkg/src/Pkg.jl:3
in expression starting at stdin:5
ERROR: Failed to precompile Pkg [44cfe95a-1eb2-52ea-b672-e2afdf69b78f] to "/tmp/newdepo/compiled/v1.13/Pkg/jl_izEPsk" (ProcessExited(1)).
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:44
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{…}, loadable_exts::Nothing)
    @ Base ./loading.jl:3265
  [3] (::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId})()
    @ Base ./loading.jl:2651
  [4] mkpidlock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{…}, at::String, pid::Int32; kwopts::@Kwargs{…})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/FileWatching/src/pidfile.jl:93
  [5] #mkpidlock#7
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/FileWatching/src/pidfile.jl:88 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/FileWatching/src/pidfile.jl:114
  [7] apply_gr_kw(::NamedTuple, ::GlobalRef, ::Any, ::Vararg{Any})
    @ Base ./reflection.jl:1279
  [8] #invokelatest_gr#234
    @ ./reflection.jl:1287 [inlined]
  [9] invokelatest_gr
    @ ./reflection.jl:1281 [inlined]
 [10] maybe_cachefile_lock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{…}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3836
 [11] maybe_cachefile_lock
    @ ./loading.jl:3833 [inlined]
 [12] __require_prelocked(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2637
 [13] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2465
 [14] macro expansion
    @ ./loading.jl:2393 [inlined]
 [15] macro expansion
    @ ./lock.jl:376 [inlined]
 [16] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2358
 [17] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2334
 [18] top-level scope
    @ REPL[1]:1
Some type information was truncated. Use `show(err)` to see complete types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions