# Failed to precompile DifferentialEquations and DiffEqFlux Julia 1.7.1

**URL:** <https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 10, 2022, 7:46am UTC](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551 "2022-06-10T07:46:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Post date:** [June 10, 2022, 7:46am UTC](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551/1 "2022-06-10T07:46:45Z")

</div>

Hi,

I just updated all packages ]up and out of a sudden precompilation failed which worked before.

## Precompiling failed after ]up

```julia
julia> import Pkg; Pkg.precompile()
Precompiling project...
  ✗ OrdinaryDiffEq
  ✗ Trebuchet
  ✗ DelayDiffEq
  ✗ StochasticDiffEq
  ✗ MultiScaleArrays
  ✗ DiffEqSensitivity
  ✗ DifferentialEquations
  ✗ DiffEqFlux
  0 dependencies successfully precompiled in 258 seconds (497 already precompiled)

ERROR: The following 3 direct dependencies failed to precompile:

Trebuchet [98b73d46-197d-11e9-11eb-69a6ff759d3a]

Failed to precompile Trebuchet [98b73d46-197d-11e9-11eb-69a6ff759d3a] to /home/ssahm/.julia/compiled/v1.7/Trebuchet/jl_BfeHQG.
WARNING: Method definition setindex(AbstractArray{T, 2} where T, Any, Int64, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:163 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:129.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 1} where T, Any, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:158 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:124.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, N} where N where T, Any, Any...) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:152 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:118.
  **incremental compilation may be fatally broken for this module**

ERROR: LoadError: UndefVarError: DEFAULT_LINSOLVE not defined
Stacktrace:
 [1] OrdinaryDiffEq.Rosenbrock23()
   @ OrdinaryDiffEq ~/.julia/packages/OrdinaryDiffEq/OBX2P/src/algorithms.jl:3627
 [2] top-level scope
   @ ~/.julia/packages/OrdinaryDiffEq/OBX2P/src/OrdinaryDiffEq.jl:193
 [3] include
   @ ./Base.jl:418 [inlined]
 [4] 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
 [5] top-level scope
   @ none:1
 [6] eval
   @ ./boot.jl:373 [inlined]
 [7] eval(x::Expr)
   @ Base.MainInclude ./client.jl:453
 [8] top-level scope
   @ none:1
in expression starting at /home/ssahm/.julia/packages/OrdinaryDiffEq/OBX2P/src/OrdinaryDiffEq.jl:1
ERROR: LoadError: Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to /home/ssahm/.julia/compiled/v1.7/OrdinaryDiffEq/jl_HRGeGb.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1466
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1410
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1120
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
  [7] include
    @ ./Base.jl:418 [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, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1318
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:373 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [12] top-level scope
    @ none:1
in expression starting at /home/ssahm/.julia/packages/Trebuchet/RdSqo/src/Trebuchet.jl:1

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

Failed to precompile DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa] to /home/ssahm/.julia/compiled/v1.7/DifferentialEquations/jl_2EEHes.
WARNING: Method definition setindex(AbstractArray{T, 2} where T, Any, Int64, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:163 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:129.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 1} where T, Any, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:158 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:124.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, N} where N where T, Any, Any...) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:152 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:118.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 2} where T, Any, Int64, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:163 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:129.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 1} where T, Any, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:158 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:124.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, N} where N where T, Any, Any...) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:152 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:118.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 2} where T, Any, Int64, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:163 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:129.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 1} where T, Any, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:158 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:124.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, N} where N where T, Any, Any...) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:152 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:118.
  **incremental compilation may be fatally broken for this module**

ERROR: LoadError: UndefVarError: DEFAULT_LINSOLVE not defined
Stacktrace:
 [1] OrdinaryDiffEq.Rosenbrock23()
   @ OrdinaryDiffEq ~/.julia/packages/OrdinaryDiffEq/OBX2P/src/algorithms.jl:3627
 [2] top-level scope
   @ ~/.julia/packages/OrdinaryDiffEq/OBX2P/src/OrdinaryDiffEq.jl:193
 [3] include
   @ ./Base.jl:418 [inlined]
 [4] 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
 [5] top-level scope
   @ none:1
 [6] eval
   @ ./boot.jl:373 [inlined]
 [7] eval(x::Expr)
   @ Base.MainInclude ./client.jl:453
 [8] top-level scope
   @ none:1
in expression starting at /home/ssahm/.julia/packages/OrdinaryDiffEq/OBX2P/src/OrdinaryDiffEq.jl:1
ERROR: LoadError: Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to /home/ssahm/.julia/compiled/v1.7/OrdinaryDiffEq/jl_xR6RX8.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1466
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1410
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1120
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
  [7] include
    @ ./Base.jl:418 [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, UInt64}}, source::String)
    @ Base ./loading.jl:1318
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:373 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [12] top-level scope
    @ none:1
in expression starting at /home/ssahm/.julia/packages/StochasticDiffEq/oRGtU/src/StochasticDiffEq.jl:1
ERROR: LoadError: Failed to precompile StochasticDiffEq [789caeaf-c7a9-5a7d-9973-96adeb23e2a0] to /home/ssahm/.julia/compiled/v1.7/StochasticDiffEq/jl_S22cZX.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1466
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1410
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1120
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
  [7] include
    @ ./Base.jl:418 [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, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1318
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:373 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [12] top-level scope
    @ none:1
in expression starting at /home/ssahm/.julia/packages/DifferentialEquations/GBjZU/src/DifferentialEquations.jl:1

DiffEqFlux [aae7a2af-3d4f-5e19-a356-7da93b79d9d0]

Failed to precompile DiffEqFlux [aae7a2af-3d4f-5e19-a356-7da93b79d9d0] to /home/ssahm/.julia/compiled/v1.7/DiffEqFlux/jl_Av0oy4.
WARNING: Method definition setindex(AbstractArray{T, 2} where T, Any, Int64, Int64) in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:129 overwritten in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:163.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 1} where T, Any, Int64) in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:124 overwritten in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:158.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, N} where N where T, Any, Any...) in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:118 overwritten in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:152.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 2} where T, Any, Int64, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:163 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:129.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 1} where T, Any, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:158 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:124.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, N} where N where T, Any, Any...) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:152 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:118.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 2} where T, Any, Int64, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:163 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:129.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 1} where T, Any, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:158 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:124.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, N} where N where T, Any, Any...) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:152 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:118.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 2} where T, Any, Int64, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:163 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:129.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 1} where T, Any, Int64) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:158 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:124.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, N} where N where T, Any, Any...) in module ArrayInterface at /home/ssahm/.julia/packages/ArrayInterface/TCj9U/src/ArrayInterface.jl:152 overwritten in module ArrayInterfaceCore at /home/ssahm/.julia/packages/ArrayInterfaceCore/wwYvJ/src/ArrayInterfaceCore.jl:118.
  **incremental compilation may be fatally broken for this module**

ERROR: LoadError: UndefVarError: DEFAULT_LINSOLVE not defined
Stacktrace:
 [1] OrdinaryDiffEq.Rosenbrock23()
   @ OrdinaryDiffEq ~/.julia/packages/OrdinaryDiffEq/OBX2P/src/algorithms.jl:3627
 [2] top-level scope
   @ ~/.julia/packages/OrdinaryDiffEq/OBX2P/src/OrdinaryDiffEq.jl:193
 [3] include
   @ ./Base.jl:418 [inlined]
 [4] 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
 [5] top-level scope
   @ none:1
 [6] eval
   @ ./boot.jl:373 [inlined]
 [7] eval(x::Expr)
   @ Base.MainInclude ./client.jl:453
 [8] top-level scope
   @ none:1
in expression starting at /home/ssahm/.julia/packages/OrdinaryDiffEq/OBX2P/src/OrdinaryDiffEq.jl:1
ERROR: LoadError: Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to /home/ssahm/.julia/compiled/v1.7/OrdinaryDiffEq/jl_NoCvYh.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1466
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1410
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1120
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
  [7] include
    @ ./Base.jl:418 [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, UInt64}}, source::String)
    @ Base ./loading.jl:1318
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:373 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [12] top-level scope
    @ none:1
in expression starting at /home/ssahm/.julia/packages/StochasticDiffEq/oRGtU/src/StochasticDiffEq.jl:1
ERROR: LoadError: Failed to precompile StochasticDiffEq [789caeaf-c7a9-5a7d-9973-96adeb23e2a0] to /home/ssahm/.julia/compiled/v1.7/StochasticDiffEq/jl_JFOa4Z.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1466
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1410
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1120
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
  [7] include
    @ ./Base.jl:418 [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, UInt64}}, source::String)
    @ Base ./loading.jl:1318
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:373 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [12] top-level scope
    @ none:1
in expression starting at /home/ssahm/.julia/packages/DiffEqSensitivity/GjhZ8/src/DiffEqSensitivity.jl:1
ERROR: LoadError: Failed to precompile DiffEqSensitivity [41bf760c-e81c-5289-8e54-58b1f1f8abe2] to /home/ssahm/.julia/compiled/v1.7/DiffEqSensitivity/jl_NmUL0G.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1466
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1410
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1120
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
  [7] include
    @ ./Base.jl:418 [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, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1318
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:373 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [12] top-level scope
    @ none:1
in expression starting at /home/ssahm/.julia/packages/DiffEqFlux/Te0lc/src/DiffEqFlux.jl:1

Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types /nix/store/qmlbjq46nhn1v08nnb23y2myrvra8hm7-julia-bin-1.7.1/share/julia/stdlib/v1.7/Pkg/src/Types.jl:68
 [2] precompile(ctx::Pkg.Types.Context; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API /nix/store/qmlbjq46nhn1v08nnb23y2myrvra8hm7-julia-bin-1.7.1/share/julia/stdlib/v1.7/Pkg/src/API.jl:1362
 [3] precompile
   @ /nix/store/qmlbjq46nhn1v08nnb23y2myrvra8hm7-julia-bin-1.7.1/share/julia/stdlib/v1.7/Pkg/src/API.jl:1013 [inlined]
 [4] #precompile#220
   @ /nix/store/qmlbjq46nhn1v08nnb23y2myrvra8hm7-julia-bin-1.7.1/share/julia/stdlib/v1.7/Pkg/src/API.jl:1011 [inlined]
 [5] precompile()
   @ Pkg.API /nix/store/qmlbjq46nhn1v08nnb23y2myrvra8hm7-julia-bin-1.7.1/share/julia/stdlib/v1.7/Pkg/src/API.jl:1011
 [6] top-level scope
   @ REPL[1]:100: 

```

