# ModelingToolkit takes forever to precompile on Windows 11

**URL:** <https://discourse.julialang.org/t/modelingtoolkit-takes-forever-to-precompile-on-windows-11/114492>\
**Category:** Package Management\
**Created:** [May 21, 2024, 7:08am UTC](https://discourse.julialang.org/t/modelingtoolkit-takes-forever-to-precompile-on-windows-11/114492 "2024-05-21T07:08:28Z")\
**Posts on this page:** 1\
**Showing post:** 92

<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:** [May 26, 2024, 2:03pm UTC](https://discourse.julialang.org/t/modelingtoolkit-takes-forever-to-precompile-on-windows-11/114492/92 "2024-05-26T14:03:55Z")

</div>

As an update, there was an issue in the linker that was causing this. [Set storage class of julia globals to dllimport on windows to avoid auto-import weirdness by gbaraldi · Pull Request #54572 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/54572) fixes the issue, and there will be a hotfix in Julia which which should follow as a Julia v1.10.4 ASAP.

Note that this is a Windows-only bug.

The linker bug is triggered seemingly based on the size of the image being compiled. There were a few changes that might’ve put us into this regime, in particular the new ODE defaulting system [Redesign default ODE solver to be type-grounded and lazy by oscardssmith · Pull Request #2184 · SciML/OrdinaryDiffEq.jl · GitHub](https://github.com/SciML/OrdinaryDiffEq.jl/pull/2184). For these changes, we’ve disabled them on Windows in the latest releases [Disable Default solver on windows by oscardssmith · Pull Request #2224 · SciML/OrdinaryDiffEq.jl · GitHub](https://github.com/SciML/OrdinaryDiffEq.jl/pull/2224). There isn’t all that much we can do to workaround the bug beyond this, but this should hopefully make it trigger for less people less often.

---

_[View the full topic](https://discourse.julialang.org/t/modelingtoolkit-takes-forever-to-precompile-on-windows-11/114492)._
