JuliaLinearAlgebra/ArrayLayouts.jl

ArrayLayouts won't compile on the nightly

Closed this issue · 3 comments

I assume you probably know this, but when I try to compile this I get

julia> using ArrayLayouts
 │ Package ArrayLayouts not found, but a package named ArrayLayouts is available
 │ from a registry. 
 │ Install package?
 │   (@v1.11) pkg> add ArrayLayouts 
 └ (y/n/o) [y]: 
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
   Installed ArrayLayouts ─ v1.0.9
    Updating `~/.julia/environments/v1.11/Project.toml`
  [4c555306] + ArrayLayouts v1.0.9
    Updating `~/.julia/environments/v1.11/Manifest.toml`
  [4c555306] ↑ ArrayLayouts v1.0.8 ⇒ v1.0.9
Precompiling project...
  ✗ ArrayLayouts
  0 dependencies successfully precompiled in 1 seconds. 149 already precompiled. 6 skipped during auto due to previous errors.
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package
Precompiling ArrayLayouts
  ✗ ArrayLayouts
  0 dependencies successfully precompiled in 1 seconds. 3 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

ArrayLayouts [4c555306-a7a7-4459-81d9-ec55ddd5c99a]

Failed to precompile ArrayLayouts [4c555306-a7a7-4459-81d9-ec55ddd5c99a] to "/Users/ctk/.julia/compiled/v1.11/ArrayLayouts/jl_59bqMi".
ERROR: LoadError: too many parameters for type
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/ArrayLayouts/zY7r9/src/memorylayout.jl:719
 [2] include(mod::Module, _path::String)
   @ Base ./Base.jl:489
 [3] include(x::String)
   @ ArrayLayouts ~/.julia/packages/ArrayLayouts/zY7r9/src/ArrayLayouts.jl:1
 [4] top-level scope
   @ ~/.julia/packages/ArrayLayouts/zY7r9/src/ArrayLayouts.jl:103
 [5] include(mod::Module, _path::String)
   @ Base ./Base.jl:489 [inlined]
 [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{…}, dl_load_path::Vector{…}, load_path::Vector{…}, concrete_deps::Vector{…}, source::Nothing)
   @ Base ./loading.jl:2216
 [7] top-level scope
   @ stdin:3
Some type information was truncated. Use `show(err)` to see complete types.
in expression starting at /Users/ctk/.julia/packages/ArrayLayouts/zY7r9/src/memorylayout.jl:719
in expression starting at /Users/ctk/.julia/packages/ArrayLayouts/zY7r9/src/ArrayLayouts.jl:1
in expression starting at stdin:3

Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types /Applications/Julia-1.11.app/Contents/Resources/julia/share/julia/stdlib/v1.11/Pkg/src/Types.jl:69
  [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{…}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, _from_loading::Bool, kwargs::@Kwargs{…})
    @ Pkg.API /Applications/Julia-1.11.app/Contents/Resources/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:1577
  [3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{_from_loading::Bool})
    @ Pkg.API /Applications/Julia-1.11.app/Contents/Resources/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:159
  [4] precompile(pkgs::Vector{String}; kwargs::@Kwargs{_from_loading::Bool})
    @ Pkg.API /Applications/Julia-1.11.app/Contents/Resources/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:147 [inlined]
  [5] precompile(pkg::String; kwargs::@Kwargs{_from_loading::Bool})
    @ Pkg.API /Applications/Julia-1.11.app/Contents/Resources/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:146 [inlined]
  [6] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:1957
  [7] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1806
  [8] invoke_in_world(::UInt64, ::typeof(Base.__require_prelocked), ::Base.PkgId, ::String; kwargs::@Kwargs{})
    @ Base ./essentials.jl:901 [inlined]
  [9] invoke_in_world(::UInt64, ::typeof(Base.__require_prelocked), ::Base.PkgId, ::String)
    @ Base ./essentials.jl:898 [inlined]
 [10] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1797
 [11] macro expansion
    @ Base ./loading.jl:1784 [inlined]
 [12] macro expansion
    @ Base ./lock.jl:267 [inlined]
 [13] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1747
 [14] invoke_in_world(::UInt64, ::typeof(Base.__require), ::Module, ::Symbol; kwargs::@Kwargs{})
    @ Base ./essentials.jl:901 [inlined]
 [15] invoke_in_world(::UInt64, ::typeof(Base.__require), ::Module, ::Symbol)
    @ Base ./essentials.jl:898 [inlined]
 [16] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1740
