JuliaSIMD / StrideArrays.jl

Library supporting the ArrayInterface.jl strided array interface.
MIT License
54 stars 9 forks source link

Precompilation fails #48

Closed ranocha closed 2 years ago

ranocha commented 2 years ago
(@v1.7) pkg> activate --temp
  Activating new project at `/tmp/jl_p1R84o`

(jl_p1R84o) pkg> add StrideArrays
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
   Installed StrideArraysCore ─ v0.2.15
   Installed Hwloc_jll ──────── v2.7.1+0
   Installed CPUSummary ─────── v0.1.17
   Installed StaticArrays ───── v1.4.3
   Installed ChainRulesCore ─── v1.14.0
  Downloaded artifact: Hwloc
    Updating `/tmp/jl_p1R84o/Project.toml`
  [d1fa6d79] + StrideArrays v0.1.15
...
Precompiling project...
  ✗ StrideArrays
  19 dependencies successfully precompiled in 32 seconds (31 already precompiled)
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

julia> import StrideArrays
[ Info: Precompiling StrideArrays [d1fa6d79-ef01-42a6-86c9-f7c551f8593b]
ERROR: LoadError: UndefVarError: static_expr 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 ~/.julia/packages/StrideArrays/2kbGz/src/StrideArrays.jl:1
ERROR: Failed to precompile StrideArrays [d1fa6d79-ef01-42a6-86c9-f7c551f8593b] to ~/.julia/compiled/v1.7/StrideArrays/jl_rUIUgp.
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
chriselrod commented 2 years ago

Should probably add down stream testing to some packages, particularly StrideArraysCore.jl...

ranocha commented 2 years ago

Thanks!