FAILED: out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.c

 

 

[  1% 1543/95017] Export includes file:  -- out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/export_includes
[  1% 1544/95017] target  C++: memory_replay_tests <= system/extras/memory_replay/tests/ThreadsTest.cpp
[  1% 1545/95017] Import includes file: out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/import_includes
[  1% 1546/95017] target  C++: nvram_hal_test <= system/nvram/hal/tests/scoped_nvram_device.cc
[  1% 1547/95017] Check module type: out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/link_type
[  1% 1548/95017] Yacc: checkpolicy <= external/selinux/checkpolicy/policy_parse.y
[  1% 1549/95017] Notice file: system/sepolicy/NOTICE -- out/target/product/x20l_cob_3410_v4/obj/NOTICE_FILES/src/system/etc/selinux/mapping/26.0.cil.txt
[  1% 1550/95017] build out/target/product/x20l_cob_3410_v4/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.conf
[  1% 1551/95017] Import includes file: out/host/linux-x86/obj/EXECUTABLES/version_policy_intermediates/import_includes
[  1% 1552/95017] Export includes file:  -- out/host/linux-x86/obj/EXECUTABLES/version_policy_intermediates/export_includes
[  1% 1553/95017] Check module type: out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/link_type
[  1% 1554/95017] Lex: checkpolicy <= external/selinux/checkpolicy/policy_scan.l
FAILED: out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.c 
/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.c external/selinux/checkpolicy/policy_scan.l"
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)
[  1% 1555/95017] Check module type: out/host/linux-x86/obj/EXECUTABLES/version_policy_intermediates/link_type
[  1% 1556/95017] build out/target/product/x20l_cob_3410_v4/obj/FAKE/selinux_policy_intermediates/plat_pub_policy.conf
[  1% 1557/95017] target  C++: libnvram-hal <= system/nvram/hal/nvram_device_adapter.cpp
[  1% 1558/95017] host C: sqlite3 <= external/sqlite/dist/sqlite3.c
[  1% 1559/95017] target  C++: nvram_hal_test <= system/nvram/hal/tests/nvram_hal_test.cc
[  1% 1560/95017] host C: libsqlite_32 <= external/sqlite/dist/sqlite3.c
[  1% 1561/95017] host C: libsqlite <= external/sqlite/dist/sqlite3.c
ninja: build stopped: subcommand failed.
17:41:56 ninja failed with: exit status 1
make: *** [run_soong_ui] Error 1

[0;31m#### make failed to build some targets (01:38 (mm:ss)) ####[00m


[  0% 3/41769] Check module type: out/target/product/x20p_qxga_78inc/obj/EXECUTABLES/applypatch_intermediates/link_type
[  0% 4/41769] Ensuring Jack server is installed and started
grep: 警告: GREP_OPTIONS 已被废除; 请使用别名或脚本
Jack server already installed in "/home/user3/.jack-server"
Server is already running
grep: 警告: GREP_OPTIONS 已被废除; 请使用别名或脚本
grep: 警告: GREP_OPTIONS 已被废除; 请使用别名或脚本
[  0% 5/41769] Export includes file:  -- out/target/product/x20p_qxga_78inc/obj/EXECUTABLES/applypatch_intermediates/export_includes
[  0% 6/41769] build out/target/product/x20p_qxga_78inc/preloader_ota.img
[  0% 7/41769] Copy: out/target/product/x20p_qxga_78inc/obj/JAVA_LIBRARIES/dpm_intermediates/javalib.jar
[  0% 8/41769] Install: out/target/product/x20p_qxga_78inc/system/framework/dpm.jar
[  0% 9/41769] Lex: applypatch <= bootable/recovery/edify/lexer.ll
FAILED: out/target/product/x20p_qxga_78inc/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp 
/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/target/product/x20p_qxga_78inc/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.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% 10/41769] Copy: out/target/product/x20p_qxga_78inc/obj/JAVA_LIBRARIES/core-oj_intermediates/javalib.jar
[  0% 11/41769] build out/target/product/x20p_qxga_78inc/dex_bootjars/system/framework/ext_nodex.jar
[  0% 12/41769] Notice file: bootable/recovery/applypatch/NOTICE -- out/target/product/x20p_qxga_78inc/obj/NOTICE_FILES/src/system/bin/applypatch.txt
[  0% 13/41769] build /home/user3/work/X20_8.0/alps/out/target/product/x20p_qxga_78inc/obj/BOOTLOADER_OBJ/build-x20p_qxga_78inc/lk.img
make: Entering directory `/home/user3/work/X20_8.0/alps/vendor/mediatek/proprietary/bootable/bootloader/lk'
BOOT_LOGO = qxga



[  0% 17/53546] Lex: libaidl-common <= 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% 17/53546] Install: out/host/linux-x86/framework/doclava.jar

 

FAILED: out/target/product/_t10_fhd/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp 
/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/target/product/_t10_fhd/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.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)

去除所有本地化的设置,让命令能正确执行,bash 执行:export LC_ALL=C

你可能感兴趣的:(工作中遇到的问题)