JuliaArrays / JuliaArrays/BlockArrays.jl

Failing to compile on 1.12 nightly

Open
#396 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
254
Forks
39
PR merge metrics
No merged PRs in 30d

Description

I have been finding that some of my unit tests have been consistently failing on the 1.12 nightlys for several months, I think due to BlockArrays.jl. I am not sure if this is a known issue? I am having trouble parsing the error to understand if there is something I should be modifying on my side in the package that depends on BlockArrays via BasisFunctions. The unit test run is here, with the relevant error posted below.

ERROR: LoadError: The following 1 direct dependency failed to precompile:

BasisFunctions --code-coverage=@/home/runner/work/apMADGICS.jl/apMADGICS.jl --color=yes --check-bounds=yes --warn-overwrite=yes --depwarn=yes --inline=yes --startup-file=no --track-allocation=none --check-bounds=yes 

Failed to precompile BasisFunctions [4343a256-5453-507d-8aad-01a9d7189916] to "/home/runner/.julia/compiled/v1.12/BasisFunctions/jl_ds9hNZ".
ERROR: LoadError: too many parameters for type AbstractTriangular
Stacktrace:
  [1] top-level scope
    @ none:1
  [2] eval(m::Module, e::Any)
    @ Core ./boot.jl:432
  [3] top-level scope
    @ ~/.julia/packages/BlockArrays/TOpxG/src/abstractblockarray.jl:187
  [4] include(mod::Module, _path::String)
    @ Base ./Base.jl:559
  [5] include(x::String)
    @ BlockArrays ~/.julia/packages/BlockArrays/TOpxG/src/BlockArrays.jl:1
  [6] top-level scope
    @ ~/.julia/packages/BlockArrays/TOpxG/src/BlockArrays.jl:49
  [7] include
    @ ./Base.jl:559 [inlined]
  [8] 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, UInt128}}, source::String)
    @ Base ./loading.jl:2769
  [9] top-level scope
    @ stdin:4
 [10] eval
    @ ./boot.jl:432 [inlined]
 [11] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2591
 [12] include_string
    @ ./loading.jl:2601 [inlined]
 [13] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:323
 [14] _start()
    @ Base ./client.jl:[533](https://github.com/andrew-saydjari/apMADGICS.jl/actions/runs/8871723814/job/24355094867#step:6:536)
in expression starting at /home/runner/.julia/packages/BlockArrays/TOpxG/src/abstractblockarray.jl:186
in expression starting at /home/runner/.julia/packages/BlockArrays/TOpxG/src/BlockArrays.jl:1
in expression starting at stdin:4
ERROR: LoadError: Failed to precompile BlockArrays [8e7c35d0-a365-5155-bbbb-fb81a777f24e] to "/home/runner/.julia/compiled/v1.12/BlockArrays/jl_6B0CRf".
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:44
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64})
    @ Base ./loading.jl:3034
  [3] (::Base.var"#1104#1105"{Base.PkgId})()
    @ Base ./loading.jl:2437
  [4] mkpidlock(f::Base.var"#1104#1105"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile /opt/hostedtoolcache/julia/nightly/x64/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:93
  [5] #mkpidlock#6
    @ /opt/hostedtoolcache/julia/nightly/x64/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:88 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile /opt/hostedtoolcache/julia/nightly/x64/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:114
  [7] #invokelatest#2
    @ ./essentials.jl:1034 [inlined]
  [8] invokelatest
    @ ./essentials.jl:1029 [inlined]
  [9] maybe_cachefile_lock(f::Base.var"#1104#1105"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3604
 [10] maybe_cachefile_lock
    @ ./loading.jl:3601 [inlined]
 [11] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2433
 [12] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2266
 [13] #invoke_in_world#3
    @ ./essentials.jl:1066 [inlined]
 [14] invoke_in_world
    @ ./essentials.jl:1063 [inlined]
 [15] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2257
 [16] macro expansion
    @ ./loading.jl:2197 [inlined]
 [17] macro expansion
    @ ./lock.jl:273 [inlined]
 [18] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2154
 [19] #invoke_in_world#3
    @ ./essentials.jl:1066 [inlined]
 [20] invoke_in_world
    @ ./essentials.jl:1063 [inlined]
 [21] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2147
 [22] include
    @ ./Base.jl:[559](https://github.com/andrew-saydjari/apMADGICS.jl/actions/runs/8871723814/job/24355094867#step:6:562) [inlined]
 [23] 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, UInt128}}, source::Nothing)
    @ Base ./loading.jl:2769
 [24] top-level scope
    @ stdin:4
 [25] eval
    @ ./boot.jl:432 [inlined]
 [26] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2591
 [27] include_string
    @ ./loading.jl:2601 [inlined]
 [28] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:323
 [29] _start()
    @ Base ./client.jl:533
in expression starting at /home/runner/.julia/packages/BasisFunctions/vajKb/src/BasisFunctions.jl:1
in expression starting at stdin:
in expression starting at /home/runner/work/_actions/julia-actions/julia-runtest/v1/test_harness.jl:7

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported precompilation failure with Julia 1.12 nightly using the linked apMADGICS.jl workflow. Inspect src/abstractblockarray.jl around lines 186-187 and the surrounding BlockArrays loading path; done means BlockArrays and the dependent BasisFunctions package precompile successfully on that nightly.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.