编译uboot出现 multiple definition of `yylloc‘ 问题
一、编译环境
| 环境 | 版本 |
|---|---|
| 操作系统 | Linux Mint 22 Wilma |
| 内核版本 | 6.8.0-44-generic |
| gcc 版本 | arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025 |
| uboot 版本 | 2020.01 |
二、报错信息
scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
三、解决办法
将scripts/dtc/dtc-parser.tab.c文件中定义yylloc变量的语句YYLTYPE yylloc;注释掉。
