从9.3.0版本升级到10.1.0版本后,编译出错,具体信息如下:
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x50): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: 错误:ld 返回 1
make[3]: *** [scripts/Makefile.host:127:scripts/dtc/dtc] 错误 1
make[2]: *** [kernel/xiaomi/msm8992/scripts/Makefile.build:455:scripts/dtc] 错误 2
make[2]: *** 正在等待未完成的任务....
HOSTLD scripts/mod/modpost
make[1]: *** [kernel/xiaomi/msm8992/Makefile:525:scripts] 错误 2
make: *** [Makefile:130: sub-make] Error 2
make: Leaving directory 'kernel/xiaomi/msm8992'
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1`
降级到9.3.0版本后,编译正常
来源:oschina
链接:https://my.oschina.net/u/222749/blog/4280628