Unsupported architecture

I just updated to MacOS 10.15.7 and am having some registries trouble.
I try to add LinearAlgebra (tested with other basic pkgs too) and receive the following error.
Any idea what might be causing this and how to fix?
I rm -rf the registries director and retried with no luck.

Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
  Installed Zlib_jll ─ v1.2.11+19
ERROR: LoadError: ArgumentError: Unsupported architecture 'aarch64' for macOS
Stacktrace:
 [1] MacOS at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/BinaryPlatforms.jl:144 [inlined]
 [2] unpack_platform(::Dict{String,Any}, ::String, ::String) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Artifacts.jl:429
 [3] (::Pkg.Artifacts.var"#21#22"{String,String})(::Dict{String,Any}) at ./none:0
 [4] iterate at ./generator.jl:47 [inlined]
 [5] Dict{Pkg.BinaryPlatforms.Platform,Dict{String,Any}}(::Base.Generator{Array{Dict{String,Any},1},Pkg.Artifacts.var"#21#22"{String,String}}) at ./dict.jl:102
 [6] artifact_meta(::String, ::Dict{String,Any}, ::String; platform::Pkg.BinaryPlatforms.Platform) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Artifacts.jl:553
 [7] ensure_all_artifacts_installed(::String; platform::Pkg.BinaryPlatforms.Platform, pkg_uuid::Nothing, include_lazy::Bool, verbose::Bool, quiet_download::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Artifacts.jl:951
 [8] download_artifacts(::Pkg.Types.Context, ::Array{String,1}; platform::Pkg.BinaryPlatforms.MacOS, verbose::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:663
 [9] download_artifacts(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; platform::Pkg.BinaryPlatforms.MacOS, verbose::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:642
 [10] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.MacOS) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1141
 [11] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.MacOS, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:189
 [12] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:140
 [13] #add#21 at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67 [inlined]
 [14] add at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67 [inlined]
 [15] #add#20 at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:66 [inlined]
 [16] add at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:66 [inlined]
 [17] add(::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:65
 [18] add(::String) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:65
 [19] top-level scope at /Users/myu/.julia/config/startup.jl:2
 [20] include(::Function, ::Module, ::String) at ./Base.jl:380
 [21] include at ./Base.jl:368 [inlined]
 [22] include_ifexists at ./client.jl:213 [inlined]
 [23] load_julia_startup() at ./client.jl:328
 [24] exec_options(::Base.JLOptions) at ./client.jl:267
 [25] _start() at ./client.jl:506
1 Like

I also see the same error today.
It might be related to the experimental platform commit
@staticfloat Can you have a look into this issue?

I just got the same error too! (Julia v1.5.0)

me too (Julia 1.5.0)
It really looks like it’s related to Zlib_jll as when I remove everything that depends on it, the error goes away.

Same mistake on install Flux

The new Zlib_jll release has been reverted, please pkg> update and try again.

1 Like

Same error when install DrWatson.

(@v1.5) pkg> add DrWatson
   Updating registry at `~/.julia/registries/General`
######################################################################## 100.0%
  Resolving package versions...
  Installed Zstd_jll ────────────────── v1.4.5+2
  Installed ghr_jll ─────────────────── v0.13.0+1
  Installed Libgcrypt_jll ───────────── v1.8.5+4
  Installed Glib_jll ────────────────── v2.59.0+4
  Installed Xorg_libXext_jll ────────── v1.3.4+4
  Installed Libmount_jll ────────────── v2.34.0+3
  Installed Xorg_libX11_jll ─────────── v1.6.9+4
  Installed DrWatson ────────────────── v1.16.1
  Installed OpenSpecFun_jll ─────────── v0.5.3+4
  Installed Libglvnd_jll ────────────── v1.3.0+3
  Installed Libuuid_jll ─────────────── v2.34.0+7
  Installed Xorg_xtrans_jll ─────────── v1.4.0+3
  Installed Xorg_libXrandr_jll ──────── v1.5.2+4
  Installed ZeroMQ_jll ──────────────── v4.3.2+5
  Installed Xorg_libXdmcp_jll ───────── v1.1.3+4
  Installed OpenBLAS_jll ────────────── v0.3.10+1
  Installed MPFR_jll ────────────────── v4.0.2+4
  Installed XML2_jll ────────────────── v2.9.10+3
  Installed XSLT_jll ────────────────── v1.1.33+4
  Installed Cairo_jll ───────────────── v1.16.0+6
  Installed Libffi_jll ──────────────── v3.2.1+4
  Installed Xorg_libXinerama_jll ────── v1.1.4+4
  Installed Pixman_jll ──────────────── v0.38.4+5
  Installed Xorg_libpthread_stubs_jll ─ v0.1.0+3
  Installed Libiconv_jll ────────────── v1.16.0+7
  Installed Xorg_libXrender_jll ─────── v0.9.10+4
  Installed Libgpg_error_jll ────────── v1.36.0+3
  Installed FFTW_jll ────────────────── v3.3.9+6
  Installed PCRE_jll ────────────────── v8.42.0+4
  Installed LZO_jll ─────────────────── v2.10.0+3
  Installed Xorg_libXi_jll ──────────── v1.7.10+4
  Installed Xorg_libXfixes_jll ──────── v5.0.3+4
  Installed Libtiff_jll ─────────────── v4.1.0+2
  Installed Expat_jll ───────────────── v2.2.7+6
  Installed JpegTurbo_jll ───────────── v2.0.1+3
  Installed Xorg_libXau_jll ─────────── v1.0.9+4
  Installed Xorg_libxcb_jll ─────────── v1.13.0+3
  Installed Xorg_libXcursor_jll ─────── v1.2.0+4
  Installed Gettext_jll ─────────────── v0.20.1+7
  Installed Fontconfig_jll ──────────── v2.13.1+14
  Installed Zlib_jll ────────────────── v1.2.11+18
  Installed GMP_jll ─────────────────── v6.1.2+7
Downloading artifact: ghr
Downloading artifact: ZeroMQ
ERROR: ArgumentError: Unsupported architecture 'aarch64' for macOS

Run update again does not help.

(@v1.5) pkg> update
   Updating registry at `~/.julia/registries/General`
ERROR: ArgumentError: Unsupported architecture 'aarch64' for macOS

Resolve cmd also reports error:

(@v1.5) pkg> resolve
ERROR: ArgumentError: Unsupported architecture 'aarch64' for macOS

Yes, there are other packages that need reverting, those are currently in-process here: https://github.com/JuliaRegistries/General/pull/23433

Once that is merged, update and try again!

5 Likes

I don’t understand why I see this when I am on Windows? :slight_smile:

Kind regards

Have you done a Pkg.update() recently? The problematic commit should have been reverted.

I’m also on MacOS 10.15.7 and am having this issue.

@staticfloat I get the error when I run Pkg.update(), so I can’t use that to solve it

(@v1.4) pkg> update
Updating registry at ~/.julia/registries/General
Updating git-repo https://github.com/JuliaRegistries/General.git
ERROR: ArgumentError: Unsupported architecture β€˜aarch64’ for macOS
Stacktrace:
[1] MacOS at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Pkg/src/BinaryPlatforms.jl:216 [inlined]
[2] unpack_platform(::Dict{String,Any}, ::String, ::String) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Artifacts.jl:429
[3] (::Pkg.Artifacts.var"#21#22"{String,String})(::Dict{String,Any}) at ./none:0
etc…

1 Like

Can you please give me the following information:

$ cd ~/.julia/registries/General/
$ git log -1
commit 3d71c93e612c37d1485dacc89b5a3e86726ddd05 (HEAD -> master, origin/master)
Author: Registrator <ci@juliacomputing.com>
Date:   Fri Oct 23 22:08:59 2020 +0530

    New version: RuntimeGeneratedFunctions v0.4.1 (#23547)
    
    UUID: 7e49a35a-f44a-4d26-94aa-eba1b4ca6b47
    Repo: https://github.com/SciML/RuntimeGeneratedFunctions.jl.git
    Tree: 55b38c4af78ea3b81b15fb6734e761bca265b1c6
    
    Registrator tree SHA: e934b8c55381f28735124f23e8f7e96d09b20416
pkg> status
Status `~/.julia/environments/v1.5/Project.toml`
  [12aac903] BinaryBuilder v0.3.0 `~/.julia/dev/BinaryBuilder`
  [7f725544] BinaryBuilderBase v0.5.0 `~/.julia/dev/BinaryBuilderBase`
...
  [83775a58] Zlib_jll v1.2.11+19 `~/.julia/dev/Zlib_jll`
C:\Users\Jeremie\.julia\registries\General>git log -1
commit d690558fb1f8740d46a1bd18758ccbcfd0846e9e (HEAD -> master, origin/master)
Author: Registrator <ci@juliacomputing.com>
Date:   Sat Oct 24 00:56:52 2020 +0530

    New version: MultivariateMoments v0.3.3 (#23552)

    UUID: f4abf1af-0426-5881-a0da-e2f168889b5e
    Repo: https://github.com/JuliaAlgebra/MultivariateMoments.jl.git
    Tree: 534a1feb8416b10f4991bd8c3107cdae47748e15

    Registrator tree SHA: e934b8c55381f28735124f23e8f7e96d09b20416
(@v1.5) pkg> st
Status `C:\Users\Jeremie\.julia\environments\v1.5\Project.toml`
  [1c724243] AWSS3 v0.7.2
  [c52e3926] Atom v0.12.24
  [fbb218c0] BSON v0.2.6
  [6e4b80f9] BenchmarkTools v0.5.0
  [336ed68f] CSV v0.7.7
  [052768ef] CUDA v2.0.2
  [f6006082] EvoTrees v0.5.1
  [c43c736e] Genie v1.3.0
  [e5e0dc1b] Juno v0.8.4
  [91a5bcdd] Plots v1.6.8
  [6f49c342] RCall v0.13.9
  [295af30f] Revise v3.1.6
  [90137ffa] StaticArrays v0.12.4
  [2913bbd2] StatsBase v0.33.1
  [fd094767] Suppressor v0.2.0
  [f269a46b] TimeZones v1.4.0
  [009559a3] XGBoost v1.1.1

(@v1.5) pkg>

That’s on Windows, same issue on Ubuntu machine.

commit 2f9c99095867c91d5dd7503ea94c285f6a6727ec (HEAD β†’ master, origin/master)
Author: Registrator ci@juliacomputing.com
Date: Sat Oct 24 01:08:01 2020 +0530

New version: Unfolding v0.1.3 (#23554)

UUID: c5d2ca1b-4127-462e-b5fa-7f6e5ca16f83
Repo: https://github.com/rmcaixeta/Unfolding.jl.git
Tree: 210642ed60bbabc353bde5413f7257bfa9005ffb

Registrator tree SHA: e934b8c55381f28735124f23e8f7e96d09b20416

pkg> status
Project projectname v0.1.0
Status ~/projectDIR//Project.toml
[336ed68f] CSV v0.7.7
[19ecbf4d] Codecs v0.5.0
[a93c6f00] DataFrames v0.21.7
[7806a523] DecisionTree v0.10.9
[31c24e10] Distributions v0.23.10
[c43c736e] Genie v1.1.0
[0ef565a4] Geodesy v0.5.0
[f67ccb44] HDF5 v0.13.5
[cd3eb016] HTTP v0.8.17
[f7bf1975] Impute v0.1.1
[4138dd39] JLD v0.10.0
[682c06a0] JSON v0.21.0
[7d188eb4] JSONSchema v0.3.2
[e6f89c97] LoggingExtras v0.4.2
[295af30f] Revise v2.7.4
[30578b45] URIParser v0.4.1
[ddb6d928] YAML v0.4.2
[ade2ca70] Dates
[56ddb016] Logging
[44cfe95a] Pkg
[9a3f8284] Random
[6462fe0b] Sockets
[10745b16] Statistics

It appears a new package version snuck in that broke things again. We’ve since yanked that version; please now Pkg.update() and try again.

3 Likes

Works for me now! Thanks!

1 Like

Everything works now. Thanks!