[Android] FrenzyR:
help me to fix this error while building nitrogen os for Redmi note 4 sd

[ 31% 14392/45017] host C: libsepol <= external/selinux/libsepol/cil/src/cil_build_ast.c

[ 31% 14393/45017] Install: /home/ramesh/nit/out/host/linux-x86/bin/fc_sort

[ 31% 14394/45017] host C: libsepol <= external/selinux/libsepol/cil/src/cil_binary.c

[ 31% 14395/45017] host C: sepolicy-analyze <= system/sepolicy/tools/sepolicy-analyze/sepolicy-analyze.c

[ 31% 14396/45017] host C: libsepol <= external/selinux/libsepol/cil/src/cil_resolve_ast.c

[ 31% 14397/45017] host C: sepolicy-analyze <= system/sepolicy/tools/sepolicy-analyze/dups.c

[ 31% 14398/45017] Notice file: external/libselinux/NOTICE -- /home/ramesh/nit/out/host/linux-x86/obj/NOTICE_FILES/src//bin/sefcontext_compile.txt

[ 31% 14399/45017] host C: sepolicy-analyze <= system/sepolicy/tools/sepolicy-analyze/perm.c

[ 31% 14400/45017] host C: sepolicy-analyze <= system/sepolicy/tools/sepolicy-analyze/typecmp.c

[ 31% 14401/45017] host C: sepolicy-analyze <= system/sepolicy/tools/sepolicy-analyze/booleans.c

[ 31% 14402/45017] host C: sepolicy-analyze <= system/sepolicy/tools/sepolicy-analyze/attribute.c

[ 31% 14403/45017] target Prebuilt: fstab.qcom (/home/ramesh/nit/out/target/product/mido/obj/ETC/fstab.qcom_intermediates/fstab.qcom)

[ 31% 14404/45017] host StaticLib: libsepol (/home/ramesh/nit/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/libsepol.a)

[ 31% 14405/45017] host C: sefcontext_compile <= external/libselinux/utils/sefcontext_compile.c

[ 32% 14406/45017] host C: sepolicy-analyze <= system/sepolicy/tools/sepolicy-analyze/neverallow.c

[ 32% 14407/45017] host C: sepolicy-analyze <= system/sepolicy/tools/sepolicy-analyze/utils.c

[ 32% 14408/45017] Export includes file: -- /home/ramesh/nit/out/target/product/mido/obj/STATIC_LIBRARIES/libinit_intermediates/export_includes

[ 32% 14409/45017] Export includes file: -- /home/ramesh/nit/out/target/product/mido/obj/STATIC_LIBRARIES/libext2_uuid_static_intermediates/export_includes

[ 32% 14410/45017] Import includes file: /home/ramesh/nit/out/target/product/mido/obj/STATIC_LIBRARIES/libinit_intermediates/import_includes

[ 32% 14411/45017] Import includes file: /home/ramesh/nit/out/target/product/mido/obj/STATIC_LIBRARIES/libfec_intermediates/import_includes

[ 32% 14412/45017] Import includes file: /home/ramesh/nit/out/target/product/mido/obj/STATIC_LIBRARIES/libfec_rs_intermediates/import_includes

[ 32% 14413/45017] Import includes file: /home/ramesh/nit/out/target/product/mido/obj/STATIC_LIBRARIES/libsquashfs_utils_intermediates/import_includes

[ 32% 14414/45017] host C: checkfc <= system/sepolicy/tools/checkfc.c

[ 32% 14415/45017] Install: /home/ramesh/nit/out/target/product/mido/root/fstab.qcom

[ 32% 14416/45017] host Executable: checkpolicy (/home/ramesh/nit/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/checkpolicy)

[ 32% 14417/45017] host Executable: sefcontext_compile (/home/ramesh/nit/out/host/linux-x86/obj/EXECUTABLES/sefcontext_compile_intermediates/sefcontext_compile)

[ 32% 14418/45017] Import includes file: /home/ramesh/nit/out/target/product/mido/obj/STATIC_LIBRARIES/liblogwrap_intermediates/import_includes

