# Failure to precompile packages on ARM

**URL:** <https://discourse.julialang.org/t/failure-to-precompile-packages-on-arm/24974>\
**Category:** New to Julia\
**Tags:** question, package, images\
**Created:** [June 5, 2019, 5:48pm UTC](https://discourse.julialang.org/t/failure-to-precompile-packages-on-arm/24974 "2019-06-05T17:48:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco\_Andres\_Bastias](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marco_andres_bastias/32/8327_2.png) [@Marco\_Andres\_Bastias](https://discourse.julialang.org/u/Marco_Andres_Bastias)\
**Post date:** [June 5, 2019, 5:48pm UTC](https://discourse.julialang.org/t/failure-to-precompile-packages-on-arm/24974/1 "2019-06-05T17:48:18Z")

</div>

I want to use the julia program to process some images, but the image package does not respond. when i use:

```julia
julia> using Images
[Info: Precompiling Images [916415d5-f1e6-5110-898d-aaa5f9f070e0]
ERROR: could not load library "/home/debian/julia-1.0.4/lib/julia/sys.so"
/home/debian/julia-1.0.4/lib/julia/sys.so: failed to map segment from shared obj ect
ERROR: LoadError: IOError: write: broken pipe (EPIPE)
Stacktrace:
 [1] try_yieldto(::typeof(Base.ensure_rescheduled), ::Base.RefValue{Task}) at ./ event.jl:196
 [2] wait() at ./event.jl:255
 [3] uv_write(::Base.PipeEndpoint, ::Ptr{UInt8}, ::UInt32) at ./stream.jl:782
 [4] unsafe_write(::Base.PipeEndpoint, ::Ptr{UInt8}, ::UInt32) at ./stream.jl:83 0
 [5] unsafe_write at ./io.jl:225 [inlined]
 [6] macro expansion at ./gcutils.jl:87 [inlined]
 [7] write(::Pipe, ::String) at ./strings/io.jl:164
 [8] create_expr_cache(::String, ::String, ::Array{Pair{Base.PkgId,UInt64},1}, : :Base.UUID) at ./loading.jl:1119
 [9] compilecache(::Base.PkgId, ::String) at ./loading.jl:1194
 [10] _require(::Base.PkgId) at ./loading.jl:960
 [11] require(::Base.PkgId) at ./loading.jl:858
 [12] require(::Module, ::Symbol) at ./loading.jl:853
 [13] include at ./boot.jl:317 [inlined]
 [14] include_relative(::Module, ::String) at ./loading.jl:1044
 [15] include(::Module, ::String) at ./sysimg.jl:29
 [16] top-level scope at none:2
 [17] eval at ./boot.jl:319 [inlined]
 [18] eval(::Expr) at ./client.jl:393
 [19] top-level scope at ./none:3
in expression starting at /home/debian/.julia/packages/ColorVectorSpace/sRZSy/sr c/ColorVectorSpace.jl:5
ERROR: LoadError: Failed to precompile ColorVectorSpace [c3611d14-8923-5661-9e6a -0046d554d3a4] to /home/debian/.julia/compiled/v1.0/ColorVectorSpace/7uC4N.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1203
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853
 [6] include at ./boot.jl:317 [inlined]
 [7] include_relative(::Module, ::String) at ./loading.jl:1044
 [8] include(::Module, ::String) at ./sysimg.jl:29
 [9] top-level scope at none:2
 [10] eval at ./boot.jl:319 [inlined]
 [11] eval(::Expr) at ./client.jl:393
 [12] top-level scope at ./none:3
in expression starting at /home/debian/.julia/packages/Images/BEHlD/src/Images.j l:32
ERROR: Failed to precompile Images [916415d5-f1e6-5110-898d-aaa5f9f070e0] to /ho me/debian/.julia/compiled/v1.0/Images/H8Vxc.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1203
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853

```

I have searched the internet for solutions but I have not found anything that works. Any idea what could be the problem and how to solve it?

my version information is:

```julia
julia> versioninfo()
Julia Version 1.0.4
Commit 38e9fb7f80 (2019-05-16 03:38 UTC)
Platform Info:
  OS: Linux (arm-linux-gnueabihf)
  CPU: ARMv7 Processor rev 2 (v7l)
  WORD_SIZE: 32
  LIBM: libm
  LLVM: libLLVM-6.0.0 (ORCJIT, cortex-a8)

```

---

<div class="post-metadata">

**Author:** ![tlnagy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tlnagy/32/5815_2.png) [@tlnagy](https://discourse.julialang.org/u/tlnagy)\
**Post date:** [June 5, 2019, 6:51pm UTC](https://discourse.julialang.org/t/failure-to-precompile-packages-on-arm/24974/2 "2019-06-05T18:51:23Z")

</div>

Does running `] build Images` in the REPL work fine?

---

<div class="post-metadata">

**Author:** ![Marco\_Andres\_Bastias](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marco_andres_bastias/32/8327_2.png) [@Marco\_Andres\_Bastias](https://discourse.julialang.org/u/Marco_Andres_Bastias)\
**Post date:** [June 5, 2019, 6:58pm UTC](https://discourse.julialang.org/t/failure-to-precompile-packages-on-arm/24974/3 "2019-06-05T18:58:59Z")

</div>

you mean `Pkg.build("Images")`?  
If so, answer me:

```julia
  Building SpecialFunctions → `~/.julia/packages/SpecialFunctions/fvheQ/deps/build.log`
  Building Conda ───────────→ `~/.julia/packages/Conda/CpuvI/deps/build.log`
  Building FFTW ────────────→ `~/.julia/packages/FFTW/p7sLQ/deps/build.log`

```

but it still does not work `using Images`

and when i use:

```julia
build Images
ERROR: syntax: extra token "Images" after end of expression

```

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [June 5, 2019, 7:27pm UTC](https://discourse.julialang.org/t/failure-to-precompile-packages-on-arm/24974/4 "2019-06-05T19:27:21Z")

</div>

There seems to be something broken about your Julia. I notice you’re on ARM, which may not be as well-supported as other processors. Since I don’t think there’s anything Images-specific about this, I’ve changed the title of your post in hopes that you’ll get better answers.

---

<div class="post-metadata">

**Author:** ![Marco\_Andres\_Bastias](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marco_andres_bastias/32/8327_2.png) [@Marco\_Andres\_Bastias](https://discourse.julialang.org/u/Marco_Andres_Bastias)\
**Post date:** [June 5, 2019, 9:08pm UTC](https://discourse.julialang.org/t/failure-to-precompile-packages-on-arm/24974/5 "2019-06-05T21:08:34Z")

</div>

thanks for the observation. I still think that it should be a compatibility problem, anyway it would be great to be able to run julia on an ARM processor
