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:
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?
1 Like
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?
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> 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> 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)
Yes, but the problem is that the error doesnβt make any sense to me: FreeType2_jll
v2.10.1+5
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
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?