PrecompileTools.jl icon indicating copy to clipboard operation
PrecompileTools.jl copied to clipboard

More graceful behavior when bisecting julia

Open KristofferC opened this issue 2 months ago • 1 comments

When bisecting julia it is quite easy to hit:

Failed to precompile BandedMatrices [aae01518-5342-5314-be14-df237901396f] to "/home/kristofferc/.julia/compiled/v1.13/BandedMatrices/jl_T9KPcx".
ERROR: LoadError: could not load symbol "jl_tag_newly_inferred_enable":
/tmp/jl_Rfu1Iv/bin/julia: undefined symbol: jl_tag_newly_inferred_enable
Stacktrace:
  [1] tag_newly_inferred_enable()
    @ PrecompileTools ~/.julia/packages/PrecompileTools/gn08A/src/workloads.jl:22
  [2] macro expansion
    @ ~/.julia/packages/PrecompileTools/gn08A/src/workloads.jl:77 [inlined]
  [3] macro expansion
    @ ~/.julia/packages/StaticArrays/DsPgf/src/precompile.jl:2 [inlined]
  [4] macro expansion
    @ ~/.julia/packages/PrecompileTools/gn08A/src/workloads.jl:121 [inlined]
  [5] top-level scope
    @ ~/.julia/packages/StaticArrays/DsPgf/src/precompile.jl:118
  [6] include(mapexpr::Function, mod::Module, _path::String)

Ideally precompile tools could fail more gracefully in situations like this. Right now, I use a fork with the macros just returning nothing.

KristofferC avatar Oct 16 '25 09:10 KristofferC

Also

ERROR: LoadError: UndefVarError: `StaticData` not defined in `Base`

KristofferC avatar Oct 20 '25 09:10 KristofferC