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

Precompilation fails when updating #1919

Closed
FFroehlich opened this issue Mar 27, 2023 · 1 comment
Closed

Precompilation fails when updating #1919

FFroehlich opened this issue Mar 27, 2023 · 1 comment

Comments

@FFroehlich
Copy link

FFroehlich commented Mar 27, 2023

running on M2 MBA, Ventura 13.1
Julia version 1.8.5

using Pkg; Pkg.update() output

    Updating registry at `~/.julia/registries/General.toml`
   Installed SteadyStateDiffEq ───── v1.14.0
   Installed Polyester ───────────── v0.7.3
   Installed Optimisers ──────────── v0.2.15
   Installed LabelledArrays ──────── v1.14.0
   Installed RecursiveArrayTools ─── v2.38.0
   Installed NonlinearSolve ──────── v1.5.1
   Installed DifferentialEquations ─ v7.7.0
   Installed EllipsisNotation ────── v1.7.0
   Installed SciMLSensitivity ────── v7.28.0
   Installed SimpleUnPack ────────── v1.1.0
   Installed SciMLNLSolve ────────── v0.1.4
   Installed FiniteDiff ──────────── v2.19.0
   Installed DiffEqBase ──────────── v6.122.1
   Installed SciMLBase ───────────── v1.91.3
   Installed LinearSolve ─────────── v1.41.0
   Installed SimpleNonlinearSolve ── v0.1.14
   Installed Lazy ────────────────── v0.15.1
   Installed Symbolics ───────────── v5.1.0
   Installed Tracker ─────────────── v0.2.23
   Installed StaticArrayInterface ── v1.3.0
   Installed JumpProcesses ───────── v9.6.0
   Installed Zygote ──────────────── v0.6.59
   Installed OrdinaryDiffEq ──────── v6.49.4
   Installed LayoutPointers ──────── v0.1.14
   Installed PyCall ──────────────── v1.95.1
   Installed Sundials ────────────── v4.16.0
   Installed SciMLOperators ──────── v0.2.0
   Installed DelayDiffEq ─────────── v5.42.0
   Installed StochasticDiffEq ────── v6.60.0
   Installed LoopVectorization ───── v0.12.154
   Installed ModelingToolkit ─────── v8.48.1
   Installed CloseOpenIntervals ──── v0.1.12
   Installed PolyesterWeave ──────── v0.2.1
   Installed StrideArraysCore ────── v0.4.9
   Installed CPUSummary ──────────── v0.2.2
   Installed ArrayInterface ──────── v7.4.1
   Installed PreallocationTools ──── v0.4.12
   Installed ExponentialUtilities ── v1.24.0
   Installed VectorizationBase ───── v0.21.63
   Installed TruncatedStacktraces ── v1.3.0
   Installed Unityper ────────────── v0.1.2
   Installed SparseDiffTools ─────── v1.31.0
   Installed FastBroadcast ───────── v0.2.5
   Installed SymbolicUtils ───────── v1.0.4
    Updating `~/.julia/environments/v1.8/Project.toml`
  [0c46a032] ↑ DifferentialEquations v7.6.0 ⇒ v7.7.0
  [961ee093] ↑ ModelingToolkit v8.34.0 ⇒ v8.48.1
  [1dea7af3] ↑ OrdinaryDiffEq v6.31.2 ⇒ v6.49.4
  [438e738f] ↑ PyCall v1.94.1 ⇒ v1.95.1
  [0bca4576] ↑ SciMLBase v1.72.0 ⇒ v1.91.3
  [1ed8b502] ↑ SciMLSensitivity v7.11.0 ⇒ v7.28.0
  [c3572dad] ↑ Sundials v4.10.3 ⇒ v4.16.0
  [0c5d862f] ↑ Symbolics v4.13.0 ⇒ v5.1.0
  [e88e6eb3] ↑ Zygote v0.6.49 ⇒ v0.6.59
    Updating `~/.julia/environments/v1.8/Manifest.toml`
  [dce04be8] - ArgCheck v2.3.0
  [4fba245c] ↑ ArrayInterface v6.0.25 ⇒ v7.4.1
  [6ba088a2] - ArrayInterfaceGPUArrays v0.2.2
  [015c0d05] - ArrayInterfaceOffsetArrays v0.1.7
  [b0d46f97] - ArrayInterfaceStaticArrays v0.1.5
  [dd5226c6] - ArrayInterfaceStaticArraysCore v0.1.4
  [a2b0951a] - ArrayInterfaceTracker v0.1.1
  [15f4f7f2] - AutoHashEquals v0.2.0
  [198e06fe] - BangBang v0.3.37
  [9718e550] - Baselet v0.1.1
  [2a0fbf3d] ↑ CPUSummary v0.1.30 ⇒ v0.2.2
  [fb6a15b2] ↑ CloseOpenIntervals v0.1.11 ⇒ v0.1.12
  [a33af91c] - CompositionsBase v0.1.1
  [244e2a9f] - DefineSingletons v0.1.2
  [bcd4f6db] ↑ DelayDiffEq v5.39.1 ⇒ v5.42.0
  [2b5f629d] ↑ DiffEqBase v6.107.0 ⇒ v6.122.1
  [0c46a032] ↑ DifferentialEquations v7.6.0 ⇒ v7.7.0
  [da5c29d0] ↑ EllipsisNotation v1.6.0 ⇒ v1.7.0
  [d4d017d3] ↑ ExponentialUtilities v1.23.0 ⇒ v1.24.0
  [7034ab61] ↑ FastBroadcast v0.2.4 ⇒ v0.2.5
  [6a86dc24] ↑ FiniteDiff v2.17.0 ⇒ v2.19.0
