gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’ gcc: note: valid arguments to ‘-mabi=’ are: ms sysv gcc: error: unrecognized command line option ‘-mlittle-endian’ gcc: error: unrecognized command line option ‘-mno-thumb-interwork’ gcc: err
时间: 2023-12-19 14:07:21 浏览: 487
or: unrecognized command line option ‘-mno-long-calls’
这是编译器gcc在编译时出现的错误信息,其中包括了一些无法识别的编译选项参数。可能是因为你的编译器版本不支持这些选项参数,或者是你使用了错误的语法。
建议你检查你的编译器版本,查看其支持的选项参数,或者尝试使用其他合适的选项参数进行编译。
相关问题
aarch64-linux-gnu-gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
This error message indicates that the compiler is not recognizing the argument "-mabi=apcs-gnu". This could happen if the version of the compiler being used is outdated, or if the option is not supported by the compiler.
To resolve this issue, try updating to the latest version of the compiler, or use a different option that is supported by the compiler. You can also check the compiler documentation for more information on the supported options.
aarch64-linux-gnu-gcc: note: valid arguments to ‘-mabi=’ are: ilp32 lp64
These are options for the -mabi flag in the aarch64-linux-gnu-gcc compiler:
- ilp32: This stands for "integer long pointer 32-bit". It specifies that integer and long types should be 32 bits in size, and that pointers should also be 32 bits in size. This ABI is used for systems where memory is limited, such as embedded devices.
- lp64: This stands for "long pointer 64-bit". It specifies that integer types should be 32 bits in size, but long and pointer types should be 64 bits in size. This ABI is used for systems with larger amounts of memory, such as desktop computers and servers.
The note is simply informing the user that these are the only valid options for the -mabi flag, and that any other options will not be recognized by the compiler.
阅读全文
相关推荐

















