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

Precompiling VectorizationBase errors in Ubuntu, julia 1.7.2 #82

Closed
ismedina opened this issue Mar 2, 2022 · 5 comments
Closed

Precompiling VectorizationBase errors in Ubuntu, julia 1.7.2 #82

ismedina opened this issue Mar 2, 2022 · 5 comments

Comments

@ismedina
Copy link

ismedina commented Mar 2, 2022

Hi! I get a precompilation error when importing VectorizationBase. Originally I got this error when trying to install DifferentialEquations.jl, but I reproduce the error just adding VectorizationBase. I can reproduce it with julia 1.7.2 or 1.6.5 in Ubuntu, Below the stacktrace (for julia 1.7.2, for 1.6.5 I get the same):

julia> using VectorizationBase
[ Info: Precompiling VectorizationBase [3d5dd08c-fd9d-11e8-17fa-ed2836048c2f]
ERROR: LoadError: UndefVarError: num_cache_levels not defined
Stacktrace:
 [1] include
   @ ./Base.jl:418 [inlined]
 [2] 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, UInt64}}, source::Nothing)
   @ Base ./loading.jl:1318
 [3] top-level scope
   @ none:1
 [4] eval
   @ ./boot.jl:373 [inlined]
 [5] eval(x::Expr)
   @ Base.MainInclude ./client.jl:453
 [6] top-level scope
   @ none:1
in expression starting at /home/ismael/.julia/packages/VectorizationBase/yDGcX/src/VectorizationBase.jl:1
ERROR: Failed to precompile VectorizationBase [3d5dd08c-fd9d-11e8-17fa-ed2836048c2f] to /home/ismael/.julia/compiled/v1.7/VectorizationBase/jl_voXyGg.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1466
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1410
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1120
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1013
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:997

Any ideas? Thanks in advance!

@lcontento
Copy link

It looks to be caused by significant changes in the CPUSummary package. I can make it load by reverting to an older version pkg> pin [email protected]

@chriselrod
Copy link
Member

This should be fixed soon JuliaRegistries/General#55825

@ismedina
Copy link
Author

ismedina commented Mar 2, 2022

Thank you both for the very very fast reply! @lcontento's answer worked for me, in the meantime until it is fixed in general. Should I close this?

@chriselrod
Copy link
Member

Thank you both for the very very fast reply! @lcontento's answer worked for me, in the meantime until it is fixed in general. Should I close this?

I can close it once I release a new version of VB that excludes the problematic CPUSummary versions.

@chriselrod
Copy link
Member

Please let me know if you run into any more problems!

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

No branches or pull requests

3 participants