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

pkgversion can return nothing. #593

Closed
vchuravy opened this issue Jul 1, 2024 · 3 comments · Fixed by #594
Closed

pkgversion can return nothing. #593

vchuravy opened this issue Jul 1, 2024 · 3 comments · Fixed by #594

Comments

@vchuravy
Copy link
Member

vchuravy commented Jul 1, 2024

Seen on CI with ⌃ [61eb1bfa] GPUCompiler v0.26.5

 Julia Version 1.12.0-DEV.799
Commit 8791d54d142 (2024-06-28 11:07 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × AMD EPYC 7763 64-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-17.0.6 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)
ERROR: LoadError: InitError: FieldError: type Nothing has no field major
Stacktrace:
  [1] getproperty
    @ ./Base.jl:49 [inlined]
  [2] __init__()
    @ GPUCompiler ~/.julia/packages/GPUCompiler/nWT2N/src/GPUCompiler.jl:64
  [3] run_module_init(mod::Module, i::Int64)
    @ Base ./loading.jl:1305
  [4] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1293

dir = joinpath(dir, "v$(VERSION.major).$(VERSION.minor)")

https://github.com/JuliaGPU/KernelAbstractions.jl/actions/runs/9704681162/job/26812207150?pr=487#step:6:183

@maleadt
Copy link
Member

maleadt commented Jul 1, 2024

Related: #589

Is this in a plain environment (i.e., not using PackageCompiler or sysimages or anything)?

From the Base.pkgversion docs:

Return the version of the package that imported module m, or nothing if m was not imported from a package.

That covers the PackageCompiler/sysimg case.

@vchuravy
Copy link
Member Author

vchuravy commented Jul 1, 2024

Is this in a plain environment

Should be this, was just normal CI

@giordano
Copy link
Contributor

For the record, I also ran into this issue in Julia v1.11 with a plain environment, not PackageCompiler/sysimg.

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.

3 participants