# ERROR: LoadError: could not load symbol "jl\_tag\_newly\_inferred\_enable"

**URL:** <https://discourse.julialang.org/t/error-loaderror-could-not-load-symbol-jl-tag-newly-inferred-enable/127356>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 25, 2025, 4:15pm UTC](https://discourse.julialang.org/t/error-loaderror-could-not-load-symbol-jl-tag-newly-inferred-enable/127356 "2025-03-25T16:15:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 25, 2025, 4:15pm UTC](https://discourse.julialang.org/t/error-loaderror-could-not-load-symbol-jl-tag-newly-inferred-enable/127356/1 "2025-03-25T16:15:38Z")

</div>

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
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.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 25, 2025, 5:01pm UTC](https://discourse.julialang.org/t/error-loaderror-could-not-load-symbol-jl-tag-newly-inferred-enable/127356/2 "2025-03-25T17:01:14Z")

</div>

How to reproduce:

1. check out the Julia repository at eg `fea26ddecb8a6c404f0c501228bf17c9b384d686` and compile, start `julia`,
2. then

```julia
pkg> activate --temp
pkg> add StaticArrays@1.9.13

```

gives the above error message.

---

<div class="post-metadata">

**Author:** ![miniskar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/miniskar/32/210144_2.png) [@miniskar](https://discourse.julialang.org/u/miniskar)\
**Post date:** [March 25, 2025, 5:06pm UTC](https://discourse.julialang.org/t/error-loaderror-could-not-load-symbol-jl-tag-newly-inferred-enable/127356/3 "2025-03-25T17:06:30Z")

</div>

I am also getting this error for all package installs.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 26, 2025, 5:10pm UTC](https://discourse.julialang.org/t/error-loaderror-could-not-load-symbol-jl-tag-newly-inferred-enable/127356/4 "2025-03-26T17:10:15Z")

</div>

I could not find an open issue for this, is this known?

---

<div class="post-metadata">

**Author:** ![mlechu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mlechu/32/215203_2.png) [@mlechu](https://discourse.julialang.org/u/mlechu)\
**Post date:** [March 26, 2025, 7:26pm UTC](https://discourse.julialang.org/t/error-loaderror-could-not-load-symbol-jl-tag-newly-inferred-enable/127356/5 "2025-03-26T19:26:53Z")

</div>

I’m also hitting this, but my bisect gives me [a version bump commit](https://github.com/JuliaLang/julia/commit/7053e4c26422ca821551a2b76ad08c16d81f999e) as the first where StaticArrays fails to precompile. The missing symbol in question was added (and backported to 1.12) [about a week ago](https://github.com/JuliaLang/julia/pull/57828)

---

<div class="post-metadata">

**Author:** ![mlechu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mlechu/32/215203_2.png) [@mlechu](https://discourse.julialang.org/u/mlechu)\
**Post date:** [March 26, 2025, 8:12pm UTC](https://discourse.julialang.org/t/error-loaderror-could-not-load-symbol-jl-tag-newly-inferred-enable/127356/6 "2025-03-26T20:12:26Z")

</div>

OK, I think this is due to StaticArrays depending on PrecompileTools version 1.x.x, where version 1.3.0 declares compatibility with julia 1.12-nightly and looks for the new julia symbol. Not every commit with version 1.12-nightly contains the symbol, so PrecompileTools fails using julia between the two commits in my previous reply.

---

<div class="post-metadata">

**Author:** ![Zentrik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zentrik/32/35409_2.png) [@Zentrik](https://discourse.julialang.org/u/Zentrik)\
**Post date:** [March 26, 2025, 9:37pm UTC](https://discourse.julialang.org/t/error-loaderror-could-not-load-symbol-jl-tag-newly-inferred-enable/127356/7 "2025-03-26T21:37:01Z")

</div>

I added the following to my bisect script to resolve this

```julia
Pkg.add("PrecompileTools", io=devnull)
Pkg.add("Preferences", io=devnull)

using PrecompileTools, Preferences
set_preferences!(PrecompileTools, "precompile_workloads" => false; force=true)

```

The error is due to PrecompileTools not being supported until [Fix package precompilation (PrecompileTools) (#57828) · JuliaLang/julia@c89b1ff · GitHub](https://github.com/JuliaLang/julia/commit/c89b1ff7a1206e60e44a2e949041c33c4e853b16) on 1.12.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 27, 2025, 10:29am UTC](https://discourse.julialang.org/t/error-loaderror-could-not-load-symbol-jl-tag-newly-inferred-enable/127356/8 "2025-03-27T10:29:43Z")

</div>

Thank you very much! With this I was able to complete the bisection.
