C 如何解决此错误:LLVM错误:解析内联asm时出错

C 如何解决此错误:LLVM错误:解析内联asm时出错,c,linux,kernel,clang,llvm,C,Linux,Kernel,Clang,Llvm,我在生成过程中遇到以下错误: CC hal/mmu.o <inline asm>:1:2: error: instruction requires: armv6t2 WFI ^ LLVM ERROR: Error parsing inline asm {standard input}: Assembler messages: {standard input}: Warning: end of file not at end of a line; ne

我在生成过程中遇到以下错误:

CC hal/mmu.o
<inline asm>:1:2: error: instruction requires: armv6t2
        WFI
        ^
LLVM ERROR: Error parsing inline asm

{standard input}: Assembler messages:
{standard input}: Warning: end of file not at end of a line; newline inserted
{standard input}:588: Error: missing expression -- `bl'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
Makefile:115: recipe for target 'hal/mmu.o' failed
make[1]: *** [hal/mmu.o] Error 1

CC hal/mmu.o
:1:2:错误:指令要求:armv6t2
注射用水
^
LLVM错误:分析内联asm时出错
{标准输入}:汇编程序消息:
{标准输入}:警告:文件结尾不在行的末尾;换行符插入
{standard input}:588:错误:缺少表达式--`bl'
{标准输入}:错误:在文件末尾打开CFI;缺少.cfi_endproc指令
Makefile:115:目标'hal/mmu.o'的配方失败
生成[1]:***[hal/mmu.o]错误1

如何解决上述错误?

我猜您的处理器不支持您尝试使用的指令。谢谢。但你们不认为处理器在这里是无关紧要的吗。毕竟,我不是在处理器上运行构建的代码,我只是在编译它。我也可能会为不同的处理器编译(交叉编译)。我认为这与编译器问题有关,而不是处理器问题。不是吗?代码包含内联程序集。这是用汇编语言为特定处理器编写的代码,而不是用C语言编写的代码(C语言是通用的和可移植的)。因此,该程序只能针对特定处理器进行编译。我猜您的处理器不支持您尝试使用的指令。谢谢。但你们不认为处理器在这里是无关紧要的吗。毕竟,我不是在处理器上运行构建的代码,我只是在编译它。我也可能会为不同的处理器编译(交叉编译)。我认为这与编译器问题有关,而不是处理器问题。不是吗?代码包含内联程序集。这是用汇编语言为特定处理器编写的代码,而不是用C语言编写的代码(C语言是通用的和可移植的)。因此,只能为该特定处理器编译程序。