## Here my status

```julia
  [fbb218c0] BSON v0.3.5
  [6e4b80f9] BenchmarkTools v1.3.1
  [e28b5b4c] Bootstrap v2.3.3
  [336ed68f] CSV v0.10.4
  [324d7699] CategoricalArrays v0.10.6
  [134e5e36] Catlab v0.13.10
  [aaaa29a8] Clustering v0.14.2
  [5ae59095] Colors v0.12.8
  [a80b9123] CommonMark v0.8.6
  [a81c6b42] Compose v0.9.3
  [a93c6f00] DataFrames v1.3.4
  [864edb3b] DataStructures v0.18.13
  [2b5f629d] DiffEqBase v6.89.4
  [aae7a2af] DiffEqFlux v1.48.0
  [0c46a032] DifferentialEquations v6.20.0
  [b4f34e82] Distances v0.10.7
  [31c24e10] Distributions v0.25.62
  [587475ba] Flux v0.13.3
  [38e38edf] GLM v1.8.0
  [aa1b3936] GraphIO v0.6.0
  [a2cc645c] GraphPlot v0.5.2
  [bd48cda9] GraphRecipes v0.5.9
  [86223c79] Graphs v1.7.0
  [ac1192a8] HypertextLiteral v0.9.4
  [09f84164] HypothesisTests v0.10.10
  [7073ff75] IJulia v1.23.3
  [c601a237] Interact v0.10.4
  [82899510] IteratorInterfaceExtensions v1.0.0
  [5ab0869b] KernelDensity v0.6.3
  [4345ca2d] Loess v0.5.4
  [add582a8] MLJ v0.18.2
  [c6f25543] MLJDecisionTreeInterface v0.2.2
  [1b6a4a23] MLJMultivariateStatsInterface v0.3.1
  [eff96d63] Measurements v2.7.2
  [c03570c3] Memoize v0.4.4
  [626554b9] MetaGraphs v0.7.1
  [e1d29d7a] Missings v1.0.2
  [ff71e718] MixedModels v4.6.4
  [6f286f6a] MultivariateStats v0.9.1
  [510215fc] Observables v0.4.0
  [a15396b6] OnlineStats v1.5.13
  [925886fa] OnlineStatsBase v1.4.9
  [fae87a5f] ParserCombinator v2.1.1
  [f0f68f2c] PlotlyJS v0.18.8
  [91a5bcdd] Plots v1.29.1
  [c3e4b0f8] Pluto v0.19.8
  [7f904dfe] PlutoUI v0.7.39
  [1a8c2f83] Query v1.0.0
  [ce6b1742] RDatasets v0.7.7
  [0bca4576] SciMLBase v1.39.0
  [1277b4bf] ShiftedArrays v1.0.0
  [860ef19b] StableRNGs v1.0.0
  [90137ffa] StaticArrays v1.4.6
  [2913bbd2] StatsBase v0.33.16
  [4c63d2b9] StatsFuns v1.0.1
  [2cb19f9e] StatsKit v0.3.1
  [3eaba693] StatsModels v0.6.30
  [f3b207a7] StatsPlots v0.14.34
  [bd369af6] Tables v1.7.0
  [ac1d9e8a] ThreadsX v0.1.10
  [9e3dc215] TimeSeries v0.23.0
  [28d57a85] Transducers v0.4.73
  [98b73d46] Trebuchet v0.2.1
  [fce5fe82] Turing v0.21.5
  [0f1e0344] WebIO v0.8.18
  [e88e6eb3] Zygote v0.6.40
  [de0858da] Printf
  [9a3f8284] Random
  [10745b16] Statistics

```

