# Segfault when using PackageCompiler on aarch64 on Julia 1.6.0 and up

**URL:** https://discourse.julialang.org/t/segfault-when-using-packagecompiler-on-aarch64-on-julia-1-6-0-and-up/60722
**Category:** General Usage
**Created:** [May 7, 2021, 2:34pm UTC](https://discourse.julialang.org/t/segfault-when-using-packagecompiler-on-aarch64-on-julia-1-6-0-and-up/60722 "2021-05-07T14:34:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sonicrules1234](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sonicrules1234/32/22938_2.png) [@sonicrules1234](https://discourse.julialang.org/u/sonicrules1234)
#### Post date: [May 7, 2021, 2:34pm UTC](https://discourse.julialang.org/t/segfault-when-using-packagecompiler-on-aarch64-on-julia-1-6-0-and-up/60722/1 "2021-05-07T14:34:33Z")

</div>

It worked just fine before upgrading to Julia 1.6.0. Now when I try to use compile\_app it gives a segfault part way through. It doesn’t crash, but I haven’t tried waiting long after the segfault.

```julia
[westly08:06~]$ julia -q --project
julia> using PackageCompiler

julia> create_app("EPUBCreate", "EPUBCreate-linux-aarch64-bin")
  0 dependencies successfully precompiled in 6 seconds (20 already precompiled)
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package
[ Info: PackageCompiler: creating base system image (incremental=false)...

signal (11): Segmentation fault
in expression starting at /home/westly/julia-1.6.1/share/julia/stdlib/v1.6/LinearAlgebra/src/matmul.jl:808
__aarch64_sync_cache_range at /workspace/srcdir/gcc-7.1.0/libgcc/config/aarch64/sync-cache.c:54
_ZN4llvm3sys6Memory26InvalidateInstructionCacheEPKvm at /home/westly/julia-1.6.1/bin/../lib/julia/libLLVM-11jl.so (unknown line)
Allocations: 87104104 (Pool: 87081079; Big: 23025); GC: 111

```

It’s always had that dependency error and worked fine before.

---

<div class="post-metadata">

### Author: ![notthetup](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/notthetup/32/31254_2.png) [@notthetup](https://discourse.julialang.org/u/notthetup)
#### Post date: [January 12, 2022, 5:15am UTC](https://discourse.julialang.org/t/segfault-when-using-packagecompiler-on-aarch64-on-julia-1-6-0-and-up/60722/2 "2022-01-12T05:15:38Z")

</div>

I’m seeing the same with Julia 1.7.x as well as nightly releases. Did you manage to work around this?

---

<div class="post-metadata">

### Author: ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)
#### Post date: [January 24, 2022, 7:19pm UTC](https://discourse.julialang.org/t/segfault-when-using-packagecompiler-on-aarch64-on-julia-1-6-0-and-up/60722/3 "2022-01-24T19:19:18Z")

</div>

Late reply, but on what specific AArch64 CPUs is this? I’ve noticed this only on NVIDIA ARM CPUs, and filed [https://github.com/JuliaLang/julia/issues/41852](https://github.com/JuliaLang/julia/issues/41852).

---

<div class="post-metadata">

### Author: ![notthetup](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/notthetup/32/31254_2.png) [@notthetup](https://discourse.julialang.org/u/notthetup)
#### Post date: [February 3, 2022, 10:04am UTC](https://discourse.julialang.org/t/segfault-when-using-packagecompiler-on-aarch64-on-julia-1-6-0-and-up/60722/4 "2022-02-03T10:04:48Z")

</div>

Yup. I’m seeing this on nVidia TX2 ARM CPU.

---

<div class="post-metadata">

### Author: ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)
#### Post date: [July 1, 2022, 8:25am UTC](https://discourse.julialang.org/t/segfault-when-using-packagecompiler-on-aarch64-on-julia-1-6-0-and-up/60722/5 "2022-07-01T08:25:52Z")

</div>

This appears to be fixed by [Enable JITLink on aarch64 linux. by sunho · Pull Request #45859 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/45859)
