1 GCC版本过高
1.1 明显特征
Makefile:416: *** mixed implicit and normal rules: deprecated syntax
Makefile:1449: *** mixed implicit and normal rules: deprecated syntax
make: *** No rule to make target ‘s3c2410_defconfig’。 停止。
1.2 解决方法
将Makefile第416行的:
config %config: scripts_basic outputmakefile FORCE
修改为:
%config: scripts_basic outputmakefile FORCE
将Makefile第1449行的:
/ %/: prepare scripts FORCE
修改为:
%/: prepare scripts FORCE
2 32位库丢失
2.1 明显特征
make时出现如:
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
这是缺失lib32stdc++6库。
2.2 解决方法
缺啥库补啥库:
如:
sudo apt-get install lib32stdc++6
顺便把这个通用库补上吧。
sudo apt-get install lib32z1
3 GCC过高不支持某些参数
3.1 明显特征
cc1: error: unrecognised debug output level “dwarf2”
3.2 解决方法
在Makefile文件中查找该参数并将其屏蔽
4 命令(软件包)缺失
4.1 明显特征
make uImage时出现:
UIMAGE arch/arm/boot/uImage
“mkimage” command not found - U-Boot images will not be built
Image arch/arm/boot/uImage is ready
4.2 解决方法
安装u-boot-tools软件包:
sudo apt-get install u-boot-tools