I have tried installing aarch64-none-elf on my raspberry pi 3B+ from the arm website when I extract it, I can't run the executable files in it.
Here's the error:
bash: ./aarch64-none-elf-gcc: cannot execute binary file: Exec format error
Is there any way to fix that error, or download it from another source.
file aarch64-none-elf-gcc
returns
aarch64-none-elf-gcc: cannot open `aarch64-none-elf-gcc' (No such file or directory)
file aarch64-none-elf-gcc
andfile $(which file)
(the last one is to demonstrate that you are, or are not, running a 64-bit OS).