# StackOverflowError() while compiling a package with PackageCompiler.jl

**URL:** <https://discourse.julialang.org/t/stackoverflowerror-while-compiling-a-package-with-packagecompiler-jl/73571>\
**Category:** General Usage\
**Tags:** package-compiler\
**Created:** [December 24, 2021, 3:02am UTC](https://discourse.julialang.org/t/stackoverflowerror-while-compiling-a-package-with-packagecompiler-jl/73571 "2021-12-24T03:02:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guilhermebodin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/guilhermebodin/32/6982_2.png) [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Post date:** [December 24, 2021, 3:02am UTC](https://discourse.julialang.org/t/stackoverflowerror-while-compiling-a-package-with-packagecompiler-jl/73571/1 "2021-12-24T03:02:49Z")

</div>

Hello, I am trying to compile a private package and got this error

```julia
StackOverflowError()
_ZNK4llvm5Value20stripInBoundsOffsetsENS_12function_refIFvPKS0_EEE at C:\Users\guilhermebodin\AppData\Local\Programs\Julia-1.6.4\bin\LLVM.dll (unknown line)

```

Does anybody have an idea where the issue might be to compile the package.

The precompilation\_execution\_file runs with no problem.

---

<div class="post-metadata">

**Author:** ![anon56330260](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anon56330260](https://discourse.julialang.org/u/anon56330260)\
**Post date:** [December 24, 2021, 7:02am UTC](https://discourse.julialang.org/t/stackoverflowerror-while-compiling-a-package-with-packagecompiler-jl/73571/2 "2021-12-24T07:02:24Z")

</div>

Is this the full log? It contains few information and it’s hard to draw any useful conclusion. Maybe it’s related to this issue [https://github.com/JuliaLang/julia/issues/43436](https://github.com/JuliaLang/julia/issues/43436). Also see my comment there. I notice that you are using Julia 1.6.4. Can you try a newer Julia (Julia 1.7)? It seems that Julia 1.7 has a much longer and detailed stack trace than Julia 1.6.
