I found that recompiling the compiler using the instructions provided in the "How to build the toolchain from sources" of the 11.2 release notes resolved the Illegal instruction error. I assume when the pre-packaged GCC was built it was targeting a newer x86_64 architecture than your processor (as was the case in my case).
This may be related to these posts: /bugs.launchpad .net/gcc- arm-embedded/ +bug/1970028 /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 /msg709750. html
1) https:/
2) https:/
3) https://<email address hidden>
I found that recompiling the compiler using the instructions provided in the "How to build the toolchain from sources" of the 11.2 release notes resolved the Illegal instruction error. I assume when the pre-packaged GCC was built it was targeting a newer x86_64 architecture than your processor (as was the case in my case).