[ 32% 14419/45017] host Executable: sepolicy-analyze (/home/ramesh/nit/out/host/linux-x86/obj/EXECUTABLES/sepolicy-analyze_intermediates/sepolicy-analyze)

[ 32% 14420/45017] Import includes file: /home/ramesh/nit/out/target/product/mido/obj/STATIC_LIBRARIES/libmincrypt_intermediates/import_includes

[ 32% 14421/45017] Import includes file: /home/ramesh/nit/out/target/product/mido/obj/EXECUTABLES/init_intermediates/import_includes

[ 32% 14422/45017] host Executable: checkfc (/home/ramesh/nit/out/host/linux-x86/obj/EXECUTABLES/checkfc_intermediates/checkfc)

[ 32% 14423/45017] Install: /home/ramesh/nit/out/host/linux-x86/bin/checkpolicy

[ 32% 14424/45017] Install: /home/ramesh/nit/out/host/linux-x86/bin/sefcontext_compile

[ 32% 14425/45017] Install: /home/ramesh/nit/out/host/linux-x86/bin/sepolicy-analyze

[ 32% 14426/45017] target C++: libinit <= system/core/init/parser.cpp

[ 32% 14427/45017] Install: /home/ramesh/nit/out/host/linux-x86/bin/checkfc

[ 32% 14428/45017] build /home/ramesh/nit/out/target/product/mido/obj/ETC/sepolicy_intermediates/sepolicy

FAILED: /bin/bash -c "(/home/ramesh/nit/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/ramesh/nit/out/target/product/mido/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/ramesh/nit/out/target/product/mido/obj/ETC/sepolicy_intermediates/policy.conf ) && (/home/ramesh/nit/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/ramesh/nit/out/target/product/mido/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit /home/ramesh/nit/out/target/product/mido/obj/ETC/sepolicy_intermediates/policy.conf.dontaudit ) && (/home/ramesh/nit/out/host/linux-x86/bin/sepolicy-analyze /home/ramesh/nit/out/target/product/mido/obj/ETC/sepolicy_intermediates/sepolicy.tmp permissive > /home/ramesh/nit/out/target/product/mido/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains ) && (if [ "userdebug" = "user" -a -s /home/ramesh/nit/out/target/product/mido/obj/ETC/sepolicy_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/ramesh/nit/out/target/product/mido/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains 1>&2;	exit 1;	fi ) && (mv /home/ramesh/nit/out/target/product/mido/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/ramesh/nit/out/target/product/mido/obj/ETC/sepolicy_intermediates/sepolicy )"

device/qcom/sepolicy/common/audioserver.te:63:ERROR 'attribute qti_debugfs_domain is not declared' at token ';' on line 21686:

typeattribute audioserver qti_debugfs_domain;

#line 63

checkpolicy: error(s) encountered while parsing configuration

/home/ramesh/nit/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/ramesh/nit/out/target/product/mido/obj/ETC/sepolicy_intermediates/policy.conf

[ 32% 14428/45017] target C++: libinit <= system/core/init/log.cpp

[ 32% 14428/45017] target C++: libinit <= system/core/init/import_parser.cpp

[ 32% 14428/45017] target C++: init <= system/core/init/devices.cpp

[ 32% 14428/45017] target C++: init <= system/core/init/bootchart.cpp

[ 32% 14428/45017] target C++: init <= system/core/init/keychords.cpp

[ 32% 14428/45017] target C++: libinit <= system/core/init/util.cpp

[ 32% 14428/45017] target C++: libinit <= system/core/init/init_parser.cpp

[ 32% 14428/45017] target C++: libinit <= system/core/init/action.cpp

[ 32% 14428/45017] target C++: init <= system/core/init/init.cpp

[ 32% 14428/45017] target C++: init <= system/core/init/builtins.cpp

[ 32% 14428/45017] target C++: libinit <= system/core/init/service.cpp

ninja: build stopped: subcommand failed.

make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (41:54 (mm:ss)) ####

Build step 'Execute shell' marked build as failure

Finished: FAILURE