I’ve seen this similar issue [Failed to precompile DifferentialEquations v1.6.2](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-v1-6-2/81447) however it doesn’t help for me here.

Any help is highly appreciated

EDIT: I guess it has something todo with Trebuchet.jl package

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [June 10, 2022, 8:17am UTC](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551/2 "2022-06-10T08:17:53Z")

</div>

Does installing in a clean environment work?

```bash
mkdir test
cd test
julia --project="."

```

```julia
using Pkg
pkg"add DiffentialEquations"
pkg"add DiffEqFlux"

```

If that works, you can try to add the other packages you need one by one until it fails.

Then we would know which package causes the failure.

---

<div class="post-metadata">

**Author:** ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Post date:** [June 10, 2022, 8:33am UTC](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551/3 "2022-06-10T08:33:01Z")

</div>

Thank you for the systematic approach - I will try it

---

<div class="post-metadata">

**Author:** ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Post date:** [June 10, 2022, 8:40am UTC](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551/4 "2022-06-10T08:40:53Z")

</div>

It is indeed `Trebuchet.jl` package. When removing it and updating everything compiles. When adding it again afterwards, I get the following downgrades:

```julia
pkg> add Trebuchet
   Resolving package versions...
    Updating `~/Projects/fall-in-love-with-julia/Project.toml`
  [aae7a2af] ↓ DiffEqFlux v1.49.0 ⇒ v1.48.0
  [0c46a032] ↓ DifferentialEquations v7.1.0 ⇒ v6.20.0
  [1dea7af3] ↓ OrdinaryDiffEq v6.14.2 ⇒ v5.71.1
  [98b73d46] + Trebuchet v0.2.1
    Updating `~/Projects/fall-in-love-with-julia/Manifest.toml`
  [4fba245c] ↓ ArrayInterface v6.0.14 ⇒ v3.2.2
  [6ba088a2] - ArrayInterfaceGPUArrays v0.1.0
  [015c0d05] - ArrayInterfaceOffsetArrays v0.1.5
  [b0d46f97] - ArrayInterfaceStaticArrays v0.1.2
  [4c555306] ↓ ArrayLayouts v0.8.6 ⇒ v0.7.10
  [aae01518] ↓ BandedMatrices v0.17.0 ⇒ v0.16.13
  [8e7c35d0] ↓ BlockArrays v0.16.17 ⇒ v0.16.11
  [ffab5731] ↓ BlockBandedMatrices v0.11.6 ⇒ v0.11.1
  [00ebfdb7] + CSTParser v3.3.3
  [b0b7db55] - ComponentArrays v0.12.0
  [bcd4f6db] ↓ DelayDiffEq v5.37.0 ⇒ v5.33.0
  [5a0ffddc] + DiffEqFinancial v2.4.0
  [aae7a2af] ↓ DiffEqFlux v1.49.0 ⇒ v1.48.0
  [055956cb] + DiffEqPhysics v3.9.0
  [0c46a032] ↓ DifferentialEquations v7.1.0 ⇒ v6.20.0
  [c619ae07] + DimensionalPlotRecipes v1.2.0
  [7034ab61] ↓ FastBroadcast v0.2.0 ⇒ v0.1.17
  [1a297f60] ↓ FillArrays v0.13.2 ⇒ v0.12.8
  [98e50ef6] + JuliaFormatter v1.0.2
  [2ee39098] ↓ LabelledArrays v1.10.2 ⇒ v1.9.0
  [10f19ff3] ↓ LayoutPointers v0.1.9 ⇒ v0.1.8
  [5078a376] ↓ LazyArrays v0.22.10 ⇒ v0.22.6
  [d7e5e226] ↓ LazyBandedMatrices v0.7.16 ⇒ v0.7.9
  [2d8b4e74] - LevyArea v1.0.0
  [bdcacae8] ↓ LoopVectorization v0.12.118 ⇒ v0.12.110
  [b2108857] - Lux v0.4.4
  [a3b82374] ↓ MatrixFactorizations v0.9.1 ⇒ v0.8.7
  [961ee093] + ModelingToolkit v8.14.0
  [f9640e96] + MultiScaleArrays v1.9.1
  [1dea7af3] ↓ OrdinaryDiffEq v6.14.2 ⇒ v5.71.1
  [65888b18] + ParameterizedFunctions v5.13.2
  [d236fae5] ↓ PreallocationTools v0.3.1 ⇒ v0.2.4
  [731186ca] ↓ RecursiveArrayTools v2.29.2 ⇒ v2.28.0
  [47a9eef4] ↓ SparseDiffTools v1.23.0 ⇒ v1.21.0
  [aedffcd0] ↓ Static v0.6.6 ⇒ v0.4.1
  [789caeaf] ↓ StochasticDiffEq v6.49.1 ⇒ v6.42.0
  [0796e94c] + Tokenize v0.5.24
  [98b73d46] + Trebuchet v0.2.1
  [3d5dd08c] ↓ VectorizationBase v0.21.36 ⇒ v0.21.33

```

