查看: 8053|回复: 1

Android源码编译报错

[复制链接]

2

主题

4

回帖

28

积分

新手上路

Rank: 1

积分
28
发表于 2021-11-25 13:42:29 | 显示全部楼层 |阅读模式
在ubuntu18虚拟机上编译,按照http://wiki.smartfire.cn/Tinkerboard2/Build_android进行编译在执行./build.sh -UKAu时,编译完kernel后,编译Android报错
日志如下:
请问这个是什么错误。另外应该怎么看编译报错原因,看哪个日志文件?




CC [M]  drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/phydm/halrf/rtl8821c/halrf_8821c.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/phydm/rtl8822c/halhwimg8822c_bb.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/phydm/txbf/haltxbf8822b.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/btc/halbtc8822bwifionly.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/phydm/rtl8822c/phydm_hal_api8822c.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/phydm/rtl8822c/phydm_regconfig8822c.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/btc/halbtc8822b1ant.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/btc/halbtc8822b2ant.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/btc/halbtc8821cwifionly.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/phydm/rtl8822c/phydm_rtl8822c.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822bs/platform/platform_ops.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/phydm/halrf/rtl8822c/halrf_8822c.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822bs/core/rtw_mp.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/btc/halbtc8821c1ant.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/phydm/halrf/rtl8822c/halrf_iqk_8822c.o
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8822be/8822be.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/phydm/halrf/rtl8822c/halrf_tssi_8822c.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/phydm/halrf/rtl8822c/halrf_dpk_8822c.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/btc/halbtc8821c2ant.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/phydm/halrf/rtl8822c/halrf_rfk_init_8822c.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/phydm/halrf/rtl8822c/halhwimg8822c_rf.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8821cs/platform/platform_ops.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/btc/halbtc8822cwifionly.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8821cs/core/rtw_mp.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/btc/halbtccommon.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/hal/btc/halbtc8822c.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/platform/platform_ops.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_mp.o
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8822bs/8822bs.o
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8821cs/8821cs.o
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/8822ce.o
  Building modules, stage 2.
  MODPOST 9 modules
  CC      drivers/media/usb/gspca/gspca_main.mod.o
  CC      drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmdhd.mod.o
  CC      drivers/net/wireless/rockchip_wlan/rtl8723cs/8723cs.mod.o
  CC      drivers/net/wireless/rockchip_wlan/rtl8812au/rtl8812au.mod.o
  CC      drivers/net/wireless/rockchip_wlan/rtl8814au/rtl8814au.mod.o
  CC      drivers/net/wireless/rockchip_wlan/rtl8821cs/8821cs.mod.o
  CC      drivers/net/wireless/rockchip_wlan/rtl8822be/8822be.mod.o
  CC      drivers/net/wireless/rockchip_wlan/rtl8822bs/8822bs.mod.o
  CC      drivers/net/wireless/rockchip_wlan/rtl8822ce/8822ce.mod.o
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8812au/rtl8812au.ko
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8822bs/8822bs.ko
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8822be/8822be.ko
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8723cs/8723cs.ko
  LD [M]  drivers/media/usb/gspca/gspca_main.ko
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8821cs/8821cs.ko
  LD [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmdhd.ko
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8814au/rtl8814au.ko
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/8822ce.ko
  Image:  resource.img (with tinker_board_2.dtb logo.bmp tinkerboard.bmp logo_kernel.bmp) is ready
  Image:  boot.img (with Image  resource.img) is ready
  Image:  zboot.img (with Image.lz4  resource.img) is ready


#### build completed successfully (09:03 (mm:ss)) ####


/source
Build kernel ok!
package resoure.img with charger images


Pack ./tools/images/ & ../kernel/resource.img to resource.img ...
Unpacking old image(../kernel/resource.img):
rk-kernel.dtb logo.bmp tinkerboard.bmp logo_kernel.bmp 4
Pack to resource.img successed!
Packed resources:
rk-kernel.dtb battery_1.bmp battery_2.bmp battery_3.bmp battery_4.bmp battery_5.bmp battery_fail.bmp logo.bmp logo_kernel.bmp battery_0.bmp tinkerboard.bmp 11


resource.img is packed ready
/source
start build android
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=WW_Tinker_Board_2
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-91-generic-x86_64-Ubuntu-14.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QD4A.200805.003
OUT_DIR=out
============================================
03:15:04 Deleted images and staging directories.


#### build completed successfully (47 seconds) ####


============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=WW_Tinker_Board_2
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-91-generic-x86_64-Ubuntu-14.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QD4A.200805.003
OUT_DIR=out
============================================
[100% 148/148] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
libRKmediaplayerservice want to conditional Compile
libRkTeeWeaver want to conditional Compile
libcrypto_defaults want to conditional Compile
libffmpeg_58 want to conditional Compile
libgralloc_priv want to conditional Compile
libjpeghwenc want to conditional Compile
libmpp want to conditional Compile
librga want to conditional Compile
librk_vpuapi want to conditional Compile
librockit want to conditional Compile
librtopus want to conditional Compile
libvpu want to conditional Compile
libcrypto-NO_USE_RDRAND: rk3399
[hardware/rockchip/libgralloc/midgard] 29
PlatformLibname: librockit_interface
Optee Version: v1
Killed
03:18:01 soong bootstrap failed with: exit status 1


#### failed to build some targets (02:59 (mm:ss)) ####


Build android failed!


回复

使用道具 举报

22

主题

352

回帖

1900

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1900
QQ
发表于 2021-11-26 10:03:27 | 显示全部楼层
试一下在编译前执行export LC_ALL=C,
修改build / soong / java /config/ config.go。
将pctx.StaticVariable("JavacHeapSize", "2048M")的2048改为你虚拟机内存大小的一半。再编译
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|风火轮WIKI|手机版|小黑屋|深圳风火轮团队 ( 粤ICP备17095099号 )

GMT+8, 2024-11-21 23:51 , Processed in 0.060567 second(s), 20 queries .

快速回复 返回顶部 返回列表
 
【客服1】 商务合作 15289193
【客服2】 业务洽谈 13257599
【客服3】 售前咨询 510313198
【邮箱】
smartfire@smartfire.cn