You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
precompile error in environment w/ NonlinearSolve and OrdinaryDiffEq
Expected behavior
Precompiles
Minimal Reproducible Example 👇
With an empty environment, e.g. JULIA_DEPOT_PATH=/path/to/x julia --startup-file=no
] add NonlinearSolve OrdinaryDiffEq
Error & Stacktrace ⚠️
10 dependencies had output during precompilation:
┌ OrdinaryDiffEqBDF
│ WARNING: Method definition __solve(Union{SciMLBase.NonlinearLeastSquaresProblem{var"#s17", iip, var"#s16", F, K} where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip, SciMLBase.NonlinearProblem{var"#s17", iip, var"#s16", F, K, PT} where PT where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip}, Nothing, Any...) in module NonlinearSolveBaseForwardDiffExt at /Users/david/Downloads/jltmp/packages/NonlinearSolveBase/Kek5u/ext/NonlinearSolveBaseForwardDiffExt.jl:124 overwritten in module NonlinearSolve at /Users/david/Downloads/jltmp/packages/NonlinearSolve/GHHXX/src/forward_diff.jl:14.
│ ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└
┌ OrdinaryDiffEqNonlinearSolve
│ WARNING: Method definition __solve(Union{SciMLBase.NonlinearLeastSquaresProblem{var"#s17", iip, var"#s16", F, K} where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip, SciMLBase.NonlinearProblem{var"#s17", iip, var"#s16", F, K, PT} where PT where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip}, Nothing, Any...) in module NonlinearSolveBaseForwardDiffExt at /Users/david/Downloads/jltmp/packages/NonlinearSolveBase/Kek5u/ext/NonlinearSolveBaseForwardDiffExt.jl:124 overwritten in module NonlinearSolve at /Users/david/Downloads/jltmp/packages/NonlinearSolve/GHHXX/src/forward_diff.jl:14.
│ ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└
┌ OrdinaryDiffEqDefault
│ WARNING: Method definition __solve(Union{SciMLBase.NonlinearLeastSquaresProblem{var"#s17", iip, var"#s16", F, K} where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip, SciMLBase.NonlinearProblem{var"#s17", iip, var"#s16", F, K, PT} where PT where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip}, Nothing, Any...) in module NonlinearSolveBaseForwardDiffExt at /Users/david/Downloads/jltmp/packages/NonlinearSolveBase/Kek5u/ext/NonlinearSolveBaseForwardDiffExt.jl:124 overwritten in module NonlinearSolve at /Users/david/Downloads/jltmp/packages/NonlinearSolve/GHHXX/src/forward_diff.jl:14.
│ ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└
┌ NonlinearSolve
│ WARNING: Method definition __solve(Union{SciMLBase.NonlinearLeastSquaresProblem{var"#s17", iip, var"#s16", F, K} where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip, SciMLBase.NonlinearProblem{var"#s17", iip, var"#s16", F, K, PT} where PT where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip}, Nothing, Any...) in module NonlinearSolveBaseForwardDiffExt at /Users/david/Downloads/jltmp/packages/NonlinearSolveBase/Kek5u/ext/NonlinearSolveBaseForwardDiffExt.jl:124 overwritten in module NonlinearSolve at /Users/david/Downloads/jltmp/packages/NonlinearSolve/GHHXX/src/forward_diff.jl:14.
│ ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└
┌ OrdinaryDiffEqStabilizedIRK
│ WARNING: Method definition __solve(Union{SciMLBase.NonlinearLeastSquaresProblem{var"#s17", iip, var"#s16", F, K} where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip, SciMLBase.NonlinearProblem{var"#s17", iip, var"#s16", F, K, PT} where PT where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip}, Nothing, Any...) in module NonlinearSolveBaseForwardDiffExt at /Users/david/Downloads/jltmp/packages/NonlinearSolveBase/Kek5u/ext/NonlinearSolveBaseForwardDiffExt.jl:124 overwritten in module NonlinearSolve at /Users/david/Downloads/jltmp/packages/NonlinearSolve/GHHXX/src/forward_diff.jl:14.
│ ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└
┌ OrdinaryDiffEqSDIRK
│ WARNING: Method definition __solve(Union{SciMLBase.NonlinearLeastSquaresProblem{var"#s17", iip, var"#s16", F, K} where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip, SciMLBase.NonlinearProblem{var"#s17", iip, var"#s16", F, K, PT} where PT where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip}, Nothing, Any...) in module NonlinearSolveBaseForwardDiffExt at /Users/david/Downloads/jltmp/packages/NonlinearSolveBase/Kek5u/ext/NonlinearSolveBaseForwardDiffExt.jl:124 overwritten in module NonlinearSolve at /Users/david/Downloads/jltmp/packages/NonlinearSolve/GHHXX/src/forward_diff.jl:14.
│ ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└
┌ OrdinaryDiffEq
│ WARNING: Method definition __solve(Union{SciMLBase.NonlinearLeastSquaresProblem{var"#s17", iip, var"#s16", F, K} where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip, SciMLBase.NonlinearProblem{var"#s17", iip, var"#s16", F, K, PT} where PT where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip}, Nothing, Any...) in module NonlinearSolveBaseForwardDiffExt at /Users/david/Downloads/jltmp/packages/NonlinearSolveBase/Kek5u/ext/NonlinearSolveBaseForwardDiffExt.jl:124 overwritten in module NonlinearSolve at /Users/david/Downloads/jltmp/packages/NonlinearSolve/GHHXX/src/forward_diff.jl:14.
│ ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└
┌ OrdinaryDiffEqPDIRK
│ WARNING: Method definition __solve(Union{SciMLBase.NonlinearLeastSquaresProblem{var"#s17", iip, var"#s16", F, K} where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip, SciMLBase.NonlinearProblem{var"#s17", iip, var"#s16", F, K, PT} where PT where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip}, Nothing, Any...) in module NonlinearSolveBaseForwardDiffExt at /Users/david/Downloads/jltmp/packages/NonlinearSolveBase/Kek5u/ext/NonlinearSolveBaseForwardDiffExt.jl:124 overwritten in module NonlinearSolve at /Users/david/Downloads/jltmp/packages/NonlinearSolve/GHHXX/src/forward_diff.jl:14.
│ ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└
┌ OrdinaryDiffEqIMEXMultistep
│ WARNING: Method definition __solve(Union{SciMLBase.NonlinearLeastSquaresProblem{var"#s17", iip, var"#s16", F, K} where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip, SciMLBase.NonlinearProblem{var"#s17", iip, var"#s16", F, K, PT} where PT where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip}, Nothing, Any...) in module NonlinearSolveBaseForwardDiffExt at /Users/david/Downloads/jltmp/packages/NonlinearSolveBase/Kek5u/ext/NonlinearSolveBaseForwardDiffExt.jl:124 overwritten in module NonlinearSolve at /Users/david/Downloads/jltmp/packages/NonlinearSolve/GHHXX/src/forward_diff.jl:14.
│ ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└
┌ OrdinaryDiffEqFIRK
│ WARNING: Method definition __solve(Union{SciMLBase.NonlinearLeastSquaresProblem{var"#s17", iip, var"#s16", F, K} where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip, SciMLBase.NonlinearProblem{var"#s17", iip, var"#s16", F, K, PT} where PT where K where F where var"#s16"<:(Union{var"#s14", var"#s13"} where var"#s13"<:(AbstractArray{var"#s12", N} where N where var"#s12"<:ForwardDiff.Dual{T, V, P}) where var"#s14"<:ForwardDiff.Dual{T, V, P}) where var"#s17"<:(Union{Number, var"#s15"} where var"#s15"<:(AbstractArray{T, N} where N where T)) where P where V where T where iip}, Nothing, Any...) in module NonlinearSolveBaseForwardDiffExt at /Users/david/Downloads/jltmp/packages/NonlinearSolveBase/Kek5u/ext/NonlinearSolveBaseForwardDiffExt.jl:124 overwritten in module NonlinearSolve at /Users/david/Downloads/jltmp/packages/NonlinearSolve/GHHXX/src/forward_diff.jl:14.
│ ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
Environment (please complete the following information):
Output of using Pkg; Pkg.status()
(@v1.11) pkg> st
Status `~/jltmp/environments/v1.11/Project.toml`
[8913a72c] NonlinearSolve v4.2.0
[1dea7af3] OrdinaryDiffEq v6.90.1
Output of using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
The warnings are about the nonlinear solving of nonlinear problems with dual numbers, I believe the conflicts come from the latest released NonlinearSolveBase and the old version of NonlinearSolve(the refactor moved some methods from parent package to subpackage), we can resolve this issue by bumping NonlinearSolve.jl
Describe the bug 🐞
precompile error in environment w/ NonlinearSolve and OrdinaryDiffEq
Expected behavior
Precompiles
Minimal Reproducible Example 👇
With an empty environment, e.g.
JULIA_DEPOT_PATH=/path/to/x julia --startup-file=no
Error & Stacktrace⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
Additional context
n/a
The text was updated successfully, but these errors were encountered: