# Unsupported architecture 'aarch64' for macOS when adding Plots on Arm64 Linux

**URL:** <https://discourse.julialang.org/t/unsupported-architecture-aarch64-for-macos-when-adding-plots-on-arm64-linux/58134>\
**Category:** General Usage\
**Tags:** bug\
**Created:** [March 28, 2021, 7:31pm UTC](https://discourse.julialang.org/t/unsupported-architecture-aarch64-for-macos-when-adding-plots-on-arm64-linux/58134 "2021-03-28T19:31:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeHutch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mikehutch/32/23398_2.png) [@MikeHutch](https://discourse.julialang.org/u/MikeHutch)\
**Post date:** [March 28, 2021, 7:31pm UTC](https://discourse.julialang.org/t/unsupported-architecture-aarch64-for-macos-when-adding-plots-on-arm64-linux/58134/1 "2021-03-28T19:31:23Z")

</div>

I’ve build Julia 1.6.0 on my Raspberry Pi running 64bit Gentoo Linux. Everything appeared to be working fine until I tried to add Plots when I get an Unsupported architecture error, see below:

```julia
import Pkg; Pkg.add("Plots")
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
ERROR: ArgumentError: Unsupported architecture 'aarch64' for macOS
Stacktrace:
 [1] top-level scope
   @ REPL[3]:1

```

Can anyone suggest how to remove this error?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [March 28, 2021, 8:05pm UTC](https://discourse.julialang.org/t/unsupported-architecture-aarch64-for-macos-when-adding-plots-on-arm64-linux/58134/2 "2021-03-28T20:05:44Z")

</div>

Welcome! Sorry for the question, but are you sure you’re using Julia v1.6? That error shouldn’t occur with Julia v1.6, as far as I know. You can see the version of Julia you’re currently using with `versioninfo()`.

Also, could you please show the whole stacktrace, not just the first line?

---

<div class="post-metadata">

**Author:** ![MikeHutch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mikehutch/32/23398_2.png) [@MikeHutch](https://discourse.julialang.org/u/MikeHutch)\
**Post date:** [March 28, 2021, 9:33pm UTC](https://discourse.julialang.org/t/unsupported-architecture-aarch64-for-macos-when-adding-plots-on-arm64-linux/58134/3 "2021-03-28T21:33:36Z")

</div>

Thanks! There was more information the first time I tried to add Plots so I’ve deleted my ~/.Julia directory and tried it again, see below:

```julia
julia> import Pkg; Pkg.add("Plots")
    Cloning default registries into `~/.julia`
    Cloning registry from "https://github.com/JuliaRegistries/General.git"
      Added registry `General` to `~/.julia/registries/General`
  Resolving package versions...
  Installed Libiconv_jll ───────────────── v1.16.0+7
  Installed Xorg_libX11_jll ────────────── v1.6.9+4
  Installed Measures ───────────────────── v0.3.1
  Installed FFMPEG_jll ─────────────────── v4.3.1+4
  Installed Xorg_libXfixes_jll ─────────── v5.0.3+4
  Installed FixedPointNumbers ──────────── v0.8.4
  Installed MacroTools ─────────────────── v0.5.6
  Installed Plots ──────────────────────── v1.11.0
  Installed Adapt ──────────────────────── v3.2.0
  Installed Glib_jll ───────────────────── v2.59.0+4
  Installed Reexport ───────────────────── v1.0.0
  Installed Xorg_xcb_util_keysyms_jll ──── v0.4.0+1
  Installed Xorg_libXi_jll ─────────────── v1.7.10+4
  Installed LZO_jll ────────────────────── v2.10.0+3
  Installed TableTraits ────────────────── v1.0.0
  Installed StaticArrays ───────────────── v1.1.0
  Installed EarCut_jll ─────────────────── v2.1.5+1
  Installed xkbcommon_jll ──────────────── v0.9.1+5
  Installed Xorg_libXrandr_jll ─────────── v1.5.2+4
  Installed FFMPEG ─────────────────────── v0.4.0
  Installed LAME_jll ───────────────────── v3.100.0+3
  Installed Libtiff_jll ────────────────── v4.1.0+2
  Installed IteratorInterfaceExtensions ── v1.0.0
  Installed Cairo_jll ──────────────────── v1.16.0+6
  Installed Parsers ────────────────────── v1.1.0
  Installed HTTP ───────────────────────── v0.9.5
  Installed SortingAlgorithms ──────────── v0.3.1
  Installed Xorg_libXrender_jll ────────── v0.9.10+4
  Installed Xorg_xcb_util_jll ──────────── v0.4.0+1
  Installed Xorg_xcb_util_renderutil_jll ─ v0.3.9+1
  Installed Xorg_libpthread_stubs_jll ──── v0.1.0+3
  Installed Scratch ────────────────────── v1.0.3
  Installed Xorg_xcb_util_wm_jll ───────── v0.4.1+1
  Installed PCRE_jll ───────────────────── v8.42.0+4
  Installed GR_jll ─────────────────────── v0.56.1+0
  Installed Xorg_libXcursor_jll ────────── v1.2.0+4
  Installed StatsBase ──────────────────── v0.33.4
  Installed PlotUtils ──────────────────── v1.0.10
  Installed libpng_jll ─────────────────── v1.6.37+6
  Installed JLLWrappers ────────────────── v1.2.0
  Installed StructArrays ───────────────── v0.5.0
  Installed Xorg_libXinerama_jll ───────── v1.1.4+4
  Installed Expat_jll ──────────────────── v2.2.7+6
  Installed RecipesBase ────────────────── v1.1.1
  Installed Wayland_jll ────────────────── v1.17.0+4
  Installed Xorg_xkeyboard_config_jll ──── v2.27.0+4
  Installed Libffi_jll ─────────────────── v3.2.1+4
  Installed Opus_jll ───────────────────── v1.3.1+3
  Installed Latexify ───────────────────── v0.14.11
  Installed Xorg_libXdmcp_jll ──────────── v1.1.3+4
  Installed OrderedCollections ─────────── v1.4.0
  Installed Colors ─────────────────────── v0.12.6
  Installed Xorg_libXext_jll ───────────── v1.3.4+4
  Installed x265_jll ───────────────────── v3.0.0+3
  Installed libfdk_aac_jll ─────────────── v0.1.6+4
  Installed Wayland_protocols_jll ──────── v1.18.0+4
  Installed Xorg_libxcb_jll ────────────── v1.13.0+3
  Installed PlotThemes ─────────────────── v2.0.1
  Installed Libmount_jll ───────────────── v2.34.0+3
  Installed DataValueInterfaces ────────── v1.0.0
  Installed ColorSchemes ───────────────── v3.10.2
  Installed Libgcrypt_jll ──────────────── v1.8.5+4
  Installed OpenSSL_jll ────────────────── v1.1.1+6
  Installed Contour ────────────────────── v0.5.7
  Installed DataAPI ────────────────────── v1.6.0
  Installed Grisu ──────────────────────── v1.0.0
  Installed MbedTLS ────────────────────── v1.0.3
  Installed RecipesPipeline ────────────── v0.3.1
  Installed NaNMath ────────────────────── v0.3.5
  Installed XSLT_jll ───────────────────── v1.1.33+4
  Installed Ogg_jll ────────────────────── v1.3.4+2
  Installed Libglvnd_jll ───────────────── v1.3.0+3
  Installed Tables ─────────────────────── v1.4.1
  Installed JSON ───────────────────────── v0.21.1
  Installed Libuuid_jll ────────────────── v2.34.0+7
  Installed Showoff ────────────────────── v0.3.2
  Installed Pixman_jll ─────────────────── v0.40.0+0
  Installed Missings ───────────────────── v0.4.5
  Installed URIs ───────────────────────── v1.2.0
  Installed Compat ─────────────────────── v3.25.0
  Installed LaTeXStrings ───────────────── v1.2.1
  Installed Xorg_xtrans_jll ────────────── v1.4.0+3
  Installed Fontconfig_jll ─────────────── v2.13.1+14
  Installed libass_jll ─────────────────── v0.14.0+4
  Installed Zstd_jll ───────────────────── v1.4.8+0
  Installed Xorg_libxkbfile_jll ────────── v1.1.0+4
  Installed XML2_jll ───────────────────── v2.9.11+0
  Installed FriBidi_jll ────────────────── v1.0.5+6
  Installed Xorg_xcb_util_image_jll ────── v0.4.0+1
  Installed FreeType2_jll ──────────────── v2.10.1+5
  Installed GeometryBasics ─────────────── v0.3.11
  Installed Xorg_xkbcomp_jll ───────────── v1.4.2+4
  Installed GLFW_jll ───────────────────── v3.3.3+0
  Installed JpegTurbo_jll ──────────────── v2.0.1+3
  Installed Gettext_jll ────────────────── v0.20.1+7
  Installed x264_jll ───────────────────── v2020.7.14+2
  Installed ColorTypes ─────────────────── v0.10.12
  Installed IterTools ──────────────────── v1.3.0
  Installed DataStructures ─────────────── v0.18.9
  Installed Requires ───────────────────── v1.1.3
  Installed Qt_jll ─────────────────────── v5.15.2+3
  Installed LibVPX_jll ─────────────────── v1.9.0+1
  Installed libvorbis_jll ──────────────── v1.3.6+6
  Installed IniFile ────────────────────── v0.5.0
  Installed Xorg_libXau_jll ────────────── v1.0.9+4
  Installed Formatting ─────────────────── v0.4.2
  Installed Libgpg_error_jll ───────────── v1.36.0+3
  Installed Bzip2_jll ──────────────────── v1.0.6+5
  Installed GR ─────────────────────────── v0.55.0
Downloading artifact: Xorg_libX11
######################################################################## 100.0%##O#-# Downloading artifact: FFMPEG
######################################################################## 100.0%##O#-# Downloading artifact: Xorg_libXfixes
######################################################################## 100.0%##O#-# Downloading artifact: Libiconv
Downloading artifact: Glib
######################################################################## 100.0%##O#-# Downloading artifact: LZO
Downloading artifact: Xorg_xcb_util_keysyms
Downloading artifact: Xorg_libXi
######################################################################## 100.0%##O#-# Downloading artifact: EarCut
######################################################################## 100.0%##O#-# Downloading artifact: xkbcommon
######################################################################## 100.0%##O#-# Downloading artifact: Xorg_libXrandr
Downloading artifact: Cairo
######################################################################## 100.0%##O#-# Downloading artifact: Libtiff
######################################################################## 100.0%##O#-# Downloading artifact: LAME
Downloading artifact: Xorg_libXrender
######################################################################## 100.0%##O#-# Downloading artifact: Xorg_xcb_util
Downloading artifact: Xorg_xcb_util_renderutil
Downloading artifact: Xorg_libpthread_stubs
######################################################################## 100.0%##O#-# Downloading artifact: Xorg_xcb_util_wm
######################################################################## 100.0%##O=# # Downloading artifact: PCRE
######################################################################## 100.0%##O#-# Downloading artifact: GR
######################################################################## 100.0%##O#-# Downloading artifact: Xorg_libXcursor
######################################################################## 100.0%##O=# # Downloading artifact: libpng
######################################################################## 100.0%##O=# # Downloading artifact: Xorg_libXinerama
Downloading artifact: Expat
######################################################################## 100.0%##O#-# Downloading artifact: Xorg_xkeyboard_config
######################################################################## 100.0%##O#-# Downloading artifact: Wayland
######################################################################## 100.0%##O=# # Downloading artifact: Libffi
Downloading artifact: Opus
Downloading artifact: Xorg_libXdmcp
######################################################################## 100.0%##O#-# Downloading artifact: Xorg_libXext
######################################################################## 100.0%##O#-# Downloading artifact: x265
Downloading artifact: libfdk_aac
Downloading artifact: Wayland_protocols
Downloading artifact: Xorg_libxcb
######################################################################## 100.0%##O=# # Downloading artifact: Libmount
######################################################################## 100.0%##O=# # Downloading artifact: Libgcrypt
######################################################################## 100.0%##O#-# Downloading artifact: OpenSSL
######################################################################## 100.0%##O#-# Downloading artifact: Ogg
######################################################################## 100.0%##O#-# Downloading artifact: XSLT
######################################################################## 100.0%##O=# # Downloading artifact: Libglvnd
######################################################################## 100.0%##O=# # Downloading artifact: Libuuid
######################################################################## 100.0%##O=# # Downloading artifact: Pixman
Downloading artifact: Xorg_xtrans
Downloading artifact: Fontconfig
######################################################################## 100.0%##O#-# Downloading artifact: libass
######################################################################## 100.0%##O#-# Downloading artifact: Zstd
######################################################################## 100.0%##O#-# Downloading artifact: Xorg_libxkbfile
######################################################################## 100.0%##O=# # Downloading artifact: FriBidi
Downloading artifact: FreeType2
ERROR: ArgumentError: Unsupported architecture 'aarch64' for macOS
Stacktrace:
 [1] top-level scope
   @ REPL[1]:1

(@v1.6) pkg> add Plots
  Resolving package versions...
ERROR: ArgumentError: Unsupported architecture 'aarch64' for macOS
Stacktrace:
 [1] #add#27
   @ /var/tmp/portage/dev-lang/julia-1.6.0/work/julia-1.6.0/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:109 [inlined]
 [2] add(pkgs::Vector{Pkg.Types.PackageSpec})
   @ Pkg.API /var/tmp/portage/dev-lang/julia-1.6.0/work/julia-1.6.0/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:109

```

Does this suggest there’s a problem with the FreeType2 module? versioninfo() confirms it is 1.6.0, although strangely the CPU is not detected:

```julia
julia> versioninfo()
Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
  OS: Linux (aarch64-unknown-linux-gnu)
  CPU: unknown
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, cortex-a72)

```

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [March 28, 2021, 9:52pm UTC](https://discourse.julialang.org/t/unsupported-architecture-aarch64-for-macos-when-adding-plots-on-arm64-linux/58134/4 "2021-03-28T21:52:20Z")

</div>

> [@MikeHutch](#):
>
> Does this suggest there’s a problem with the FreeType2 module?

Yes, but the problem is that the error doesn’t make any sense to me: `FreeType2_jll` [`v2.10.1+5`](https://github.com/JuliaBinaryWrappers/FreeType2_jll.jl/blob/d2c4ce0181d127f07c708f4d814c22e7cc410843/Artifacts.toml) doesn’t reference the platform aarch64-apple-darwin anywhere. I have absolutely no idea where the error you’re getting comes from 😕 moreover, in v1.6.0 that platform shouldn’t trigger the error at all

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [March 28, 2021, 10:20pm UTC](https://discourse.julialang.org/t/unsupported-architecture-aarch64-for-macos-when-adding-plots-on-arm64-linux/58134/5 "2021-03-28T22:20:48Z")

</div>

I just installed Julia from scratch on an `aarch64-linux-gnu` system and installing `Plots.jl` worked flawless.

Sorry, I’d like to help you but I’m having an extremely hard time understanding why you’re getting that error. There are two things very wrong:

- that error shouldn’t even appear in Julia v1.6, not at all. It was an error that could appear until Julia v1.5.1
- even accepting that the error exists in Julia v1.6.0, I have no clue what could trigger it. Your output would seem to suggest `FreeType2_jll`, but it’s not possible

How did you install Julia?
