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

ERROR: LoadError: UndefVarError: undefmatrix not defined #157

Closed
ranocha opened this issue Feb 24, 2023 · 5 comments · Fixed by JuliaRegistries/General#78478
Closed

ERROR: LoadError: UndefVarError: undefmatrix not defined #157

ranocha opened this issue Feb 24, 2023 · 5 comments · Fixed by JuliaRegistries/General#78478

Comments

@ranocha
Copy link
Member

ranocha commented Feb 24, 2023

We get the following error in our CI runs:

  ✗ NonlinearSolve
  ✗ OrdinaryDiffEq
  183 dependencies successfully precompiled in 569 seconds
  2 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages
...
ERROR: LoadError: UndefVarError: undefmatrix not defined
Stacktrace:
  [1] jacobian_caches(alg::NonlinearSolve.TrustRegion{0, true, Val{:forward}, Nothing, typeof(NonlinearSolve.DEFAULT_PRECS), true, nothing, Rational{Int64}}, f::Function, u::Float32, p::Float32, #unused#::Val{false})
    @ NonlinearSolve ~/.julia/packages/NonlinearSolve/VEpTU/src/trustRegion.jl:213
  [2] __init(::SciMLBase.NonlinearProblem{Float32, false, Float32, SciMLBase.NonlinearFunction{false, SciMLBase.FullSpecialize, NonlinearSolve.var"#16#18", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardNonlinearProblem}, ::NonlinearSolve.TrustRegion{0, true, Val{:forward}, Nothing, typeof(NonlinearSolve.DEFAULT_PRECS), true, nothing, Rational{Int64}}; alias_u0::Bool, maxiters::Int64, abstol::Float32, internalnorm::Function, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ NonlinearSolve ~/.julia/packages/NonlinearSolve/VEpTU/src/trustRegion.jl:239
  [3] #init_call#18
    @ ~/.julia/packages/DiffEqBase/wtukj/src/solve.jl:412 [inlined]
  [4] #init_up#21
    @ ~/.julia/packages/DiffEqBase/wtukj/src/solve.jl:462 [inlined]
  [5] #init#19
    @ ~/.julia/packages/DiffEqBase/wtukj/src/solve.jl:425 [inlined]
  [6] __solve(::SciMLBase.NonlinearProblem{Float32, false, Float32, SciMLBase.NonlinearFunction{false, SciMLBase.FullSpecialize, NonlinearSolve.var"#16#18", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardNonlinearProblem}, ::NonlinearSolve.TrustRegion{0, true, Val{:forward}, Nothing, typeof(NonlinearSolve.DEFAULT_PRECS), true, nothing, Rational{Int64}}; kwargs::Base.Pairs{Symbol, Float32, Tuple{Symbol}, NamedTuple{(:abstol,), Tuple{Float32}}})
    @ NonlinearSolve ~/.julia/packages/NonlinearSolve/VEpTU/src/NonlinearSolve.jl:30
  [7] #solve_call#22
    @ ~/.julia/packages/DiffEqBase/wtukj/src/solve.jl:496 [inlined]
  [8] #solve_up#29
    @ ~/.julia/packages/DiffEqBase/wtukj/src/solve.jl:927 [inlined]
  [9] #solve#28
    @ ~/.julia/packages/DiffEqBase/wtukj/src/solve.jl:886 [inlined]
 [10] macro expansion
    @ ~/.julia/packages/NonlinearSolve/VEpTU/src/NonlinearSolve.jl:53 [inlined]
 [11] top-level scope
    @ ~/.julia/packages/SnoopPrecompile/1XXT1/src/SnoopPrecompile.jl:69
 [12] include
    @ ./Base.jl:418 [inlined]
 [13] 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:1318
 [14] top-level scope
    @ none:1
 [15] eval
    @ ./boot.jl:373 [inlined]
 [16] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [17] top-level scope
    @ none:1
in expression starting at /home/runner/.julia/packages/NonlinearSolve/VEpTU/src/NonlinearSolve.jl:1
ERROR: LoadError: Failed to precompile NonlinearSolve [8913a72c-1f9b-4ce2-8d82-6[509](https://github.com/trixi-framework/Trixi2Vtk.jl/actions/runs/4253970904/jobs/7399566972#step:6:512)4dcecaec] to /home/runner/.julia/compiled/v1.7/NonlinearSolve/jl_Wiq4lE.

See https://github.com/trixi-framework/Trixi2Vtk.jl/actions/runs/4253970904/jobs/7399566972#step:6:476

This CI run uses Julia v1.7.

@ranocha
Copy link
Member Author

ranocha commented Feb 24, 2023

I can also reproduce it locally:

julia> using Pkg; Pkg.activate(temp = true); Pkg.add(["NonlinearSolve", "Trixi"])
...
  [8913a72c] + NonlinearSolve v1.4.0
  [a7f1ee26] + Trixi v0.5.12
...
Precompiling project...
  ✗ NonlinearSolve
  73 dependencies successfully precompiled in 185 seconds (92 already precompiled)
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

# same stacktrace as above

@ranocha
Copy link
Member Author

ranocha commented Feb 24, 2023

It looks like this would be fixed by ArrayInterface.jl v6.0.24 or v6.0.25 - but we cannot update because StrideArrays.jl is not updated to Static.jl v0.8:

julia> using Pkg; Pkg.activate(temp = true); Pkg.add([
           PackageSpec(name = "NonlinearSolve"),
           PackageSpec(name = "ArrayInterface", version = v"6.0.24"),
           PackageSpec(name = "Trixi", version = v"0.5.12")])
  Activating new project at `/tmp/jl_GENCBl`
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Static [aedffcd0]:
 Static [aedffcd0] log:
 ├─possible versions are: 0.1.0-0.8.4 or uninstalled
 ├─restricted by compatibility requirements with ArrayInterface [4fba245c] to versions: 0.8.0-0.8.4
 │ └─ArrayInterface [4fba245c] log:
 │   ├─possible versions are: 0.0.1-7.1.0 or uninstalled
 │   └─restricted to versions 6.0.24 by an explicit requirement, leaving only versions 6.0.24
 └─restricted by compatibility requirements with StrideArrays [d1fa6d79] to versions: [0.3.0-0.4.1, 0.6.0-0.7.8] — no versions left
   └─StrideArrays [d1fa6d79] log:
     ├─possible versions are: 0.1.0-0.1.23 or uninstalled
     ├─restricted by julia compatibility requirements to versions: 0.1.0-0.1.21 or uninstalled
     ├─restricted by compatibility requirements with ArrayInterface [4fba245c] to versions: 0.1.17-0.1.23 or uninstalled, leaving only versions: 0.1.17-0.1.21 or uninstalled
     │ └─ArrayInterface [4fba245c] log: see above
     └─restricted by compatibility requirements with Trixi [a7f1ee26] to versions: 0.1.18-0.1.23, leaving only versions: 0.1.18-0.1.21
       └─Trixi [a7f1ee26] log:
         ├─possible versions are: 0.1.0-0.5.12 or uninstalled
         └─restricted to versions 0.5.12 by an explicit requirement, leaving only versions 0.5.12

@ChrisRackauckas
Copy link
Member

Yes it looks like we needed to have a higher bound than just 6. We can yank the release with v6 and make that have a lower bound of v6.0.24

@ranocha
Copy link
Member Author

ranocha commented Feb 24, 2023

That would be great, thanks!

@ranocha
Copy link
Member Author

ranocha commented Feb 25, 2023

Thanks!

avik-pal pushed a commit that referenced this issue Nov 1, 2024
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

Successfully merging a pull request may close this issue.

2 participants