Fenix v1.1.1在Ubuntu20.04下编译报错问题

你好,下载了fenix git最新的代码: git clone --depth 1 GitHub - khadas/fenix: One-stop script set to build Ubuntu/Debian images
在宿主机Ubuntu 20.04.4 LTS环境编译报错,如下:

Info: Installing linux-headers-amlogic-mainline_1.1.1_arm64.deb in chroot...
Selecting previously unselected package linux-headers-amlogic-mainline.
(Reading database ... 100634 files and directories currently installed.)
Preparing to unpack .../linux-headers-amlogic-mainline_1.1.1_arm64.deb ...
Unpacking linux-headers-amlogic-mainline (1.1.1) ...
Setting up linux-headers-amlogic-mainline (1.1.1) ...
Compiling headers - please wait ...
scripts/Kconfig.include:39: compiler '/home/umhos/tools/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc' not found
make[3]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [Makefile:628: syncconfig] Error 2
make[1]: *** [Makefile:730: include/config/auto.conf.cmd] Error 2
make[1]: *** [include/config/auto.conf.cmd] Deleting file 'include/generated/autoconf.h'
dpkg: error processing package linux-headers-amlogic-mainline (--install):
 installed linux-headers-amlogic-mainline package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-headers-amlogic-mainline
Cleanup...
make: *** [Makefile:2: all] Error 1

请问是什么问题,该如何解决?

Hello @kiwin

有改过默认代码吗?提供下完整的编译log。

@numbqq 没有修改过默认代码。
log放在百度网盘上:
链接:百度网盘 请输入提取码
提取码:hlw9

你好,问题解决了。
是因为我的编译服务器有个默认的环境变量CROSS_COMPILE导致的。
谢谢~