RK3399 android7.1 ubuntu20.04编译报错

在编译Android源码时遇到了一些错误,包括ANTLR库的未检查操作警告、flex编译时的assertion失败以及EventLogTags.logtags中的重复标签警告。解决方案是设置环境变量LC_ALL为C。
摘要由CSDN通过智能技术生成

[  0% 163/50846] host Java: antlr-runtime (out/host/c...j/JAVA_LIBRARIES/antlr-runtime_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[  0% 164/50846] Lex: aidl <= system/tools/aidl/aidl_language_l.ll
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
[  0% 164/50846] build out/target/common/obj/all-event-log-tags.txt
system/bt/hci/../EventLogTags.logtags:36: warning: tag "bt_hci_timeout" (1010000) duplicated in system/bt/btif/../EventLogTags.logtags:36
system/bt/hci/../EventLogTags.logtags:37: warning: tag "bt_config_source" (1010001) duplicated in system/bt/btif/../EventLogTags.logtags:37
system/bt/hci/../EventLogTags.logtags:38: warning: tag "bt_hci_unknown_type" (1010002) duplicated in system/bt/btif/../EventLogTags.logtags:38
[  0% 164/50846] host Java: hamcrest-host (out/host/c...j/JAVA_LIBRARIES/hamcrest-host_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[  0% 164/50846] target Java: core-all (out/target/co...on/obj/JAVA_LIBRARIES/core-all_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:149: ninja_wrapper] Error 1

#### make failed to build some targets (01:10 (mm:ss)) ####

Build android failed!
解决方法:

export LC_ALL=C

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值