Skip to content

Fails to load on pre with Unitful #403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ChrisRackauckas opened this issue May 18, 2025 · 2 comments
Open

Fails to load on pre with Unitful #403

ChrisRackauckas opened this issue May 18, 2025 · 2 comments

Comments

@ChrisRackauckas
Copy link
Member

Failed to precompile UnitfulExt [0698811c-c6eb-5a4d-a8de-58fae78aed47] to "/home/runner/.julia/compiled/v1.12/UnitfulExt/jl_VjOWuA".
ERROR: LoadError: UndefRefError: access to undefined reference
Stacktrace:
  [1] getproperty
    @ ./Base_compiler.jl:54 [inlined]
  [2] needs_instrumentation(codeinst::Core.CodeInstance, mi::Core.MethodInstance, def::Method, validation_world::UInt64)
    @ Base.StaticData ./staticdata.jl:94
  [3] verify_method(codeinst::Core.CodeInstance, stack::Vector{Core.CodeInstance}, visiting::IdDict{Core.CodeInstance, Int64}, mwis::IdSet{Method}, validation_world::UInt64)
    @ Base.StaticData ./staticdata.jl:134
  [4] verify_method(codeinst::Core.CodeInstance, stack::Vector{Core.CodeInstance}, visiting::IdDict{Core.CodeInstance, Int64}, mwis::IdSet{Method}, validation_world::UInt64) (repeats 2 times)
    @ Base.StaticData ./staticdata.jl:243
  [5] verify_method_graph(codeinst::Core.CodeInstance, stack::Vector{Core.CodeInstance}, visiting::IdDict{Core.CodeInstance, Int64}, mwis::IdSet{Method}, validation_world::UInt64)
    @ Base.StaticData ./staticdata.jl:68
  [6] _insert_backedges(edges::Vector{Any}, stack::Vector{Core.CodeInstance}, visiting::IdDict{Core.CodeInstance, Int64}, mwis::IdSet{Method}, external::Bool)
    @ Base.StaticData ./staticdata.jl:42
  [7] insert_backedges
    @ ./staticdata.jl:34 [inlined]
  [8] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}; register::Bool)
    @ Base ./loading.jl:1285
  [9] _include_from_serialized
    @ ./loading.jl:1246 [inlined]
 [10] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base ./loading.jl:2083
 [11] __require_prelocked(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2[595](https://github.com/SciML/SciMLBase.jl/actions/runs/15095632660/job/42429905541#step:6:598)
 [12] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2461
 [13] macro expansion
    @ ./loading.jl:2389 [inlined]
 [14] macro expansion
    @ ./lock.jl:376 [inlined]
 [15] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2354
 [16] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2330
 [17] top-level scope
    @ ~/.julia/packages/UnicodePlots/ZCAzp/ext/UnitfulExt.jl:3
 [18] include(mod::Module, _path::String)
    @ Base ./Base.jl:303
 [19] 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:2974
 [20] top-level scope
    @ stdin:5
 [21] eval(m::Module, e::Any)
    @ Core ./boot.jl:489
 [22] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2820
 [23] include_string
    @ ./loading.jl:2830 [inlined]
 [24] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:326
 [25] _start()
    @ Base ./client.jl:561
in expression starting at /home/runner/.julia/packages/UnicodePlots/ZCAzp/ext/UnitfulExt.jl:1
in expression starting at stdin:
in expression starting at /home/runner/work/_actions/julia-actions/julia-runtest/v1/test_harness.jl:25

As seen in https://github.com/SciML/SciMLBase.jl/actions/runs/15095632660/job/42429905541

@KristofferC
Copy link

JuliaLang/julia#58227

@mkitti
Copy link

mkitti commented May 22, 2025

Is this fixed by JuliaLang/julia#58488 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants