Closed thanhdatpd closed 5 years ago
[ 0% 5/5351] /bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/thanhdatpd/lineage/out/host/linux-x86/bin/sepolicy-analyze /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"eng\" = \"user\" -a -s /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then echo \"==========\" 1>&2; echo \"ERROR: permissive domains not allowed in user builds\" 1>&2; echo \"List of invalid domains:\" 1>&2; cat /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy )" FAILED: /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy /bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/thanhdatpd/lineage/out/host/linux-x86/bin/sepolicy-analyze /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"eng\" = \"user\" -a -s /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then echo \"==========\" 1>&2; echo \"ERROR: permissive domains not allowed in user builds\" 1>&2; echo \"List of invalid domains:\" 1>&2; cat /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy )" device/lineage/sepolicy/qcom/common/hal_livedisplay_default.te:3:ERROR 'unknown type hal_livedisplay_default' at token ';' on line 77945: allow hal_livedisplay_default qdisplay_service:service_manager find;
checkpolicy: error(s) encountered while parsing configuration /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
use ovride folder in device tree
[ 44% 4298/9659] /bin/bash -c "ASAN_OPTIONS=detect_leaks=0 /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy -C -M -c 30 -o /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/reqd_policy_mask.cil /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/reqd_policy_mask.conf" /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/reqd_policy_mask.conf /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy: policy configuration loaded /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy: writing CIL to /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/reqd_policy_mask.cil [ 44% 4299/9659] /bin/bash -c "(rm -f /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows ) && (touch /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows )" [ 44% 4300/9659] prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++ @/home/thanhdatpd/lineage/out/soong/.intermediates/system/sepolicy/tools/checkseapp/linux_glibc_x86_64/checkseapp.rsp -Wl,--whole-archive /home/thanhdatpd/lineage/out/soong/.intermediates/external/pcre/libpcre2/linux_glibc_x86_64_static/libpcre2.a -Wl,--no-whole-archive /home/thanhdatpd/lineage/out/soong/.intermediates/external/selinux/libsepol/libsepol/linux_glibc_x86_64_static/libsepol.a -Wl,--start-group /home/thanhdatpd/lineage/out/soong/.intermediates/external/compiler-rt/libcompiler_rt-extras/linux_glibc_x86_64_static/libcompiler_rt-extras.a -Wl,--end-group -o /home/thanhdatpd/lineage/out/soong/.intermediates/system/sepolicy/tools/checkseapp/linux_glibc_x86_64/checkseapp -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--no-undefined-version --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -m64 -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/lib/gcc/x86_64-linux/4.8 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/lib/gcc/x86_64-linux/4.8 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/lib64 -ldl -lpthread -lm -lrt -Wl,-rpath,\$ORIGIN/../lib64 -Wl,-rpath,\$ORIGIN/lib64 -pie -nodefaultlibs -lgcc_s -lgcc -lc -lgcc_s -lgcc [ 44% 4301/9659] /bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy -C -M -c 30 -o /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.cil.tmp /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.conf ) && (grep -Fxv -f /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/reqd_policy_mask.cil /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.cil.tmp > /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.cil )" /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.conf /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy: policy configuration loaded /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy: writing CIL to /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.cil.tmp [ 44% 4302/9659] rm -f /home/thanhdatpd/lineage/out/soong/host/linux-x86/bin/checkseapp && cp -d /home/thanhdatpd/lineage/out/soong/.intermediates/system/sepolicy/tools/checkseapp/linux_glibc_x86_64/checkseapp /home/thanhdatpd/lineage/out/soong/host/linux-x86/bin/checkseapp [ 44% 4303/9659] rm -f /home/thanhdatpd/lineage/out/soong/.intermediates/system/core/libsparse/libsparse/android_arm64_armv8-a_kryo_core_static/libsparse.a && prebuilts/clang/host/linux-x86/clang-4691093/bin/llvm-ar crsD -format=gnu /home/thanhdatpd/lineage/out/soong/.intermediates/system/core/libsparse/libsparse/android_arm64_armv8-a_kryo_core_static/libsparse.a @/home/thanhdatpd/lineage/out/soong/.intermediates/system/core/libsparse/libsparse/android_arm64_armv8-a_kryo_core_static/libsparse.a.rsp [ 44% 4304/9659] /bin/bash -c "(rm -f /home/thanhdatpd/lineage/out/target/product/bicot/obj/STATIC_LIBRARIES/libsparse_intermediates/libsparse.a ) && (cp \"/home/thanhdatpd/lineage/out/soong/.intermediates/system/core/libsparse/libsparse/android_arm64_armv8-a_kryo_core_static/libsparse.a\" \"/home/thanhdatpd/lineage/out/target/product/bicot/obj/STATIC_LIBRARIES/libsparse_intermediates/libsparse.a\" )" [ 44% 4305/9659] /bin/bash -c "(rm -f /home/thanhdatpd/lineage/out/host/linux-x86/obj/EXECUTABLES/checkseapp_intermediates/checkseapp ) && (cp \"/home/thanhdatpd/lineage/out/soong/host/linux-x86/bin/checkseapp\" \"/home/thanhdatpd/lineage/out/host/linux-x86/obj/EXECUTABLES/checkseapp_intermediates/checkseapp\" ) && (chmod +x /home/thanhdatpd/lineage/out/host/linux-x86/obj/EXECUTABLES/checkseapp_intermediates/checkseapp )" [ 44% 4306/9659] /bin/bash -c "(rm -f /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkseapp ) && (cp /home/thanhdatpd/lineage/out/host/linux-x86/obj/EXECUTABLES/checkseapp_intermediates/checkseapp /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkseapp )" [ 44% 4307/9659] PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++ -c -Iexternal/boringssl/src/include -Iexternal/boringssl/src/include -Iexternal/boringssl -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -DSTDC_FORMAT_MACROS -DSTDC_CONSTANT_MACROS --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -Wno-zero-as-null-pointer-constant -fdebug-prefix-map=$PWD/= -Iexternal/libcxx/include -Iexternal/libcxxabi/include -Iexternal/boringssl/src/include -Isystem/core/include -Isystem/media/audio/include -Ihardware/libhardware/include -Ihardware/libhardware_legacy/include -Ihardware/ril/include -Ilibnativehelper/include -Iframeworks/native/include -Iframeworks/native/opengl/include -Iframeworks/av/include -Ilibnativehelper/include_jni -fvisibility=hidden -DBORINGSSL_SHARED_LIBRARY -DBORINGSSL_IMPLEMENTATION -DOPENSSL_SMALL -D_XOPEN_SOURCE=700 -Werror -Wno-unused-parameter -DBORINGSSL_ANDROID_SYSTEM -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -fPIC -D_USING_LIBCXX -std=gnu++14 -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -Wno-gnu-include-next -Wall -Werror -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/thanhdatpd/lineage/out/soong/.intermediates/external/boringssl/libssl/linux_glibc_x86_64_static/obj/external/boringssl/src/ssl/d1_both.o.d -o /home/thanhdatpd/lineage/out/soong/.intermediates/external/boringssl/libssl/linux_glibc_x86_64_static/obj/external/boringssl/src/ssl/d1_both.o external/boringssl/src/ssl/d1_both.cc [ 44% 4308/9659] /bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/thanhdatpd/lineage/out/host/linux-x86/bin/sepolicy-analyze /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"eng\" = \"user\" -a -s /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then echo \"==========\" 1>&2; echo \"ERROR: permissive domains not allowed in user builds\" 1>&2; echo \"List of invalid domains:\" 1>&2; cat /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy )" FAILED: /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy /bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/thanhdatpd/lineage/out/host/linux-x86/bin/sepolicy-analyze /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"eng\" = \"user\" -a -s /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then echo \"==========\" 1>&2; echo \"ERROR: permissive domains not allowed in user builds\" 1>&2; echo \"List of invalid domains:\" 1>&2; cat /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy )" device/meizu/bicot/sepolicy/mm-qcamerad.te:2:ERROR 'unknown type camera_socket used in transition definition' at token ';' on line 46450: type_transition mm-qcamerad camera_data_file:sock_file camera_socket "cam_socket1";
line 1 "device/meizu/bicot/sepolicy/mm-qcamerad.te"
checkpolicy: error(s) encountered while parsing configuration /home/thanhdatpd/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/thanhdatpd/lineage/out/target/product/bicot/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf [ 44% 4309/9659] PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++ -c -Iexternal/boringssl/src/include -Iexternal/boringssl/src/include -Iexternal/boringssl -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -DSTDC_FORMAT_MACROS -DSTDC_CONSTANT_MACROS --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -Wno-zero-as-null-pointer-constant -fdebug-prefix-map=$PWD/= -Iexternal/libcxx/include -Iexternal/libcxxabi/include -Iexternal/boringssl/src/include -Isystem/core/include -Isystem/media/audio/include -Ihardware/libhardware/include -Ihardware/libhardware_legacy/include -Ihardware/ril/include -Ilibnativehelper/include -Iframeworks/native/include -Iframeworks/native/opengl/include -Iframeworks/av/include -Ilibnativehelper/include_jni -fvisibility=hidden -DBORINGSSL_SHARED_LIBRARY -DBORINGSSL_IMPLEMENTATION -DOPENSSL_SMALL -D_XOPEN_SOURCE=700 -Werror -Wno-unused-parameter -DBORINGSSL_ANDROID_SYSTEM -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -fPIC -D_USING_LIBCXX -std=gnu++14 -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -Wno-gnu-include-next -Wall -Werror -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/thanhdatpd/lineage/out/soong/.intermediates/external/boringssl/libssl/linux_glibc_x86_64_static/obj/external/boringssl/src/ssl/custom_extensions.o.d -o /home/thanhdatpd/lineage/out/soong/.intermediates/external/boringssl/libssl/linux_glibc_x86_64_static/obj/external/boringssl/src/ssl/custom_extensions.o external/boringssl/src/ssl/custom_extensions.cc