解决方法: 1.打开scripts/dtc/dtc-lexer.lex.c_shipped 2.Ctrl+F搜索“YYLTYPE yylloc”,在前面加上extern。 3.Ctrl+S保存,退出。 4.重新编译。 5.编译成功。