I have no clue what is happening here. Trebuchet does not have any compat entries related to these packages [Trebuchet.jl/Project.toml at master · FluxML/Trebuchet.jl · GitHub](https://github.com/FluxML/Trebuchet.jl/blob/master/Project.toml)

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [June 10, 2022, 9:38am UTC](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551/5 "2022-06-10T09:38:50Z")

</div>

Did you add the master branch of Trebuchet as suggested in the README?

```julia
using Pkg
pkg"add Trebuchet#master"

```

?

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [June 10, 2022, 10:59am UTC](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551/6 "2022-06-10T10:59:07Z")

</div>

It probably forces OrdinaryDiffEq v5 via an old bound. It doesn’t need to though. @dhairyagandhi96 can we get that bumped?

---

<div class="post-metadata">

**Author:** ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Post date:** [June 11, 2022, 12:36pm UTC](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551/7 "2022-06-11T12:36:49Z")

</div>

> [@ufechner7](#):
>
> `add Trebuchet#master`

thank you - yes that worked indeed

---

<div class="post-metadata">

**Author:** ![dhairyagandhi96](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dhairyagandhi96/32/7589_2.png) [@dhairyagandhi96](https://discourse.julialang.org/u/dhairyagandhi96)\
**Post date:** [June 18, 2022, 8:31pm UTC](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551/8 "2022-06-18T20:31:21Z")

</div>

missed this. yes, we can bump trebuchet.jl

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [July 20, 2022, 12:24pm UTC](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551/9 "2022-07-20T12:24:40Z")

</div>

Done