⌅ [d9f16b24] + Functors v0.3.0
  [22cec73e] - InitialValues v0.3.1
  [ccbc3e58] ↑ JumpProcesses v9.5.1 ⇒ v9.6.0
  [2ee39098] ↑ LabelledArrays v1.13.0 ⇒ v1.14.0
  [10f19ff3] ↑ LayoutPointers v0.1.13 ⇒ v0.1.14
  [50d2b5c4] + Lazy v0.15.1
  [7ed4a6bd] ↑ LinearSolve v1.34.1 ⇒ v1.41.0
  [bdcacae8] ↑ LoopVectorization v0.12.150 ⇒ v0.12.154
  [e9d8d322] - Metatheory v1.3.5
  [128add7d] - MicroCollections v0.1.4
  [961ee093] ↑ ModelingToolkit v8.34.0 ⇒ v8.48.1
  [8913a72c] ↑ NonlinearSolve v0.3.22 ⇒ v1.5.1
⌃ [3bd65402] + Optimisers v0.2.15
  [1dea7af3] ↑ OrdinaryDiffEq v6.31.2 ⇒ v6.49.4
  [f517fe37] ↑ Polyester v0.6.20 ⇒ v0.7.3
  [1d0040c9] ↑ PolyesterWeave v0.1.13 ⇒ v0.2.1
  [d236fae5] ↑ PreallocationTools v0.4.11 ⇒ v0.4.12
  [438e738f] ↑ PyCall v1.94.1 ⇒ v1.95.1
  [731186ca] ↑ RecursiveArrayTools v2.37.0 ⇒ v2.38.0
  [42d2dcc6] - Referenceables v0.1.2
  [0bca4576] ↑ SciMLBase v1.72.0 ⇒ v1.91.3
  [e9a6253c] + SciMLNLSolve v0.1.4
  [c0aeaf25] + SciMLOperators v0.2.0
  [1ed8b502] ↑ SciMLSensitivity v7.11.0 ⇒ v7.28.0
  [727e6d20] + SimpleNonlinearSolve v0.1.14
  [ce78b400] + SimpleUnPack v1.1.0
