# Precompilation interrupted (bug?)

**URL:** <https://discourse.julialang.org/t/precompilation-interrupted-bug/115853>\
**Category:** General Usage\
**Tags:** package, precompilation\
**Created:** [June 19, 2024, 11:56am UTC](https://discourse.julialang.org/t/precompilation-interrupted-bug/115853 "2024-06-19T11:56:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [June 19, 2024, 11:56am UTC](https://discourse.julialang.org/t/precompilation-interrupted-bug/115853/1 "2024-06-19T11:56:28Z")

</div>

I started to see this consistent interruption of the precompilation stage whenever I install packages in fresh environments. For example, if I start a fresh environment and `] add GeoStats` on Julia v1.10.4, I get the following output:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/3/b/3bc7233aea628e8f2b699d71b1e7b37eab015f4c.png)

The prompt becomes available again, but not all packages are precompiled. When I try to use the package for the first time, the precompilation is restarted.

Anyone experiencing similar issues? Can you reproduce the issue with the package above?

---

<div class="post-metadata">

**Author:** ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Post date:** [June 20, 2024, 7:52am UTC](https://discourse.julialang.org/t/precompilation-interrupted-bug/115853/2 "2024-06-20T07:52:22Z")

</div>

Cannot reproduce on Linux:

```julia-repl
julia> import Pkg; Pkg.activate(;temp=true)
julia> Pkg.add("GeoStats")
# ...
        Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m`
Precompiling project...
  83 dependencies successfully precompiled in 68 seconds. 141 already precompiled.
  1 dependency had output during precompilation:
┌ TableTransforms
│ [pid 354816] waiting for IO to finish:
│ Handle type uv_handle_t->data
│ fs_event 0x226e8b0->0x73822ed3bdf0
│ timer 0x22b5430->0x73822ed3be20
│ This means that a package has started a background task or event source that has not finished running. For precompilation to complete successfully, the event source needs to be closed explicitly. See the developer documentation on fixing precompilation hangs for more help.
└  

julia> using GeoStats

julia> versioninfo()
Julia Version 1.10.4
Commit 48d4fd48430 (2024-06-04 10:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × AMD Ryzen 7 4800H with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver2)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)

```

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [June 20, 2024, 11:03am UTC](https://discourse.julialang.org/t/precompilation-interrupted-bug/115853/3 "2024-06-20T11:03:13Z")

</div>

Thank you for trying to reproduce the issue. I tried on a Windows machine.
