I removed DifferentialEquations and then precompiled. Everything worked fine. But then I tried installing it again after gc and now I am getting same *.dll errors for things from SciMLBase, LinearSolve, NonLinearSolveBase, DiffEqBase, OrdinaryDiffEq just like when I installed them for the first time.
Here is the error report:
julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:
DifferentialEquations
Failed to precompile DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa] to "C:\\Users\\adity\\.julia\\compiled\\v1.12\\DifferentialEquations\\jl_6EF0.tmp".
ERROR: LoadError: Error opening package file C:\Users\adity\.julia\compiled\v1.12\DiffEqBaseSparseArraysExt\0NGOQ_oTCNx.dll: An Application Control policy has blocked this file.
Stacktrace:
[1] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}; register::Bool)
@ Base .\loading.jl:1300
[2] _include_from_serialized
@ .\loading.jl:1276 [inlined]
[3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
@ Base .\loading.jl:2117
[4] __require_prelocked(pkg::Base.PkgId, env::Nothing)
@ Base .\loading.jl:2629
[5] _require_prelocked(uuidkey::Base.PkgId, env::Nothing)
@ Base .\loading.jl:2495
[6] _require_prelocked(uuidkey::Base.PkgId)
@ Base .\loading.jl:2489
[7] run_extension_callbacks(extid::Base.ExtensionId)
@ Base .\loading.jl:1609
[8] run_extension_callbacks(pkgid::Base.PkgId)
@ Base .\loading.jl:1646
[9] run_package_callbacks(modkey::Base.PkgId)
@ Base .\loading.jl:1462
[10] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
@ Base .\loading.jl:2136
[11] _require_search_from_serialized
@ .\loading.jl:2011 [inlined]
[12] __require_prelocked(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:2629
[13] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:2495
[14] macro expansion
@ .\loading.jl:2423 [inlined]
[15] macro expansion
@ .\lock.jl:376 [inlined]
[16] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:2388
[17] require(into::Module, mod::Symbol)
@ Base .\loading.jl:2364
[18] top-level scope
@ C:\Users\adity\.julia\packages\OrdinaryDiffEqRosenbrock\V69LJ\src\OrdinaryDiffEqRosenbrock.jl:28
[19] include(mod::Module, _path::String)
@ Base .\Base.jl:306
[20] 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:3028
[21] top-level scope
@ stdin:5
[22] eval(m::Module, e::Any)
@ Core .\boot.jl:489
[23] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
@ Base .\loading.jl:2874
[24] include_string
@ .\loading.jl:2884 [inlined]
[25] exec_options(opts::Base.JLOptions)
@ Base .\client.jl:315
[26] _start()
@ Base .\client.jl:550
in expression starting at C:\Users\adity\.julia\packages\OrdinaryDiffEqRosenbrock\V69LJ\src\OrdinaryDiffEqRosenbrock.jl:1
in expression starting at stdin:5
ERROR: LoadError: Failed to precompile OrdinaryDiffEqRosenbrock [43230ef6-c299-4910-a778-202eb28ce4ce] to "C:\\Users\\adity\\.julia\\compiled\\v1.12\\OrdinaryDiffEqRosenbrock\\jl_75D9.tmp".
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}, loadable_exts::Nothing)
@ Base .\loading.jl:3315
[3] (::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId, String, Dict{String, Int64}})()
@ Base .\loading.jl:2683
[4] mkpidlock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId, String, Dict{String, Int64}}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile C:\Users\adity\.julia\juliaup\julia-1.12.6+0.x64.w64.mingw32\share\julia\stdlib\v1.12\FileWatching\src\pidfile.jl:96
[5] #mkpidlock#7
@ C:\Users\adity\.julia\juliaup\julia-1.12.6+0.x64.w64.mingw32\share\julia\stdlib\v1.12\FileWatching\src\pidfile.jl:91 [inlined]
[6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
@ FileWatching.Pidfile C:\Users\adity\.julia\juliaup\julia-1.12.6+0.x64.w64.mingw32\share\julia\stdlib\v1.12\FileWatching\src\pidfile.jl:117
[7] #invokelatest_gr#232
@ .\reflection.jl:1297 [inlined]
[8] invokelatest_gr
@ .\reflection.jl:1289 [inlined]
[9] maybe_cachefile_lock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId, String, Dict{String, Int64}}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base .\loading.jl:3886
[10] maybe_cachefile_lock
@ .\loading.jl:3883 [inlined]
[11] __require_prelocked(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:2669
[12] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:2495
[13] macro expansion
@ .\loading.jl:2423 [inlined]
[14] macro expansion
@ .\lock.jl:376 [inlined]
[15] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:2388
[16] require(into::Module, mod::Symbol)
@ Base .\loading.jl:2364
[17] top-level scope
@ C:\Users\adity\.julia\packages\OrdinaryDiffEq\S8I8e\src\OrdinaryDiffEq.jl:14
[18] include(mod::Module, _path::String)
@ Base .\Base.jl:306
[19] 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:3028
[20] top-level scope
@ stdin:5
[21] eval(m::Module, e::Any)
@ Core .\boot.jl:489
[22] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
@ Base .\loading.jl:2874
[23] include_string
@ .\loading.jl:2884 [inlined]
[24] exec_options(opts::Base.JLOptions)
@ Base .\client.jl:315
[25] _start()
@ Base .\client.jl:550
in expression starting at C:\Users\adity\.julia\packages\OrdinaryDiffEq\S8I8e\src\OrdinaryDiffEq.jl:1
in expression starting at stdin:5
ERROR: LoadError: Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to "C:\\Users\\adity\\.julia\\compiled\\v1.12\\OrdinaryDiffEq\\jl_70F7.tmp".
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}, loadable_exts::Nothing)
@ Base .\loading.jl:3315
[3] (::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId, String, Dict{String, Int64}})()
@ Base .\loading.jl:2683
[4] mkpidlock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId, String, Dict{String, Int64}}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile C:\Users\adity\.julia\juliaup\julia-1.12.6+0.x64.w64.mingw32\share\julia\stdlib\v1.12\FileWatching\src\pidfile.jl:96
[5] #mkpidlock#7
@ C:\Users\adity\.julia\juliaup\julia-1.12.6+0.x64.w64.mingw32\share\julia\stdlib\v1.12\FileWatching\src\pidfile.jl:91 [inlined]
[6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
@ FileWatching.Pidfile C:\Users\adity\.julia\juliaup\julia-1.12.6+0.x64.w64.mingw32\share\julia\stdlib\v1.12\FileWatching\src\pidfile.jl:117
[7] #invokelatest_gr#232
@ .\reflection.jl:1297 [inlined]
[8] invokelatest_gr
@ .\reflection.jl:1289 [inlined]
[9] maybe_cachefile_lock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId, String, Dict{String, Int64}}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base .\loading.jl:3886
[10] maybe_cachefile_lock
@ .\loading.jl:3883 [inlined]
[11] __require_prelocked(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:2669
[12] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:2495
[13] macro expansion
@ .\loading.jl:2423 [inlined]
[14] macro expansion
@ .\lock.jl:376 [inlined]
[15] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:2388
[16] require(into::Module, mod::Symbol)
@ Base .\loading.jl:2364
[17] top-level scope
@ C:\Users\adity\.julia\packages\DifferentialEquations\vziP9\src\DifferentialEquations.jl:5
[18] include(mod::Module, _path::String)
@ Base .\Base.jl:306
[19] 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:3028
[20] top-level scope
@ stdin:5
[21] eval(m::Module, e::Any)
@ Core .\boot.jl:489
[22] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
@ Base .\loading.jl:2874
[23] include_string
@ .\loading.jl:2884 [inlined]
[24] exec_options(opts::Base.JLOptions)
@ Base .\client.jl:315
[25] _start()
@ Base .\client.jl:550
in expression starting at C:\Users\adity\.julia\packages\DifferentialEquations\vziP9\src\DifferentialEquations.jl:1
in expression starting at stdin:
This is what I got after re-installing:
Precompiling packages ββββββββββββββββββββββββββββββββββββββββ 70/70
β PreallocationTools β PreallocationToolsEnzymeCoreExt
β SciMLBase
β SciMLBase β SciMLBaseDifferentiationInterfaceExt
β SciMLBase β SciMLBaseForwardDiffExt
β SciMLBase β SciMLBaseDistributionsExt
β SciMLBase β SciMLBaseStaticArraysExt
β SciMLBase β SciMLBaseChainRulesCoreExt
β SciMLBase β SciMLBaseMeasurementsExt
β LinearSolve
β SciMLJacobianOperators
β LineSearch
β NonlinearSolveBase
β LinearSolve β LinearSolveChainRulesCoreExt
β LinearSolve β LinearSolveIterativeSolversExt
β LinearSolve β LinearSolveEnzymeExt
β PreallocationTools β PreallocationToolsEnzymeCoreExt
β SciMLBase
β SciMLBase β SciMLBaseDifferentiationInterfaceExt
β SciMLBase β SciMLBaseForwardDiffExt
β SciMLBase β SciMLBaseDistributionsExt
β SciMLBase β SciMLBaseStaticArraysExt
β SciMLBase β SciMLBaseChainRulesCoreExt
β SciMLBase β SciMLBaseMeasurementsExt
β LinearSolve
β SciMLJacobianOperators
β LineSearch
β NonlinearSolveBase
β LinearSolve β LinearSolveChainRulesCoreExt
β LinearSolve β LinearSolveIterativeSolversExt
β LinearSolve β LinearSolveEnzymeExt
β LinearSolve β LinearSolveArpackExt
β LinearSolve β LinearSolveArnoldiMethodExt
β LinearSolve β LinearSolveForwardDiffExt
β LinearSolve β LinearSolveKrylovKitExt
β NonlinearSolveBase β NonlinearSolveBaseSparseMatrixColoringsExt
β NonlinearSolveBase β NonlinearSolveBaseForwardDiffExt
β NonlinearSolveBase β NonlinearSolveBaseChainRulesCoreExt
β NonlinearSolveBase β NonlinearSolveBaseSparseArraysExt
β NonlinearSolveBase β NonlinearSolveBaseLinearSolveExt
β BracketingNonlinearSolve
β NonlinearSolveBase β NonlinearSolveBaseLineSearchExt
β BracketingNonlinearSolve β BracketingNonlinearSolveForwardDiffExt
β DiffEqBase
β NonlinearSolveSpectralMethods
β BracketingNonlinearSolve β BracketingNonlinearSolveChainRulesCoreExt
β SimpleNonlinearSolve
β NonlinearSolveSpectralMethods β NonlinearSolveSpectralMethodsForwardDiffExt
β DiffEqBase β DiffEqBaseChainRulesCoreExt
β DiffEqBase β DiffEqBaseForwardDiffExt
β DiffEqBase β DiffEqBaseMeasurementsExt
β NonlinearSolveFirstOrder
β SimpleNonlinearSolve β SimpleNonlinearSolveChainRulesCoreExt
β OrdinaryDiffEqDifferentiation
β NonlinearSolve
β OrdinaryDiffEqDifferentiation β OrdinaryDiffEqDifferentiationSparseArraysExt
β OrdinaryDiffEqRosenbrock
β OrdinaryDiffEqNonlinearSolve
β OrdinaryDiffEqSDIRK
β OrdinaryDiffEqBDF
β OrdinaryDiffEqDefault
β OrdinaryDiffEq
β DifferentialEquations
Precompiling packages finished.
23 dependencies successfully precompiled in 437 seconds. 469 already precompiled.
47 dependencies errored.