ninja: Entering directory `.'
[ 0% 9/36389] 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: ?? 'cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' ???
Aborted (core dumped)
[ 0% 9/36389] target Java: libprotobuf-java-nano (out/target/common/obj/JAVA_LIBRARIES/libprotobuf-java-nano_intermediates/classes)
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[ 0% 9/36389] target Java: bouncycastle-nojarjar (out/target/common/obj/JAVA_LIBRARIES/bouncycastle-nojarjar_intermediates/classes)
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
这是一个编译错误,发生在使用Ninja工具构建代码时。出现了"Aborted (core dumped)"的错误,这通常是由于代码中的某个问题导致的内存错误。在输出的错误信息中,有一行 "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" 和 "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]))'???" 。
解决方法:请检查代码以确保没有导致内存错误的问题,并修复相关错误。