Skip to content

StaticCompiler for v1.11 #166

@Thomas008

Description

@Thomas008

So far julia v1.11 rc1 and rc2 are out. Do you plan to have run StaticCompiler for julia v.11? This would be very great! StaticCompiler is an amazing tool. Or do you wait until the stable final version v.11 is being published?

In rc1 I there are problems when compiling. E.g. when compiling
function f() 0 end

I get
ERROR: UndefVarError:validate_code_in_debug_modenot defined inCore.CompilerSuggestion: check for spelling errors or missing imports. Stacktrace: [1] getproperty @ .\Base.jl:42 [inlined] [2] @ StaticCompiler C:\Users\T460\.julia\packages\StaticCompiler\daorG\src\interpreter.jl:89 [3] typeinf_frame @ .\compiler\typeinfer.jl:1056 [inlined] [4] typeinf_code @ .\compiler\typeinfer.jl:1001 [inlined] [5] typeinf_code(interp::StaticCompiler.StaticInterpreter, match::Core.MethodMatch, run_optimizer::Bool) @ Core.Compiler .\compiler\typeinfer.jl:995 [6] code_typed_by_type(tt::Type; optimize::Bool, debuginfo::Symbol, world::UInt64, interp::StaticCompiler.StaticInterpreter) @ Base .\reflection.jl:1632 [7] code_typed(job::GPUCompiler.CompilerJob; interactive::Bool, kwargs::@Kwargs{}) @ GPUCompiler C:\Users\T460\.julia\packages\GPUCompiler\U36Ed\src\reflection.jl:68 [8] code_typed @ C:\Users\T460\.julia\packages\GPUCompiler\U36Ed\src\reflection.jl:57 [inlined] [9] #static_code_typed#17 @ C:\Users\T460\.julia\packages\StaticCompiler\daorG\src\StaticCompiler.jl:440 [inlined] [10] static_code_typed @ C:\Users\T460\.julia\packages\StaticCompiler\daorG\src\StaticCompiler.jl:438 [inlined] [11] compile_executable(funcs::Vector{…}, path::String, name::String; filename::String, demangle::Bool, cflags::Cmd, target::StaticTarget, llvm_to_clang::Bool, kwargs::@Kwargs{}) @ StaticCompiler C:\Users\T460\.julia\packages\StaticCompiler\daorG\src\StaticCompiler.jl:123 [12] compile_executable(f::Function, types::Tuple{}, path::String, name::String; also_expose::Vector{…}, target::StaticTarget, kwargs::@Kwargs{}) @ StaticCompiler C:\Users\T460\.julia\packages\StaticCompiler\daorG\src\StaticCompiler.jl:106 [13] compile_executable(f::Function, types::Tuple{}, path::String, name::String) @ StaticCompiler C:\Users\T460\.julia\packages\StaticCompiler\daorG\src\StaticCompiler.jl:103 [14] top-level scope @ REPL[8]:1

In rc2 I get an error when trying to install StaticCompiler:

`
ERROR: LoadError: InitError: type Nothing has no field major
Stacktrace:
[1] getproperty
@ .\Base.jl:49 [inlined]
[2] init()
@ GPUCompiler C:\Users\T460.julia\packages\GPUCompiler\U36Ed\src\GPUCompiler.jl:64
[3] run_module_init(mod::Module, i::Int64)
@ Base .\loading.jl:1263
[4] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1251
[5] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing)
@ Base .\loading.jl:1195
[6] _include_from_serialized
@ .\loading.jl:1152 [inlined]
[7] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
@ Base .\loading.jl:1917
[8] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:2378
[9] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:2243
[10] #invoke_in_world#3
@ .\essentials.jl:1077 [inlined]
[11] invoke_in_world
@ .\essentials.jl:1074 [inlined]
[12] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:2230
[13] macro expansion
@ .\loading.jl:2169 [inlined]
[14] macro expansion
@ .\lock.jl:273 [inlined]
[15] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:2126
[16] #invoke_in_world#3
@ .\essentials.jl:1077 [inlined]
[17] invoke_in_world
@ .\essentials.jl:1074 [inlined]
[18] require(into::Module, mod::Symbol)
@ Base .\loading.jl:2119
[19] include
@ .\Base.jl:558 [inlined]
[20] 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, UInt128}}, source::Nothing)
@ Base .\loading.jl:2749
[21] top-level scope
@ stdin:4
during initialization of module GPUCompiler
in expression starting at C:\Users\T460.julia\packages\StaticCompiler\daorG\src\StaticCompiler.jl:1
in expression starting at stdin:

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions