Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
The errors you’re encountering suggest that the compiler is being given options that are not valid for the architecture you’re targeting. Specifically, the options -mabi=apcs-gnu
, -mapcs
, -mno-sched-prolog
, and -msoft-float
are not recognized by the aarch64-buildroot-linux-gnu-gcc
compiler, which is meant for the AArch64 architecture (64-bit ARM).
Here are a few steps you can take to resolve these issues:
-
Check Compiler Flags: Ensure that your Makefile or any included files are not setting these invalid flags. These flags seem to be intended for older ARM architectures (like ARMv4 or ARMv5), not AArch64.
-
Correct Architecture: Make sure that the
ARCH
variable is set correctly. Since you’re using an AArch64 toolchain,ARCH
should be set toarm64
instead ofarm
. -
Toolchain Compatibility: Verify that the toolchain you are using is compatible with the target architecture. The
aarch64-buildroot-linux-gnu-gcc
toolchain is for 64-bit ARM, so ensure your project is intended for this architecture. -
Review Makefile: Double-check your Makefile and any included files for any hardcoded or default flags that might be causing these issues. Remove or replace them with appropriate flags for AArch64.
-
Buildroot Configuration: If you are using Buildroot, ensure that the configuration is set up correctly for your target architecture. You might need to reconfigure Buildroot to ensure it generates the correct toolchain and settings for your target.
By addressing these points, you should be able to resolve the errors and successfully compile your project.
Please, also check if these links can help you solve your problem: