Dear Android experts, I am seeing the below failure, after applying the seppolicy( https://github.com/projectceladon/device-androidia/pull/416/files ) patches in latest, android sources, Could you please provide any inputs or workarounds for the below please?
https://source.android.com/setup/build/downloading Used branch “android-9.0.0_r45” repo init -u https://android.googlesource.com/platform/manifest -b android-9.0.0_r45 . build/envsetup.sh lunch aosp_x86_64-eng mma $ mma ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=9 TARGET_PRODUCT=aosp_x86_64 TARGET_BUILD_VARIANT=eng TARGET_BUILD_TYPE=release TARGET_ARCH=x86_64 TARGET_ARCH_VARIANT=x86_64 TARGET_2ND_ARCH=x86 TARGET_2ND_ARCH_VARIANT=x86_64 HOST_ARCH=x86_64 HOST_2ND_ARCH=x86 HOST_OS=linux HOST_OS_EXTRA=Linux-4.4.0-173-generic-x86_64-Ubuntu-16.04.6-LTS HOST_CROSS_OS=windows HOST_CROSS_ARCH=x86 HOST_CROSS_2ND_ARCH=x86_64 HOST_BUILD_TYPE=release BUILD_ID=PQ3B.190705.003 OUT_DIR=out ============================================ [1/1] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja [55/56] glob libcore/annotated_java_files.bp [77/77] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja out/build-aosp_x86_64-cleanspec.ninja is missing, regenerating... out/build-aosp_x86_64.ninja is missing, regenerating... [25/967] including development/build/Android.mk ... development/build/build_android_stubs.mk:43: warning: android_stubs_current development/build/build_android_stubs.mk:43: warning: metalava_android_stubs_current metalava_android_stubs_current development/build/build_android_stubs.mk:43: warning: android_system_stubs_current development/build/build_android_stubs.mk:43: warning: android_test_stubs_current development/build/build_android_stubs.mk:43: warning: metalava_android_system_stubs_current metalava_android_system_stubs_current development/build/build_android_stubs.mk:43: warning: metalava_android_test_stubs_current metalava_android_test_stubs_current [567/967] including system/sepolicy/Android.mk ... system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version [967/967] including tools/tradefederation/core/Android.mk ... [ 99% 1160/1161] glob vendor/google_data/pgo-profiles/art/dex2oat_x86_x86_64.profdata.* [ 2% 2897/106670] build out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/annotated/timestamp WARNING: duplicate annotation of type libcore.util.NonNull WARNING: duplicate annotation of type libcore.util.NonNull Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull: @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(C)Ljava/io/Writer;, IN_METHOD=in method 'append(C)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)} Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull: @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(C)Ljava/lang/Appendable;, IN_METHOD=in method 'append(C)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)} Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull: @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;)Ljava/io/Writer;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)} Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable: @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)} Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull: @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)} Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable: @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)} Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull: @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;II)Ljava/io/Writer;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)} Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable: @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;II) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)} Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull: @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)} Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable: @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;II) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)} Found class java.util.HashMap, but unable to insert @libcore.util.NonNull: @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at ( [TYPE_ARGUMENT(0)] ), RETURN_TYPE=ReturnTypeCriterion for method: entrySet()Ljava/util/Set;, IN_METHOD=in method 'entrySet()Ljava/util/Set;', IN_CLASS=In class 'java.util.HashMap' (exactly)} Found class java.util.HashMap, but unable to insert @libcore.util.NullFromTypeParam: @libcore.util.NullFromTypeParam (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at ( [TYPE_ARGUMENT(0), TYPE_ARGUMENT(0)] ), RETURN_TYPE=ReturnTypeCriterion for method: entrySet()Ljava/util/Set;, IN_METHOD=in method 'entrySet()Ljava/util/Set;', IN_CLASS=In class 'java.util.HashMap' (exactly)} Found class java.util.HashMap, but unable to insert @libcore.util.NullFromTypeParam: @libcore.util.NullFromTypeParam (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at ( [TYPE_ARGUMENT(0), TYPE_ARGUMENT(1)] ), RETURN_TYPE=ReturnTypeCriterion for method: entrySet()Ljava/util/Set;, IN_METHOD=in method 'entrySet()Ljava/util/Set;', IN_CLASS=In class 'java.util.HashMap' (exactly)} [ 2% 3000/106670] Yacc: ss <= external/iproute2/misc/ssfilter.y *external/iproute2/misc/ssfilter.y: conflicts: 35 shift/reduce* *[ 3% 4015/106670] build out/target/product/generic_x86_64/obj/ETC/sepolicy_freeze_test_intermediates/sepolicy_freeze_test* *FAILED: out/target/product/generic_x86_64/obj/ETC/sepolicy_freeze_test_intermediates/sepolicy_freeze_test* /bin/bash -c "(diff -rq system/sepolicy/prebuilts/api/28.0/public system/sepolicy/public ) && (diff -rq system/sepolicy/prebuilts/api/28.0/private system/sepolicy/private ) && (touch out/target/product/generic_x86_64/obj/ETC/sepolicy_freeze_test_intermediates/sepolicy_freeze_test )" Files system/sepolicy/prebuilts/api/28.0/private/compat/26.0/26.0.ignore.cil and system/sepolicy/private/compat/26.0/26.0.ignore.cil differ Files system/sepolicy/prebuilts/api/28.0/private/compat/27.0/27.0.ignore.cil and system/sepolicy/private/compat/27.0/27.0.ignore.cil differ [ 3% 4104/106670] target C++: libv8src <= external/v8/src/objects.cc ninja: build stopped: subcommand failed. 13:37:12 ninja failed with: exit status 1 *#### failed to build some targets (02:20 (mm:ss)) ####* $ Many Thanks in advance, -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/d3f999f5-20f1-4329-a940-bba28ac05267%40googlegroups.com.