Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use package on v1.11-rc2 #80

Closed
RoyCCWang opened this issue Aug 4, 2024 · 1 comment · Fixed by #82
Closed

Cannot use package on v1.11-rc2 #80

RoyCCWang opened this issue Aug 4, 2024 · 1 comment · Fixed by #82

Comments

@RoyCCWang
Copy link

Here is the output from a fresh REPL session on my machine:

julia> versioninfo()
Julia Version 1.11.0-rc2
Commit 34c3a63147b (2024-07-29 06:24 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × AMD Ryzen 7 7735HS with Radeon Graphics
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)

julia> using AllocCheck
Precompiling AllocCheck...
Info Given AllocCheck was explicitly requested, output will be shown live
ERROR: LoadError: InitError: type Nothing has no field major
Stacktrace:
  [1] getproperty
    @ ./Base.jl:49 [inlined]
  [2] __init__()
    @ GPUCompiler ~/.julia/packages/GPUCompiler/kqxyC/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 /home/roy/.julia/packages/AllocCheck/hsw9T/src/AllocCheck.jl:1
in expression starting at stdin:4
  ✗ AllocCheck
  0 dependencies successfully precompiled in 1 seconds. 36 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

AllocCheck

Failed to precompile AllocCheck [9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a] to "/home/roy/.julia/compiled/v1.11/AllocCheck/jl_PAM1nZ".
ERROR: LoadError: InitError: type Nothing has no field major
Stacktrace:
  [1] getproperty
    @ ./Base.jl:49 [inlined]
  [2] __init__()
    @ GPUCompiler ~/.julia/packages/GPUCompiler/kqxyC/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 /home/roy/.julia/packages/AllocCheck/hsw9T/src/AllocCheck.jl:1
in expression starting at stdin:
@xlxs4
Copy link

xlxs4 commented Sep 30, 2024

This issue traces to JuliaGPU/GPUCompiler.jl#610 which has affected other projects, e.g., tshort/StaticCompiler.jl#166 (comment) and was fixed in JuliaGPU/GPUCompiler.jl@54d45e0. Bumping GPUCompiler to 0.27 will allow for using AllocCheck in 1.11. I've come across https://github.com/JuliaLang/AllocCheck.jl/pull/82/files#diff-72ed386c2a0cd1d23c0968297e70023ed98c22490d146dd89fc91f48369bad4dR13 and was wondering whether you can bump GPUCompiler before merging that PR?

(in the meantime, end users can just paste that copy to GPUCompiler manually and use AllocCheck without any issue)

@topolarity topolarity linked a pull request Oct 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants