I am bisecting the Julia repo for a bug, reproduced by a rather complex package that uses StaticArrays.jl. Around dbe19e49d9 (approximate, since I have been trying git bisect skip
to get rid of this error, in vain) in the Julia repository, I am getting error messages like
julia> using StaticArrays
Info Given StaticArrays was explicitly requested, output will be shown live
ERROR: LoadError: could not load symbol "jl_tag_newly_inferred_enable":
/srv/home/tamas-numerical/julia/usr/bin/julia: undefined symbol: jl_tag_newly_inferred_enable
Stacktrace:
[1] tag_newly_inferred_enable
@ ~/.julia/packages/PrecompileTools/zOnGe/src/workloads.jl:16 [inlined]
[2] macro expansion
@ ~/.julia/packages/PrecompileTools/zOnGe/src/workloads.jl:71 [inlined]
[3] macro expansion
@ ~/.julia/packages/StaticArrays/LSPcF/src/precompile.jl:2 [inlined]
[4] macro expansion
@ ~/.julia/packages/PrecompileTools/zOnGe/src/workloads.jl:113 [inlined]
[5] top-level scope
@ ~/.julia/packages/StaticArrays/LSPcF/src/precompile.jl:112
[6] include(mapexpr::Function, mod::Module, _path::String)
@ Base ./Base.jl:304
[7] top-level scope
@ ~/.julia/packages/StaticArrays/LSPcF/src/StaticArrays.jl:145
[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, UI
nt128}}, source::Nothing)
@ Base ./loading.jl:3002
[10] top-level scope
@ stdin:6
[11] eval(m::Module, e::Any)
@ Core ./boot.jl:486
[12] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
@ Base ./loading.jl:2853
[13] include_string
[14] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:327
[15] _start()
@ Base ./client.jl:557
in expression starting at /srv/home/tamas-numerical/.julia/packages/StaticArrays/LSPcF/src/precompile.jl:1
in expression starting at /srv/home/tamas-numerical/.julia/packages/StaticArrays/LSPcF/src/StaticArrays.jl:1
in expression starting at stdin:6
✗ StaticArrays
Precompiling StaticArrays finished.
0 dependencies successfully precompiled in 5 seconds. 7 already precompiled.
ERROR: The following 1 direct dependency failed to precompile:
StaticArrays
Failed to precompile StaticArrays [90137ffa-7385-5640-81b9-e52037218182] to "/srv/home/tamas-numerical/.julia/compiled/v1.12/StaticArrays/jl_aOJ3AW".
ERROR: LoadError: could not load symbol "jl_tag_newly_inferred_enable":
/srv/home/tamas-numerical/julia/usr/bin/julia: undefined symbol: jl_tag_newly_inferred_enable
Stacktrace:
[1] tag_newly_inferred_enable
@ ~/.julia/packages/PrecompileTools/zOnGe/src/workloads.jl:16 [inlined]
[2] macro expansion
@ ~/.julia/packages/PrecompileTools/zOnGe/src/workloads.jl:71 [inlined]
[3] macro expansion
@ ~/.julia/packages/StaticArrays/LSPcF/src/precompile.jl:2 [inlined]
[4] macro expansion
@ ~/.julia/packages/PrecompileTools/zOnGe/src/workloads.jl:113 [inlined]
[5] top-level scope
@ ~/.julia/packages/StaticArrays/LSPcF/src/precompile.jl:112
[6] include(mapexpr::Function, mod::Module, _path::String)
@ Base ./Base.jl:304
[7] top-level scope
@ ~/.julia/packages/StaticArrays/LSPcF/src/StaticArrays.jl:145
[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, UI
nt128}}, source::Nothing)
@ Base ./loading.jl:3002
[10] top-level scope
@ stdin:6
[11] eval(m::Module, e::Any)
@ Core ./boot.jl:486
[12] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
@ Base ./loading.jl:2853
[13] include_string
@ ./loading.jl:2863 [inlined]
[14] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:327
[15] _start()
@ Base ./client.jl:557
in expression starting at /srv/home/tamas-numerical/.julia/packages/StaticArrays/LSPcF/src/precompile.jl:1
in expression starting at /srv/home/tamas-numerical/.julia/packages/StaticArrays/LSPcF/src/StaticArrays.jl:1
in expression starting at stdin:
The version I am using is [90137ffa] StaticArrays v1.9.13
which works before and after (ie at git bisect good
and git bisect bad
). Again, I am bisecting Julia, not this package, but this is the one I cannot load to test a particular commit.