tshort / StaticCompiler.jl

Compiles Julia code to a standalone library (experimental)
Other
488 stars 31 forks source link

`Core.Compiler.validate_code_in_debug_mode` does not exist in 1.11 #155

Open KristofferC opened 4 months ago

KristofferC commented 4 months ago
ERROR: LoadError: UndefVarError: `validate_code_in_debug_mode` not defined in `Core.Compiler`
Stacktrace:
  [1] getproperty
    @ ./Base.jl:42 [inlined]
  [2] Core.Compiler.InferenceState(result::Core.Compiler.InferenceResult, cache::Symbol, interp::StaticCompiler.StaticInterpreter)
    @ StaticCompiler ~/.julia/packages/StaticCompiler/Uki9T/src/interpreter.jl:89
  [3] typeinf_frame
    @ ./compiler/typeinfer.jl:1003 [inlined]
  [4] typeinf_code
    @ ./compiler/typeinfer.jl:948 [inlined]
  [5] typeinf_code(interp::StaticCompiler.StaticInterpreter, match::Core.MethodMatch, run_optimizer::Bool)
    @ Core.Compiler ./compiler/typeinfer.jl:9

Also many other errors on 1.11: https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/0520b80_vs_bd47eca/StaticTools.primary.log

brenhinkeller commented 4 months ago

Does 1.11 just break every package?

KristofferC commented 4 months ago

Packages that are coded in such a way that they e.g. access random symbols inside e.g. Core.Compiler tend to break on every minor version, yes.

brenhinkeller commented 4 months ago

Oh I see, it's the casette-type stuff, I've never touched that part of the code here. It does seem like an unusually high rate though.