ERROR: LoadError: could not load symbol "jl_tag_newly_inferred_enable"

How to reproduce:

  1. check out the Julia repository at eg fea26ddecb8a6c404f0c501228bf17c9b384d686 and compile, start julia,
  2. then
    pkg> activate --temp
    pkg> add StaticArrays@1.9.13
    

gives the above error message.