错误如下:
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:108: scripts/dtc/dtc] Error 1
make[1]: *** [scripts/Makefile.build:425: scripts/dtc] Error 2
make: *** [Makefile:491: scripts] Error 2
修改 scripts/dtc/dtc-lexer.lex.c文件
vim scripts/dtc/dtc-lexer.lex.c
//注释改行代码
634 //YYLTYPE yylloc;
//保存退出
make clean
make -j4