前段时间Ubuntu 18.04
系统挂了,重装系统后,一直没有安装编译环境,记录下编译时遇到的一些问题。
1.1、问题描述
编译Linux内核映像时报如下错误:
root@ubuntu:home/run/code/linux-4.9.y# ./mk_kernel.sh
...
"mkimage" command not found - U-Boot images will not be built
arch/arm/boot/Makefile:87: recipe for target 'arch/arm/boot/uImage' failed
make[1]: *** [arch/arm/boot/uImage] Error 1
arch/arm/Makefile:336: recipe for target 'uImage' failed
1.2、解决方法
安装软件包u-boot-tools
。
apt-get install u-boot-tools
2.1、问题描述
编译Linux内核映像时报如下错误:
root@ubuntu:home/run/code/linux-4.9.y# ./mk_kernel.sh
drivers/net/wireless/broadcom/ap6255/Kconfig:50:warning: defaults for choice values not supported
#
# configuration written to .config
#
arch/arm64/Makefile:24: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
aarch64-xx-linux-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
aarch64-xx-linux-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
aarch64-xx-linux-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
aarch64-xx-linux-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
scripts/kconfig/conf --silentoldconfig Kconfig
2.2、解决方法
安装软件包lib32stdc++6
和lib32z1
。
apt-get install lib32stdc++6
apt-get install lib32z1
3.1、问题描述
编译Linux内核映像时报如下错误:
root@ubuntu:home/run/code/linux-4.9.y# ./mk_kernel.sh
...
Built build/xx/debug/bl31.bin successfully
OD build/xx/debug/bl31/bl31.dump
CC fiptool.c
fiptool.c:45:10: fatal error: openssl/sha.h: No such file or directory
#include <openssl/sha.h>
3.2、解决方法
安装软件包libssl-dev
。
apt-get install libssl-dev
网友评论