[Android] kaibsora:
build error

So thanks to mzo i got it to start building past the kernel stage. now i get a sepolicy error when building. (see below)

[ 0% 276/44270] build /home/kai/andro...ETC/sepolicy_intermediates/policy.conf
m4: device/qcom/sepolicy/common/atfwd.te: 17: deprecated: unix_socket_connect(atfwd, property, init) Please use set_prop(atfwd, <property name>) instead.
m4: device/qcom/sepolicy/common/cameraserver.te: 49: deprecated: unix_socket_connect(cameraserver, property, init) Please use set_prop(cameraserver, <property name>) instead.
m4: device/qcom/sepolicy/common/cnd.te: 44: deprecated: unix_socket_connect(cnd, property, init) Please use set_prop(cnd, <property name>) instead.
m4: device/qcom/sepolicy/common/dpmd.te: 39: deprecated: unix_socket_connect(dpmd, property, init) Please use set_prop(dpmd, <property name>) instead.
m4: device/qcom/sepolicy/common/fidodaemon.te: 21: deprecated: unix_socket_connect(fidodaemon, property, init) Please use set_prop(fidodaemon, <property name>) instead.
m4: device/qcom/sepolicy/common/ims.te: 41: deprecated: unix_socket_connect(ims, property, init) Please use set_prop(ims, <property name>) instead.
m4: device/qcom/sepolicy/common/init_shell.te: 109: deprecated: unix_socket_connect(qti_init_shell, property, init) Please use set_prop(qti_init_shell, <property name>) instead.
m4: device/qcom/sepolicy/common/logdumpd.te: 34: deprecated: unix_socket_connect(logdumpd, property, init) Please use set_prop(logdumpd, <property name>) instead.
m4: device/qcom/sepolicy/common/mm-pp-daemon.te: 59: deprecated: unix_socket_connect(mm-pp-daemon, property, init) Please use set_prop(mm-pp-daemon, <property name>) instead.
m4: device/qcom/sepolicy/common/mm-qcamerad.te: 65: deprecated: unix_socket_connect(mm-qcamerad, property, init) Please use set_prop(mm-qcamerad, <property name>) instead.
m4: device/qcom/sepolicy/common/mmi.te: 31: deprecated: unix_socket_connect(mmi, property, init) Please use set_prop(mmi, <property name>) instead.
m4: device/qcom/sepolicy/common/mpdecision.te: 44: deprecated: unix_socket_connect(mpdecision, property, init) Please use set_prop(mpdecision, <property name>) instead.
m4: device/qcom/sepolicy/common/netmgrd.te: 35: deprecated: unix_socket_connect(netmgrd, property, init) Please use set_prop(netmgrd, <property name>) instead.
m4: device/qcom/sepolicy/common/qseecomd.te: 59: deprecated: unix_socket_connect(tee, property, init) Please use set_prop(tee, <property name>) instead.
m4: device/qcom/sepolicy/common/qseeproxy.te: 53: deprecated: unix_socket_connect(qseeproxy, property, init) Please use set_prop(qseeproxy, <property name>) instead.
m4: device/qcom/sepolicy/common/ridl.te: 79: deprecated: unix_socket_connect(RIDL, property, init) Please use set_prop(RIDL, <property name>) instead.
m4: device/qcom/sepolicy/common/rmt_storage.te: 25: deprecated: unix_socket_connect(rmt_storage, property, init) Please use set_prop(rmt_storage, <property name>) instead.
m4: device/qcom/sepolicy/common/usb_uicc_daemon.te: 14: deprecated: unix_socket_connect(usb_uicc_daemon, property, init) Please use set_prop(usb_uicc_daemon, <property name>) instead.
m4: device/qcom/sepolicy/common/usf.te: 31: deprecated: unix_socket_connect(usf, property, init) Please use set_prop(usf, <property name>) instead.
m4: device/qcom/sepolicy/common/wcnss_service.te: 7: deprecated: unix_socket_connect(wcnss_service, property, init) Please use set_prop(wcnss_service, <property name>) instead.
m4: device/qcom/sepolicy/common/wfdservice.te: 46: deprecated: unix_socket_connect(wfdservice, property, init) Please use set_prop(wfdservice, <property name>) instead.
m4: device/qcom/sepolicy/test/fidotest.te: 4: deprecated: unix_socket_connect(fidotest, property, init) Please use set_prop(fidotest, <property name>) instead.
m4: device/qcom/sepolicy/test/qseeproxysample.te: 31: deprecated: unix_socket_connect(qseeproxysample, property, init) Please use set_prop(qseeproxysample, <property name>) instead.
m4: device/motorola/clark/sepolicy/adspd.te: 5: deprecated: unix_socket_connect(adspd, property, init) Please use set_prop(adspd, <property name>) instead.
m4: device/motorola/clark/sepolicy/wcnss_filter.te: 1: deprecated: unix_socket_connect(wcnss_filter, property, init) Please use set_prop(wcnss_filter, <property name>) instead.
[ 0% 322/44270] host C: libsepol <= /...epol_intermediates/cil/src/cil_lexer.c
/home/kai/android/nougat/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/cil/src/cil_lexer.c:1593:1: warning: function 'yy_fatal_error' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
{
^
1 warning generated.
[ 0% 330/44270] host C: libsepol <= e...nal/selinux/libsepol/cil/src/cil_mem.c
external/selinux/libsepol/cil/src/cil_mem.c:109:7: warning: implicit declaration of function 'vasprintf' is invalid in C99 [-Wimplicit-function-declaration]
rc = vasprintf(strp, fmt, ap);
^
1 warning generated.
[ 0% 355/44270] build /home/kai/andro...bj/ETC/sepolicy_intermediates/sepolicy
FAILED: /bin/bash -c "(/home/kai/android/nougat/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/kai/android/nougat/out/target/product/clark/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/kai/android/nougat/out/target/product/clark/obj/ETC/sepolicy_intermediates/policy.conf ) && (/home/kai/android/nougat/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/kai/android/nougat/out/target/product/clark/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit /home/kai/android/nougat/out/target/product/clark/obj/ETC/sepolicy_intermediates/policy.conf.dontaudit ) && (/home/kai/android/nougat/out/host/linux-x86/bin/sepolicy-analyze /home/kai/android/nougat/out/target/product/clark/obj/ETC/sepolicy_intermediates/sepolicy.tmp permissive > /home/kai/android/nougat/out/target/product/clark/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s /home/kai/android/nougat/out/target/product/clark/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/kai/android/nougat/out/target/product/clark/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains 1>&2;	exit 1;	fi ) && (mv /home/kai/android/nougat/out/target/product/clark/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/kai/android/nougat/out/target/product/clark/obj/ETC/sepolicy_intermediates/sepolicy )"
device/motorola/clark/sepolicy/wpa.te:3:ERROR 'unknown type sudaemon' at token ';' on line 40028:
allow wpa sudaemon:unix_dgram_socket sendto;
allow wpa rild:unix_dgram_socket sendto;
checkpolicy: error(s) encountered while parsing configuration
/home/kai/android/nougat/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/kai/android/nougat/out/target/product/clark/obj/ETC/sepolicy_intermediates/policy.conf
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (01:19 (mm:ss)) ####

kai@kai-Precision-M6800:~/android/nougat$