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

[1.10] Pkg.precompile crash exits when package hits redefinition error #3896

Open
IanButterworth opened this issue May 8, 2024 · 4 comments
Labels
bug precompile Pkg.precompile

Comments

@IanButterworth
Copy link
Sponsor Member

Note that precompile exits when hitting the CPUSummary error that causes the ? classification, without letting all jobs finish, and following this another call to precompile had more work to do.

(Foo) pkg> precompile
Precompiling project...
  ? CPUSummary
  ◒ TiffImages
  ◒ DataFrames
  ◒ Polynomials
  ◐ ImageCore
  ◐ UnicodePlots
  ◓ Zygote
  ◒ Distributions → DistributionsChainRulesCoreExt

  2 dependencies had output during precompilation:
┌ Interpolations
│  WARNING: method definition for checkbounds at /home/user/.julia/packages/Interpolations/USkTk/src/Interpolations.jl:454 declares type variable N but does not use it.
│  WARNING: method definition for checkbounds at /home/user/.julia/packages/Interpolations/USkTk/src/Interpolations.jl:457 declares type variable N but does not use it.
│  WARNING: method definition for GriddedInterpolation at /home/user/.julia/packages/Interpolations/USkTk/src/gridded/gridded.jl:37 declares type variable pad but does not use it.
│  WARNING: method definition for GriddedInterpolation at /home/user/.julia/packages/Interpolations/USkTk/src/gridded/gridded.jl:60 declares type variable pad but does not use it.
│  WARNING: method definition for interpolate! at /home/user/.julia/packages/Interpolations/USkTk/src/deprecations.jl:30 declares type variable TWeights but does not use it.
└  
┌ CPUSummary
│  WARNING: Method definition cache_size(Union{Base.Val{1}, Static.StaticInt{1}}) in module CPUSummary at /home/user/.julia/packages/CPUSummary/LAKF1/src/x86.jl:26 overwritten on the same line (check for duplicate calls to `include`).
│  ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└ 
julia> versioninfo()
Julia Version 1.10.3
Commit 0b4590a5507 (2024-04-30 10:59 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 32 × 13th Gen Intel(R) Core(TM) i9-13900K
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, goldmont)
Threads: 1 default, 0 interactive, 1 GC (on 32 virtual cores)
@IanButterworth IanButterworth added bug precompile Pkg.precompile labels May 8, 2024
@KristofferC
Copy link
Sponsor Member

I guess not a Pkg.jl issue anymore.

@IanButterworth
Copy link
Sponsor Member Author

Shouldn't it be because 1.10?

@KristofferC
Copy link
Sponsor Member

Oh, ok, yes. Fixed in 1.11?

@IanButterworth
Copy link
Sponsor Member Author

I've not tested on 1.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug precompile Pkg.precompile
Projects
None yet
Development

No branches or pull requests

2 participants