ubuntu22 编译android9 报错

Error was: Failed to mmap at expected address, mapped at 0x7f11e5400000 instead of 0x705f8000 FAILED: out/target/product/sdm660_64/dex_bootjars/system/framework/arm64/boot.art

在这里插入图片描述

https://android-review.googlesource.com/c/platform/art/+/2226578/2/runtime/mem_map.cc
    flags |= MAP_FIXED;
+ #if !defined(ART_TARGET)
+  } else if (expected_ptr) {
+  #define MAP_FIXED_NOREPLACE 0x100000
 +   flags |= MAP_FIXED_NOREPLACE;
+  #endif

failed: out/taros/&r9oust/ad277e
64/obj/APPS/TeleService_intermediates/oat/arm64/package.odex

/bin/bash: line 1: build: command not foundmake: *** [ABL_FV_IMG] Error 127

make: *** [makefile:133: ABL_FV_IMG] Error 1

make: Leaving directory

https://stackoverflow.com/questions/53056922/ubuntu14-04-first-time-make-whole-android-8-1-or-9-project-on-qcom-platform-fail
bootable/bootloader/edk2/makefile
— a/makefile 2019-09-25 13:00:28.064160817 -0500
+++ b/makefile 2019-09-25 13:00:34.957369325 -0500

@@ -129,7 +129,7 @@
$(MAKEPATH)make -C $(EDK_TOOLS) $(PREBUILT_HOST_TOOLS) -j1

ABL_FV_IMG: EDK_TOOLS_BIN

  • @. ./edksetup.sh BaseTools && \
  • +@. ./edksetup.sh BaseTools &&
    build -p $(WORKSPACE)/QcomModulePkg/QcomModulePkg.dsc
    -a $(ARCHITECTURE)
    -t $(TARGET_TOOLS) \

flex-2.5.39: loadlocale.c:130:_nl_intern_locale_data: ?? ‘cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))’ ???

解决方法:
在~/.bashrc最后添加export LC_ALL=C

解决方法 : 在编译脚本中执行

export LC_ALL=C
(android9):ubuntu22编译,上面方式不起作用:
需要用下面方法:
https://blog.csdn.net/qq_32607609/article/details/128318438
最终的解决方式是重新编译下AOSP/prebuilts/misc/linux-x86下的flex库

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值