Skip to content

Unable to precompile package #21

@jpmvferreira

Description

@jpmvferreira

On a clean installation of Julia, with the following project.toml:

[deps]
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
WebAssemblyCompiler = "9bc180e8-272c-4d08-a460-9682f1716cbe"

WebAssemblyCompiler fails to compile with the following error:

(@v1.11) pkg> precompile
Precompiling project...
  ✗ WebAssemblyCompiler
  18 dependencies successfully precompiled in 27 seconds. 44 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

WebAssemblyCompiler 

Failed to precompile WebAssemblyCompiler [9bc180e8-272c-4d08-a460-9682f1716cbe] to "/home/undercover/.julia/compiled/v1.11/WebAssemblyCompiler/jl_Q5JFZG".
ERROR: LoadError: InitError: type Nothing has no field major
Stacktrace:
  [1] getproperty
    @ ./Base.jl:49 [inlined]
  [2] __init__()
    @ GPUCompiler ~/.julia/packages/GPUCompiler/2mJjc/src/GPUCompiler.jl:64
  [3] run_module_init(mod::Module, i::Int64)
    @ Base ./loading.jl:1378
  [4] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1366
  [5] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base ./loading.jl:1254
  [6] _include_from_serialized (repeats 2 times)
    @ ./loading.jl:1210 [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:2057
  [8] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2527
  [9] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2388
 [10] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [11] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [12] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2375
 [13] macro expansion
    @ ./loading.jl:2314 [inlined]
 [14] macro expansion
    @ ./lock.jl:273 [inlined]
 [15] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2271
 [16] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [17] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [18] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2260
 [19] include(mod::Module, _path::String)
    @ Base ./Base.jl:557
 [20] include(x::String)
    @ WebAssemblyCompiler ~/.julia/packages/WebAssemblyCompiler/MqjfR/src/WebAssemblyCompiler.jl:1
 [21] top-level scope
    @ ~/.julia/packages/WebAssemblyCompiler/MqjfR/src/WebAssemblyCompiler.jl:16
 [22] include
    @ ./Base.jl:557 [inlined]
 [23] 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:2881
 [24] top-level scope
    @ stdin:6
during initialization of module GPUCompiler
in expression starting at /home/undercover/.julia/packages/WebAssemblyCompiler/MqjfR/src/interpreter.jl:5
in expression starting at /home/undercover/.julia/packages/WebAssemblyCompiler/MqjfR/src/WebAssemblyCompiler.jl:1
in expression starting at stdin:

The hash above corresponds to the version that the examples are using.
Trying to use the most up-to-date version I get the same error.

System specs:

  • OS: Manjaro
  • Kernel: Linux 5.10.234-2-MANJARO (x64)
  • Installation Method: AUR (official Julia binaries)

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