We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I'm trying to learn arm development with my laptop, which is hosted a x86_64 OS. I downloaded arm gcc toolchain x86_64 version.
But when I compile, it throws me an error:
./gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gcc -Wall -O2 -ffreestanding -nostdinc -nostdlib -nostartfiles -c boot.S -o boot.o aarch64-none-elf-gcc: fatal error: cannot execute '/home/joey/Projects/pi/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf/bin/../lib/gcc/aarch64-none-elf/11.2.1/../../../../aarch64-none-elf/bin/as': execv: Exec format error compilation terminated.
`file` gcc gives me:
./gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=6062e5a5acafaae05ce5896fe9c3632adc069589, not stripped
uname -m x86_64
can someone help me? I don't think it relate code, because I tried `hello world` and it just simply not working.
Could you run file on /home/joey/Projects/pi/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf/bin/../lib/gcc/aarch64-none-elf/11.2.1/../../../../aarch64-none-elf/bin/as instead?