# Precompilation of OrdinaryDiffEq fails

**URL:** <https://discourse.julialang.org/t/precompilation-of-ordinarydiffeq-fails/138036>\
**Category:** General Usage\
**Created:** [July 9, 2026, 2:36pm UTC](https://discourse.julialang.org/t/precompilation-of-ordinarydiffeq-fails/138036 "2026-07-09T14:36:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fritut08](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@fritut08](https://discourse.julialang.org/u/fritut08)\
**Post date:** [July 9, 2026, 2:36pm UTC](https://discourse.julialang.org/t/precompilation-of-ordinarydiffeq-fails/138036/1 "2026-07-09T14:36:32Z")

</div>

Hello,  
I just noticed that adding the OrdinaryDiffEq to Julia fails at the precompilation step. It worked yesterday. But today, I cannot get it to work. It is not an issue of my machine as I have tested this on multiple ones.

Steps to reproduce:

1. Delete Julia completely to make sure it is not a problem with my installation.
2. Delete the `.julia` folder.
3. Install Julia via `winget install --name Julia --id 9NJNWW8PVKMN -e -s msstore`(I am using Windows.)
4. Open Julia in terminal via `julia` command.
5. `]add OrdinaryDiffEq`

I get the following output:

```julia-auto
  ✗ OrdinaryDiffEqRosenbrock
  ✗ OrdinaryDiffEqDefault
  ✗ OrdinaryDiffEq
Precompiling packages finished.
  131 dependencies successfully precompiled in 338 seconds. 34 already precompiled.
  3 dependencies had output during precompilation:
┌ LinearSolve
│ Downloading artifact: MKL
└
┌ SciMLBase
│ ┌ Warning: Replacing docs for `SciMLBase.AlgorithmInterpretation :: Union{}` in module `SciMLBase.AlgorithmInterpretation`
│ └ @ Base.Docs docs\Docs.jl:249
└
┌ MKL_jll
│ Downloading artifact: IntelOpenMP
│ Downloading artifact: oneTBB
└
  3 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

```

The `err()` function outputs:

```julia-auto
ERROR: MethodError: objects of type Base.Precompilation.PkgPrecompileError are not callable
The object of type `Base.Precompilation.PkgPrecompileError` exists, but no method is defined for this combination of argument types when trying to treat it as a callable object.
Stacktrace:
 [1] top-level scope
   @ REPL[2]:1

```

Can anyone confirm this?

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 9, 2026, 3:24pm UTC](https://discourse.julialang.org/t/precompilation-of-ordinarydiffeq-fails/138036/2 "2026-07-09T15:24:59Z")

</div>

Can’t reproduce this on Julia 1.12 on Windows - what’s your `versioninfo()`?

Also note that `err` is not a function - you need to call `err` as the message says, not `err()`, the error you’re showing just comes from the fact that `err` is not callable, it’s the same as:

```julia-auto
ulia> "a"()
ERROR: MethodError: objects of type String are not callable

```

---

<div class="post-metadata">

**Author:** ![fritut08](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@fritut08](https://discourse.julialang.org/u/fritut08)\
**Post date:** [July 9, 2026, 3:42pm UTC](https://discourse.julialang.org/t/precompilation-of-ordinarydiffeq-fails/138036/3 "2026-07-09T15:42:01Z")

</div>

Hi, the problem solved itself for me. I tried the same steps as above again and now precompilation works. It seems to have been just a temporary hickup.

---

<div class="post-metadata">

**Author:** ![fritut08](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@fritut08](https://discourse.julialang.org/u/fritut08)\
**Post date:** [July 9, 2026, 3:43pm UTC](https://discourse.julialang.org/t/precompilation-of-ordinarydiffeq-fails/138036/4 "2026-07-09T15:43:37Z")

</div>

Another thread mentioning the same issue does not seem to be resolved yet, though:

```julia-auto
https://discourse.julialang.org/t/cant-install-differentialequations/138037/9

```

---

<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:** [July 9, 2026, 3:51pm UTC](https://discourse.julialang.org/t/precompilation-of-ordinarydiffeq-fails/138036/5 "2026-07-09T15:51:29Z")

</div>

Well, there are two possible reasons for this issue:

1. Something is wrong on the local computer
2. Something is wrong with the package ecosystem, which usually means some packages were updated and others not yet, which can lead to inconsistencies.

The first issue usually can be fixed by creating a local project as described [here](https://ufechner7.github.io/2022/08/16/julia-projects.html)

The second issue usually disappears if you try again later. Reporting it is nevertheless useful. Sometimes this line of code before launching Julia helps on Linux:

```julia-auto
export JULIA_PKG_SERVER_REGISTRY_PREFERENCE=eager

```

---

<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 9, 2026, 11:48pm UTC](https://discourse.julialang.org/t/precompilation-of-ordinarydiffeq-fails/138036/6 "2026-07-09T23:48:51Z")

</div>

There was a temporary issue with the registry solved with a retrocap.