Some type information was truncated. Use `show(err)` to see complete types.

julia> show(err)
1-element ExceptionStack:
The following 1 direct dependency failed to precompile:

ArrayLayouts [4c555306-a7a7-4459-81d9-ec55ddd5c99a]

Failed to precompile ArrayLayouts [4c555306-a7a7-4459-81d9-ec55ddd5c99a] to "/Users/ctk/.julia/compiled/v1.11/ArrayLayouts/jl_59bqMi".
ERROR: LoadError: too many parameters for type
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/ArrayLayouts/zY7r9/src/memorylayout.jl:719
 [2] include(mod::Module, _path::String)
   @ Base ./Base.jl:489
 [3] include(x::String)
   @ ArrayLayouts ~/.julia/packages/ArrayLayouts/zY7r9/src/ArrayLayouts.jl:1
 [4] top-level scope
   @ ~/.julia/packages/ArrayLayouts/zY7r9/src/ArrayLayouts.jl:103
 [5] include(mod::Module, _path::String)
   @ Base ./Base.jl:489 [inlined]
 [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{…}, dl_load_path::Vector{…}, load_path::Vector{…}, concrete_deps::Vector{…}, source::Nothing)
   @ Base ./loading.jl:2216
 [7] top-level scope
   @ stdin:3
Some type information was truncated. Use `show(err)` to see complete types.
in expression starting at /Users/ctk/.julia/packages/ArrayLayouts/zY7r9/src/memorylayout.jl:719
in expression starting at /Users/ctk/.julia/packages/ArrayLayouts/zY7r9/src/ArrayLayouts.jl:1
in expression starting at stdin:3

Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types /Applications/Julia-1.11.app/Contents/Resources/julia/share/julia/stdlib/v1.11/Pkg/src/Types.jl:69
  [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, _from_loading::Bool, kwargs::@Kwargs{io::Base.TTY})
    @ Pkg.API /Applications/Julia-1.11.app/Contents/Resources/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:1577
  [3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{_from_loading::Bool})
    @ Pkg.API /Applications/Julia-1.11.app/Contents/Resources/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:159
  [4] precompile(pkgs::Vector{String}; kwargs::@Kwargs{_from_loading::Bool})
    @ Pkg.API /Applications/Julia-1.11.app/Contents/Resources/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:147 [inlined]
  [5] precompile(pkg::String; kwargs::@Kwargs{_from_loading::Bool})
    @ Pkg.API /Applications/Julia-1.11.app/Contents/Resources/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:146 [inlined]
  [6] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:1957
  [7] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1806
  [8] invoke_in_world(::UInt64, ::typeof(Base.__require_prelocked), ::Base.PkgId, ::String; kwargs::@Kwargs{})
    @ Base ./essentials.jl:901 [inlined]
  [9] invoke_in_world(::UInt64, ::typeof(Base.__require_prelocked), ::Base.PkgId, ::String)
    @ Base ./essentials.jl:898 [inlined]
 [10] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1797
 [11] macro expansion
    @ Base ./loading.jl:1784 [inlined]
 [12] macro expansion
    @ Base ./lock.jl:267 [inlined]
 [13] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1747
 [14] invoke_in_world(::UInt64, ::typeof(Base.__require), ::Module, ::Symbol; kwargs::@Kwargs{})
    @ Base ./essentials.jl:901 [inlined]
 [15] invoke_in_world(::UInt64, ::typeof(Base.__require), ::Module, ::Symbol)
    @ Base ./essentials.jl:898 [inlined]
 [16] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1740
julia> 

I don’t support nightly. When it’s release candidate I’ll support it. But I believe there’s a PR to fix this

@dlfivefifty can you merge the PR?