Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekawahyu/0104fc572a5f247243263a9680876652 to your computer and use it in GitHub Desktop.
Save ekawahyu/0104fc572a5f247243263a9680876652 to your computer and use it in GitHub Desktop.

Issue Description

Rosetta, the x86_64 emulation layer on Apple Silcon doesn't seem to support an instruction the latest gcc-arm-embedded (11.x) needs. As the workaround, we install the previous known good version (10.3).

Workaround

On terminal, execute the following to install the last known good version (10.3):

$ brew tap --force homebrew/cask
$ cd $(brew --repo homebrew/cask)
$ git checkout d407663b8017a0a062c7fc0b929faf2e16abd1ff
$ HOMEBREW_NO_AUTO_UPDATE=1 brew reinstall gcc-arm-embedded
$ git checkout master

How to Search Specific Commit?

Detail description on how to search for specific package in Homebrew:

$ git log --all --grep='gcc-arm-embedded'

, and you will get something like this:

commit 27fd45f592f863f0bdda309462725c3d76bf6a74
Author: Alexander Ronald Altman <alexanderaltman@me.com>
Date:   Mon Feb 28 21:58:16 2022 -0800

    gcc-arm-embedded 11.2-2022.02 update (#119606)

    Also contains a new gcc-aarch64-embedded cask, with the same version.

commit d407663b8017a0a062c7fc0b929faf2e16abd1ff
Author: Alexander Ronald Altman <alexanderaltman@me.com>
Date:   Fri Oct 29 19:01:31 2021 -0700

    gcc-arm-embedded 10.3-2021.10 (#113479)

    * gcc-arm-embedded 10.3-2021.10

    * update livecheck

    Co-authored-by: Bevan Kay <email@bevankay.me>

commit 14d71189763491980454d4328277e69c3747af7e
Author: Alexander Ronald Altman <alexanderaltman@me.com>
Date:   Wed Sep 8 14:13:14 2021 -0700

    gcc-arm-embedded 10.3-2021.07,10.14.6 (#111103)

    Updated the livecheck too, to account for the new version format.

Commit number d407663b8017a0a062c7fc0b929faf2e16abd1ff is the one you need in this case for getting gcc-arm-embedded 10.3 installed.

References

https://forum.electro-smith.com/t/cant-make-project-on-mac-m1/2422 https://community.arm.com/support-forums/f/compilers-and-libraries-forum/52377/internal-compiler-errors-with-arm-none-eabi-gcc-11-2-2022-02-on-macs-with-apple-silicon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment