内核时报multiple definition of `yylloc‘ 错误】"/>
【ubuntu20.04 编译uboot、linux内核时报multiple definition of `yylloc‘ 错误】
这里写自定义目录标题
- 现象
- 原因
- 解决方案
- 安装gcc-9与g++-9
- gcc g++版本切换
- gcc版本验证
- 重新编译
现象
原因
gcc版本过高导致的
解决方案
使用低版本的gcc
安装gcc-9与g+±9
sudo apt install gcc-9 g++-9
gcc g++版本切换
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100
gcc版本验证
重新编译
编译成功
更多推荐
【ubuntu20.04 编译uboot、linux内核时报multiple definition of `yylloc‘ 错误】
发布评论