JuliaLang / JuliaLang/PrecompileTools.jl
More graceful behavior when bisecting julia
- Dominant language
- Julia
- Stars
- 249
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the failing precompile stack trace in the issue and inspect the PrecompileTools macros involved in the reported workaround. Reproduce the failure while bisecting Julia, then verify that the affected macro path handles the missing symbol gracefully instead of aborting precompilation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- performance, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100