-m64 Compilation Option
Symptom
Alarm information: gcc: error: unrecognized command line option '-m64'
Possible Cause
-m64 is an x86 64-bit application compilation option. The length of int is set to 32 bits, and the lengths of long and pointer are set to 64 bits to generate code for the AMD x86 64-bit architecture. However, the Arm64 platform does not support these settings.
Solution
Set the compilation option of the Arm64 platform to -mabi=lp64.
Parent topic: Compilation Script Porting Cases