Last active
October 2, 2020 08:30
-
-
Save T-rex2017/145e49abdca04dc0781a7694dae89748 to your computer and use it in GitHub Desktop.
logging compile errors during a failed twrp build and possible fixes i found
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
02/10/2020 11:15AM-------------------------------------------------- | |
error ::::: | |
system/core/mkbootimg/mkbootimg.c: In function 'main': | |
system/core/mkbootimg/mkbootimg.c:212:9: error: 'strncpy' specified bound 1024 equals destination size [-Werror=stringop-truncation] | |
212 | strncpy((char *)hdr.extra_cmdline, cmdline, BOOT_EXTRA_ARGS_SIZE); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
cc1: all warnings being treated as errors | |
scinario ::::: | |
compiling twrp 3.4.0 for lenovo vibe p1m mt6735 3.18.xx kernel from twrp omni compressed source by twrpbuilder team | |
fix :::::: | |
chnage | |
strncpy((char *)hdr.extra_cmdline, cmdline, BOOT_EXTRA_ARGS_SIZE); | |
to | |
strncpy((char *)hdr.extra_cmdline, cmdline, sizeof(BOOT_EXTRA_ARGS_SIZE) - 1); | |
02/10/2020 11:50AM---------------------------------------------------------- | |
error ::::: | |
In function 'rule_map_new', | |
inlined from 'parse' at external/sepolicy/tools/check_seapp.c:969:17: | |
external/sepolicy/tools/check_seapp.c:580:5: error: 'strncat' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] | |
580 | strncat(new_map->key, k->key, key_len); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
external/sepolicy/tools/check_seapp.c: In function 'parse': | |
external/sepolicy/tools/check_seapp.c:565:19: note: length computed here | |
565 | int key_len = strlen(k->key); | |
| ^~~~~~~~~~~~~~ | |
In function 'rule_map_new', | |
inlined from 'parse' at external/sepolicy/tools/check_seapp.c:969:17: | |
external/sepolicy/tools/check_seapp.c:581:5: error: 'strncat' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] | |
581 | strncat(new_map->key, k->value, val_len); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
external/sepolicy/tools/check_seapp.c: In function 'parse': | |
external/sepolicy/tools/check_seapp.c:566:19: note: length computed here | |
566 | int val_len = strlen(k->value); | |
| ^~~~~~~~~~~~~~~~ | |
target SharedLib: libdl (/home/tony/Desktop/projectRecovery/twrp/out/target/product/P1m/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so) | |
preparing StaticLib: libc_common [including /home/tony/Desktop/projectRecovery/twrp/out/target/product/P1m/obj/STATIC_LIBRARIES/libc_bionic_intermediates/libc_bionic.a] | |
cc1: all warnings being treated as errors | |
scinario ::::: | |
compiling twrp 3.4.0 for lenovo vibe p1m mt6735 3.18.xx kernel from twrp omni compressed source by twrpbuilder team | |
fix :::::: | |
change | |
strncat(new_map->key, k->value, val_len); | |
to | |
no fix found | |
02/10/2020 12:10PM------------------------------------------------------- | |
error ::::: | |
preparing StaticLib: libselinux_32 [including /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/libpcre.a] | |
/home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/tony/Desktop/projectRecovery/twrp/out/target/product/P1m/obj/ETC/sepolicy_intermediates/policy.conf | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/pcre_chartables.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_byte_order.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_compile.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_config.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_dfa_exec.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_exec.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_fullinfo.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_get.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_globals.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_jit_compile.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_maketables.o: No such file or directory | |
/home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/bin/checkpolicy: policy configuration loaded | |
/home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/bin/checkpolicy: writing binary representation (version 26) to /home/tony/Desktop/projectRecovery/twrp/out/target/product/P1m/obj/ETC/sepolicy_intermediates/sepolicy | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_newline.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_ord2utf8.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_refcount.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_string_utils.o: No such file or directory | |
/home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/tony/Desktop/projectRecovery/twrp/out/target/product/P1m/obj/ETC/sepolicy_intermediates/policy.conf.dontaudit | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_study.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_tables.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_ucd.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_valid_utf8.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_version.o: No such file or directory | |
/bin/bash: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/dist/pcre_xclass.o: No such file or directory | |
ar: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/WHOLE/libpcre_objs//home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/pcre_chartables.o: No such file or directory | |
make: *** [build/core/host_static_library_internal.mk:27: /home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/libselinux.a] Error 1 | |
make: *** Waiting for unfinished jobs.... | |
/home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/bin/checkpolicy: policy configuration loaded | |
/home/tony/Desktop/projectRecovery/twrp/out/host/linux-x86/bin/checkpolicy: writing binary representation (version 26) to /home/tony/Desktop/projectRecovery/twrp/out/target/product/P1m/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit | |
#### make failed to build some targets (34 seconds) #### | |
scinario ::::: | |
compiling twrp 3.4.0 for lenovo vibe p1m mt6735 3.18.xx kernel from twrp omni compressed source by twrpbuilder team | |
fix :::::: | |
no fix found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment