Seeking Help with gcc-arm-none-eabi Compiler Error

Hello everyone, I’m reaching out to the community for some guidance on an issue I’m encountering with the gcc-arm-none-eabi compiler. I recently installed the GNU Arm Embedded Toolchain on my Mac, specifically the version 9-2020-q2-update. Everything seemed to be working fine initially, as I was able to run the compiler and get the expected version information. However, when I attempted to compile a simple test file, I encountered an error that I can’t seem to resolve.

The error message I receive is:
plaintext
cc1: internal compiler error: Illegal instruction: 4
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See https://gcc.gnu.org/bugs/ for instructions.

I’ve tried various troubleshooting steps, including checking the compiler’s PATH configuration and ensuring that the necessary dependencies are correctly installed. I’ve also searched online for similar issues but haven’t found a solution that addresses my specific problem. Given that I’m relatively new to compiler setup and configuration, I’m hoping someone here might have encountered a similar issue and could offer some advice.

One thing I noticed is that the error occurs even when I use the -E switch, which suggests that the problem might be related to the preprocessor stage. I’m also curious if there are any known issues with this particular version of the compiler on macOS. If anyone has successfully resolved this error or has any insights into potential causes, I would greatly appreciate your input.

Thank you in advance for your help and support! I’m looking forward to hearing from you.