⌅ [47a9eef4] ↑ SparseDiffTools v1.30.0 ⇒ v1.31.0
  [171d559e] - SplittablesBase v0.1.15
  [0d7ed370] + StaticArrayInterface v1.3.0
  [9672c7b4] ↑ SteadyStateDiffEq v1.9.1 ⇒ v1.14.0
  [789caeaf] ↑ StochasticDiffEq v6.58.0 ⇒ v6.60.0
  [7792a7ef] ↑ StrideArraysCore v0.4.7 ⇒ v0.4.9
  [c3572dad] ↑ Sundials v4.10.3 ⇒ v4.16.0
  [d1185830] ↑ SymbolicUtils v0.19.11 ⇒ v1.0.4
  [0c5d862f] ↑ Symbolics v4.13.0 ⇒ v5.1.0
  [8ea1fca8] - TermInterface v0.2.3
  [ac1d9e8a] - ThreadsX v0.1.11
  [9f7883ad] ↑ Tracker v0.2.20 ⇒ v0.2.23
  [28d57a85] - Transducers v0.4.75
  [781d530d] + TruncatedStacktraces v1.3.0
  [a7c27f48] + Unityper v0.1.2
  [3d5dd08c] ↑ VectorizationBase v0.21.58 ⇒ v0.21.63
  [e88e6eb3] ↑ Zygote v0.6.49 ⇒ v0.6.59
        Info Packages marked with ⌃ and ⌅ have new versions available, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m`
    Building PyCall → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/62f417f6ad727987c755549e9cd88c46578da562/build.log`
   ^R
Precompiling project...
  ✗ LinearSolve
  ✗ NonlinearSolve
  ✗ OrdinaryDiffEq
  ✗ StochasticDiffEq
  ✗ DelayDiffEq
  ✗ SciMLSensitivity
  ✗ DifferentialEquations
  48 dependencies successfully precompiled in 189 seconds. 256 already precompiled.
  7 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages
[ Info: We haven't cleaned this depot up for a bit, running Pkg.gc()...
      Active manifest files: 3 found
      Active artifact files: 158 found
      Active scratchspaces: 6 found
     Deleted no artifacts, repos, packages or scratchspaces

import Pkg; Pkg.precompile() output

Precompiling project...
  ✗ LinearSolve
  ✗ NonlinearSolve
  ✗ OrdinaryDiffEq
  ✗ StochasticDiffEq
  ✗ DelayDiffEq
  ✗ SciMLSensitivity
  ✗ DifferentialEquations
  0 dependencies successfully precompiled in 72 seconds. 304 already precompiled.

ERROR: The following 3 direct dependencies failed to precompile:

OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed]

Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to /Users/frohlif/.julia/compiled/v1.8/OrdinaryDiffEq/jl_LNiX7M.
WARNING: Method definition init_cacheval(LinearSolve.GenericFactorization{F} where F, Any, Any, Any, Any, Any, Int64, Any, Any, Bool, LinearSolve.OperatorAssumptions{issq, condition} where condition where issq) in module LinearSolve at /Users/frohlif/.julia/packages/LinearSolve/KIKyO/src/factorization.jl:313 overwritten at /Users/frohlif/.julia/packages/LinearSolve/KIKyO/src/factorization.jl:326.
  ** incremental compilation may be fatally broken for this module **

ERROR: LoadError: MethodError: convert(::Type{Union{}}, ::SparseArrays.SparseMatrixCSC{Float64, Int64}) is ambiguous. Candidates:
  convert(T::Type{<:LinearAlgebra.Bidiagonal}, m::AbstractMatrix) in LinearAlgebra at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/LinearAlgebra/src/bidiag.jl:203
  convert(T::Type{<:SparseArrays.AbstractSparseMatrixCSC}, m::AbstractMatrix) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:745
  convert(T::Type{<:LinearAlgebra.SymTridiagonal}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:749
  convert(T::Type{<:LinearAlgebra.LowerTriangular}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:753
  convert(T::Type{<:SparseArrays.SparseVector}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsevector.jl:466
  convert(T::Type{<:LinearAlgebra.Tridiagonal}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:751
  convert(T::Type{<:LinearAlgebra.UpperTriangular}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:755
  convert(T::Type{<:LinearAlgebra.Diagonal}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:747
  convert(::Type{Union{}}, a::AbstractArray) in Base at array.jl:618
  convert(::Type{T}, M::AbstractArray) where T<:OffsetArrays.OffsetArray in OffsetArrays at /Users/frohlif/.julia/packages/OffsetArrays/TcCEq/src/OffsetArrays.jl:256
  convert(::Type{T}, a::AbstractArray) where T<:Array in Base at array.jl:617
  convert(::Type{SA}, a::AbstractArray) where SA<:StaticArraysCore.StaticArray in StaticArrays at /Users/frohlif/.julia/packages/StaticArrays/a4r2v/src/convert.jl:194
  convert(T::Type{<:BitArray}, a::AbstractArray) in Base at bitarray.jl:580
  convert(::Type{Union{}}, x) in Base at essentials.jl:213
  convert(::Type{T}, arg) where T<:VecElement in Base at baseext.jl:19
  convert(::Type{T}, obj) where T<:FunctionWrappers.FunctionWrapper in FunctionWrappers at /Users/frohlif/.julia/packages/FunctionWrappers/Q5cBx/src/FunctionWrappers.jl:113
Possible fix, define
  convert(::Type{Union{}}, ::SparseArrays.AbstractSparseMatrixCSC)
Stacktrace:
  [1] Sparspak.SpkSparseSolver.SparseSolver{Int64, Float64}(p::SparseArrays.SparseMatrixCSC{Float64, Int64}, slvr::Sparspak.SpkSparseBase._SparseBase{Int64, Float64}, n::Int64, ma::Int64, na::Int64, mc::Int64, nc::Int64, _inmatrixdone::Bool, _orderdone::Bool, _symbolicdone::Bool, _factordone::Bool, _trisolvedone::Bool, _refinedone::Bool, _condestdone::Bool) (repeats 2 times)
    @ Sparspak.SpkSparseSolver ~/.julia/packages/Sparspak/oqBYl/src/SparseMethod/SpkSparseSolver.jl:18
  [2] Sparspak.SpkSparseSolver.SparseSolver(m::SparseArrays.SparseMatrixCSC{Float64, Int64})
    @ Sparspak.SparseCSCInterface ~/.julia/packages/Sparspak/oqBYl/src/SparseCSCInterface/SparseCSCInterface.jl:189
  [3] sparspaklu(m::SparseArrays.SparseMatrixCSC{Float64, Int64}; factorize::Bool)
    @ Sparspak.SparseCSCInterface ~/.julia/packages/Sparspak/oqBYl/src/SparseCSCInterface/SparseCSCInterface.jl:219
  [4] init_cacheval(#unused#::LinearSolve.SparspakFactorization, A::SparseArrays.SparseMatrixCSC{Float64, Int64}, b::Vector{Float64}, u::Vector{Float64}, Pl::SciMLOperators.IdentityOperator, Pr::SciMLOperators.IdentityOperator, maxiters::Int64, abstol::Float64, reltol::Float64, verbose::Bool, assumptions::LinearSolve.OperatorAssumptions{true, LinearSolve.OperatorCondition.IllConditioned})
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/factorization.jl:689
  [5] init(::SciMLBase.LinearProblem{Nothing, true, SparseArrays.SparseMatrixCSC{Float64, Int64}, Vector{Float64}, SciMLBase.NullParameters, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::LinearSolve.SparspakFactorization; alias_A::Bool, alias_b::Bool, abstol::Float64, reltol::Float64, maxiters::Int64, verbose::Bool, Pl::SciMLOperators.IdentityOperator, Pr::SciMLOperators.IdentityOperator, assumptions::LinearSolve.OperatorAssumptions{true, LinearSolve.OperatorCondition.IllConditioned}, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/common.jl:179
  [6] init(::SciMLBase.LinearProblem{Nothing, true, SparseArrays.SparseMatrixCSC{Float64, Int64}, Vector{Float64}, SciMLBase.NullParameters, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::LinearSolve.SparspakFactorization)
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/common.jl:149
  [7] solve(::SciMLBase.LinearProblem{Nothing, true, SparseArrays.SparseMatrixCSC{Float64, Int64}, Vector{Float64}, SciMLBase.NullParameters, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::LinearSolve.SparspakFactorization; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/common.jl:220
  [8] solve(::SciMLBase.LinearProblem{Nothing, true, SparseArrays.SparseMatrixCSC{Float64, Int64}, Vector{Float64}, SciMLBase.NullParameters, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::LinearSolve.SparspakFactorization)
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/common.jl:217
  [9] macro expansion
    @ ~/.julia/packages/LinearSolve/KIKyO/src/LinearSolve.jl:104 [inlined]
 [10] top-level scope
    @ ~/.julia/packages/SnoopPrecompile/1XXT1/src/SnoopPrecompile.jl:62
 [11] include
    @ ./Base.jl:419 [inlined]
 [12] 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::String)
    @ Base ./loading.jl:1554
 [13] top-level scope
    @ stdin:1
in expression starting at /Users/frohlif/.julia/packages/LinearSolve/KIKyO/src/LinearSolve.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile LinearSolve [7ed4a6bd-45f5-4d41-b270-4a48e9bafcae] to /Users/frohlif/.julia/compiled/v1.8/LinearSolve/jl_GqYqCd.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include
    @ ./Base.jl:419 [inlined]
 [10] 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:1554
 [11] top-level scope
    @ stdin:1
in expression starting at /Users/frohlif/.julia/packages/OrdinaryDiffEq/FttEX/src/OrdinaryDiffEq.jl:1
in expression starting at stdin:1

SciMLSensitivity [1ed8b502-d754-442c-8d5d-10ac956f44a1]

Failed to precompile SciMLSensitivity [1ed8b502-d754-442c-8d5d-10ac956f44a1] to /Users/frohlif/.julia/compiled/v1.8/SciMLSensitivity/jl_WjnSu2.
WARNING: Method definition init_cacheval(LinearSolve.GenericFactorization{F} where F, Any, Any, Any, Any, Any, Int64, Any, Any, Bool, LinearSolve.OperatorAssumptions{issq, condition} where condition where issq) in module LinearSolve at /Users/frohlif/.julia/packages/LinearSolve/KIKyO/src/factorization.jl:313 overwritten at /Users/frohlif/.julia/packages/LinearSolve/KIKyO/src/factorization.jl:326.
  ** incremental compilation may be fatally broken for this module **

ERROR: LoadError: MethodError: convert(::Type{Union{}}, ::SparseArrays.SparseMatrixCSC{Float64, Int64}) is ambiguous. Candidates:
  convert(T::Type{<:LinearAlgebra.Bidiagonal}, m::AbstractMatrix) in LinearAlgebra at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/LinearAlgebra/src/bidiag.jl:203
  convert(T::Type{<:SparseArrays.AbstractSparseMatrixCSC}, m::AbstractMatrix) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:745
  convert(T::Type{<:LinearAlgebra.SymTridiagonal}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:749
  convert(T::Type{<:LinearAlgebra.LowerTriangular}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:753
  convert(T::Type{<:SparseArrays.SparseVector}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsevector.jl:466
  convert(T::Type{<:LinearAlgebra.Tridiagonal}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:751
  convert(T::Type{<:LinearAlgebra.UpperTriangular}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:755
  convert(T::Type{<:LinearAlgebra.Diagonal}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:747
  convert(::Type{Union{}}, a::AbstractArray) in Base at array.jl:618
  convert(::Type{T}, M::AbstractArray) where T<:OffsetArrays.OffsetArray in OffsetArrays at /Users/frohlif/.julia/packages/OffsetArrays/TcCEq/src/OffsetArrays.jl:256
  convert(::Type{T}, a::AbstractArray) where T<:Array in Base at array.jl:617
  convert(::Type{SA}, a::AbstractArray) where SA<:StaticArraysCore.StaticArray in StaticArrays at /Users/frohlif/.julia/packages/StaticArrays/a4r2v/src/convert.jl:194
  convert(T::Type{<:BitArray}, a::AbstractArray) in Base at bitarray.jl:580
  convert(::Type{Union{}}, x) in Base at essentials.jl:213
  convert(::Type{T}, arg) where T<:VecElement in Base at baseext.jl:19
  convert(::Type{T}, obj) where T<:FunctionWrappers.FunctionWrapper in FunctionWrappers at /Users/frohlif/.julia/packages/FunctionWrappers/Q5cBx/src/FunctionWrappers.jl:113
Possible fix, define
  convert(::Type{Union{}}, ::SparseArrays.AbstractSparseMatrixCSC)
Stacktrace:
  [1] Sparspak.SpkSparseSolver.SparseSolver{Int64, Float64}(p::SparseArrays.SparseMatrixCSC{Float64, Int64}, slvr::Sparspak.SpkSparseBase._SparseBase{Int64, Float64}, n::Int64, ma::Int64, na::Int64, mc::Int64, nc::Int64, _inmatrixdone::Bool, _orderdone::Bool, _symbolicdone::Bool, _factordone::Bool, _trisolvedone::Bool, _refinedone::Bool, _condestdone::Bool) (repeats 2 times)
    @ Sparspak.SpkSparseSolver ~/.julia/packages/Sparspak/oqBYl/src/SparseMethod/SpkSparseSolver.jl:18
  [2] Sparspak.SpkSparseSolver.SparseSolver(m::SparseArrays.SparseMatrixCSC{Float64, Int64})
    @ Sparspak.SparseCSCInterface ~/.julia/packages/Sparspak/oqBYl/src/SparseCSCInterface/SparseCSCInterface.jl:189
  [3] sparspaklu(m::SparseArrays.SparseMatrixCSC{Float64, Int64}; factorize::Bool)
    @ Sparspak.SparseCSCInterface ~/.julia/packages/Sparspak/oqBYl/src/SparseCSCInterface/SparseCSCInterface.jl:219
  [4] init_cacheval(#unused#::LinearSolve.SparspakFactorization, A::SparseArrays.SparseMatrixCSC{Float64, Int64}, b::Vector{Float64}, u::Vector{Float64}, Pl::SciMLOperators.IdentityOperator, Pr::SciMLOperators.IdentityOperator, maxiters::Int64, abstol::Float64, reltol::Float64, verbose::Bool, assumptions::LinearSolve.OperatorAssumptions{true, LinearSolve.OperatorCondition.IllConditioned})
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/factorization.jl:689
  [5] init(::SciMLBase.LinearProblem{Nothing, true, SparseArrays.SparseMatrixCSC{Float64, Int64}, Vector{Float64}, SciMLBase.NullParameters, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::LinearSolve.SparspakFactorization; alias_A::Bool, alias_b::Bool, abstol::Float64, reltol::Float64, maxiters::Int64, verbose::Bool, Pl::SciMLOperators.IdentityOperator, Pr::SciMLOperators.IdentityOperator, assumptions::LinearSolve.OperatorAssumptions{true, LinearSolve.OperatorCondition.IllConditioned}, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/common.jl:179
  [6] init(::SciMLBase.LinearProblem{Nothing, true, SparseArrays.SparseMatrixCSC{Float64, Int64}, Vector{Float64}, SciMLBase.NullParameters, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::LinearSolve.SparspakFactorization)
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/common.jl:149
  [7] solve(::SciMLBase.LinearProblem{Nothing, true, SparseArrays.SparseMatrixCSC{Float64, Int64}, Vector{Float64}, SciMLBase.NullParameters, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::LinearSolve.SparspakFactorization; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/common.jl:220
  [8] solve(::SciMLBase.LinearProblem{Nothing, true, SparseArrays.SparseMatrixCSC{Float64, Int64}, Vector{Float64}, SciMLBase.NullParameters, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::LinearSolve.SparspakFactorization)
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/common.jl:217
  [9] macro expansion
    @ ~/.julia/packages/LinearSolve/KIKyO/src/LinearSolve.jl:104 [inlined]
 [10] top-level scope
    @ ~/.julia/packages/SnoopPrecompile/1XXT1/src/SnoopPrecompile.jl:62
 [11] include
    @ ./Base.jl:419 [inlined]
 [12] 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::String)
    @ Base ./loading.jl:1554
 [13] top-level scope
    @ stdin:1
in expression starting at /Users/frohlif/.julia/packages/LinearSolve/KIKyO/src/LinearSolve.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile LinearSolve [7ed4a6bd-45f5-4d41-b270-4a48e9bafcae] to /Users/frohlif/.julia/compiled/v1.8/LinearSolve/jl_Mz2eBA.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include
    @ ./Base.jl:419 [inlined]
 [10] 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:1554
 [11] top-level scope
    @ stdin:1
in expression starting at /Users/frohlif/.julia/packages/SciMLSensitivity/rQ8lc/src/SciMLSensitivity.jl:1
in expression starting at stdin:1


DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]

Failed to precompile DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa] to /Users/frohlif/.julia/compiled/v1.8/DifferentialEquations/jl_CSpaoE.
WARNING: Method definition init_cacheval(LinearSolve.GenericFactorization{F} where F, Any, Any, Any, Any, Any, Int64, Any, Any, Bool, LinearSolve.OperatorAssumptions{issq, condition} where condition where issq) in module LinearSolve at /Users/frohlif/.julia/packages/LinearSolve/KIKyO/src/factorization.jl:313 overwritten at /Users/frohlif/.julia/packages/LinearSolve/KIKyO/src/factorization.jl:326.
  ** incremental compilation may be fatally broken for this module **

ERROR: LoadError: MethodError: convert(::Type{Union{}}, ::SparseArrays.SparseMatrixCSC{Float64, Int64}) is ambiguous. Candidates:
  convert(T::Type{<:LinearAlgebra.Bidiagonal}, m::AbstractMatrix) in LinearAlgebra at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/LinearAlgebra/src/bidiag.jl:203
  convert(T::Type{<:SparseArrays.AbstractSparseMatrixCSC}, m::AbstractMatrix) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:745
  convert(T::Type{<:LinearAlgebra.SymTridiagonal}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:749
  convert(T::Type{<:LinearAlgebra.LowerTriangular}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:753
  convert(T::Type{<:SparseArrays.SparseVector}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsevector.jl:466
  convert(T::Type{<:LinearAlgebra.Tridiagonal}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:751
  convert(T::Type{<:LinearAlgebra.UpperTriangular}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:755
  convert(T::Type{<:LinearAlgebra.Diagonal}, m::SparseArrays.AbstractSparseMatrixCSC) in SparseArrays at /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/SparseArrays/src/sparsematrix.jl:747
  convert(::Type{Union{}}, a::AbstractArray) in Base at array.jl:618
  convert(::Type{T}, M::AbstractArray) where T<:OffsetArrays.OffsetArray in OffsetArrays at /Users/frohlif/.julia/packages/OffsetArrays/TcCEq/src/OffsetArrays.jl:256
  convert(::Type{T}, a::AbstractArray) where T<:Array in Base at array.jl:617
  convert(::Type{SA}, a::AbstractArray) where SA<:StaticArraysCore.StaticArray in StaticArrays at /Users/frohlif/.julia/packages/StaticArrays/a4r2v/src/convert.jl:194
  convert(T::Type{<:BitArray}, a::AbstractArray) in Base at bitarray.jl:580
  convert(::Type{Union{}}, x) in Base at essentials.jl:213
  convert(::Type{T}, arg) where T<:VecElement in Base at baseext.jl:19
  convert(::Type{T}, obj) where T<:FunctionWrappers.FunctionWrapper in FunctionWrappers at /Users/frohlif/.julia/packages/FunctionWrappers/Q5cBx/src/FunctionWrappers.jl:113
Possible fix, define
  convert(::Type{Union{}}, ::SparseArrays.AbstractSparseMatrixCSC)
Stacktrace:
  [1] Sparspak.SpkSparseSolver.SparseSolver{Int64, Float64}(p::SparseArrays.SparseMatrixCSC{Float64, Int64}, slvr::Sparspak.SpkSparseBase._SparseBase{Int64, Float64}, n::Int64, ma::Int64, na::Int64, mc::Int64, nc::Int64, _inmatrixdone::Bool, _orderdone::Bool, _symbolicdone::Bool, _factordone::Bool, _trisolvedone::Bool, _refinedone::Bool, _condestdone::Bool) (repeats 2 times)
    @ Sparspak.SpkSparseSolver ~/.julia/packages/Sparspak/oqBYl/src/SparseMethod/SpkSparseSolver.jl:18
  [2] Sparspak.SpkSparseSolver.SparseSolver(m::SparseArrays.SparseMatrixCSC{Float64, Int64})
    @ Sparspak.SparseCSCInterface ~/.julia/packages/Sparspak/oqBYl/src/SparseCSCInterface/SparseCSCInterface.jl:189
  [3] sparspaklu(m::SparseArrays.SparseMatrixCSC{Float64, Int64}; factorize::Bool)
    @ Sparspak.SparseCSCInterface ~/.julia/packages/Sparspak/oqBYl/src/SparseCSCInterface/SparseCSCInterface.jl:219
  [4] init_cacheval(#unused#::LinearSolve.SparspakFactorization, A::SparseArrays.SparseMatrixCSC{Float64, Int64}, b::Vector{Float64}, u::Vector{Float64}, Pl::SciMLOperators.IdentityOperator, Pr::SciMLOperators.IdentityOperator, maxiters::Int64, abstol::Float64, reltol::Float64, verbose::Bool, assumptions::LinearSolve.OperatorAssumptions{true, LinearSolve.OperatorCondition.IllConditioned})
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/factorization.jl:689
  [5] init(::SciMLBase.LinearProblem{Nothing, true, SparseArrays.SparseMatrixCSC{Float64, Int64}, Vector{Float64}, SciMLBase.NullParameters, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::LinearSolve.SparspakFactorization; alias_A::Bool, alias_b::Bool, abstol::Float64, reltol::Float64, maxiters::Int64, verbose::Bool, Pl::SciMLOperators.IdentityOperator, Pr::SciMLOperators.IdentityOperator, assumptions::LinearSolve.OperatorAssumptions{true, LinearSolve.OperatorCondition.IllConditioned}, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/common.jl:179
  [6] init(::SciMLBase.LinearProblem{Nothing, true, SparseArrays.SparseMatrixCSC{Float64, Int64}, Vector{Float64}, SciMLBase.NullParameters, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::LinearSolve.SparspakFactorization)
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/common.jl:149
  [7] solve(::SciMLBase.LinearProblem{Nothing, true, SparseArrays.SparseMatrixCSC{Float64, Int64}, Vector{Float64}, SciMLBase.NullParameters, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::LinearSolve.SparspakFactorization; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/common.jl:220
  [8] solve(::SciMLBase.LinearProblem{Nothing, true, SparseArrays.SparseMatrixCSC{Float64, Int64}, Vector{Float64}, SciMLBase.NullParameters, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::LinearSolve.SparspakFactorization)
    @ LinearSolve ~/.julia/packages/LinearSolve/KIKyO/src/common.jl:217
  [9] macro expansion
    @ ~/.julia/packages/LinearSolve/KIKyO/src/LinearSolve.jl:104 [inlined]
 [10] top-level scope
    @ ~/.julia/packages/SnoopPrecompile/1XXT1/src/SnoopPrecompile.jl:62
 [11] include
    @ ./Base.jl:419 [inlined]
 [12] 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::String)
    @ Base ./loading.jl:1554
 [13] top-level scope
    @ stdin:1
in expression starting at /Users/frohlif/.julia/packages/LinearSolve/KIKyO/src/LinearSolve.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile LinearSolve [7ed4a6bd-45f5-4d41-b270-4a48e9bafcae] to /Users/frohlif/.julia/compiled/v1.8/LinearSolve/jl_QZAr52.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include
    @ ./Base.jl:419 [inlined]
 [10] 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::String)
    @ Base ./loading.jl:1554
 [11] top-level scope
    @ stdin:1
in expression starting at /Users/frohlif/.julia/packages/OrdinaryDiffEq/FttEX/src/OrdinaryDiffEq.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to /Users/frohlif/.julia/compiled/v1.8/OrdinaryDiffEq/jl_crvdYb.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include
    @ ./Base.jl:419 [inlined]
 [10] 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::String)
    @ Base ./loading.jl:1554
 [11] top-level scope
    @ stdin:1
in expression starting at /Users/frohlif/.julia/packages/StochasticDiffEq/rZj4R/src/StochasticDiffEq.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile StochasticDiffEq [789caeaf-c7a9-5a7d-9973-96adeb23e2a0] to /Users/frohlif/.julia/compiled/v1.8/StochasticDiffEq/jl_xd4ymD.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include
    @ ./Base.jl:419 [inlined]
 [10] 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:1554
 [11] top-level scope
    @ stdin:1
in expression starting at /Users/frohlif/.julia/packages/DifferentialEquations/quY78/src/DifferentialEquations.jl:1
in expression starting at stdin:1

Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/Pkg/src/Types.jl:67
 [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{String}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/Pkg/src/API.jl:1435
 [3] precompile
   @ /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/Pkg/src/API.jl:1072 [inlined]
 [4] #precompile#225
   @ /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/Pkg/src/API.jl:1071 [inlined]
 [5] precompile (repeats 2 times)
   @ /opt/homebrew/Cellar/julia/1.8.5/share/julia/stdlib/v1.8/Pkg/src/API.jl:1071 [inlined]
 [6] top-level scope
   @ REPL[2]:1
@ChrisRackauckas
Copy link
Member

This is an inference issue with the Homebrew build of Julia. It fails to optimize correctly. See SciML/LinearSolve.jl#271 .

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

2 participants