alan@wopr:~/porting/phablet$ make -j16
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20160318-UNOFFICIAL-bacon
TARGET_PRODUCT=cm_bacon
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-13-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=LMY48W
OUT_DIR=/home/alan/porting/phablet/out
============================================
build/core/base_rules.mk:550: warning: overriding recipe for target '/home/alan/porting/phablet/out/target/product/bacon/recovery/root/sbin/make_ext4fs'
bootable/recovery/Android.mk:188: warning: ignoring old recipe for target '/home/alan/porting/phablet/out/target/product/bacon/recovery/root/sbin/make_ext4fs'
build/core/Makefile:46: warning: overriding recipe for target '/home/alan/porting/phablet/out/target/product/bacon/system/etc/apns-conf.xml'
build/core/base_rules.mk:550: warning: ignoring old recipe for target '/home/alan/porting/phablet/out/target/product/bacon/system/etc/apns-conf.xml'
No private recovery resources for TARGET_DEVICE bacon
device/oneplus/bacon/mkbootimg.mk:21: warning: overriding recipe for target '/home/alan/porting/phablet/out/target/product/bacon/dt.img'
build/core/generate_extra_images.mk:112: warning: ignoring old recipe for target '/home/alan/porting/phablet/out/target/product/bacon/dt.img'
make -C kernel/oneplus/msm8974 O=/home/alan/porting/phablet/out/target/product/bacon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/alan/porting/phablet/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-" headers_install
make[1]: Entering directory '/home/alan/porting/phablet/kernel/oneplus/msm8974'
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_aeabi_intermediates/libc_aeabi.a]
/home/alan/porting/phablet/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/alan/porting/phablet/out/target/product/bacon/obj/ETC/sepolicy_intermediates/policy.conf
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_bionic_intermediates/libc_bionic.a]
preparing StaticLib: libselinux [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libminshacrypt_intermediates/libminshacrypt.a]
preparing StaticLib: libminui [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libadf_intermediates/libadf.a]
target StaticLib: libutils (/home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libutils_intermediates/libutils.a)
preparing StaticLib: libselinux [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libpcre_intermediates/libpcre.a]
Install: /home/alan/porting/phablet/out/host/linux-x86/bin/checkseapp
target StaticLib: libminui (/home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libminui_intermediates/libminui.a)
target StaticLib: libhealthd.default (/home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libhealthd.default_intermediates/libhealthd.default.a)
device/oneplus/bacon/sepolicy/system_server.te:10:ERROR 'unknown type rtc_device' at token ';' on line 11198:
allow system_server rtc_device:chr_file { { getattr open read ioctl lock } { open append write } };
# timerfd
checkpolicy: error(s) encountered while parsing configuration
external/sepolicy/Android.mk:123: recipe for target '/home/alan/porting/phablet/out/target/product/bacon/obj/ETC/sepolicy_intermediates/sepolicy' failed
make: *** [/home/alan/porting/phablet/out/target/product/bacon/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
Install: /home/alan/porting/phablet/out/target/product/bacon/system/app/PPPreference/PPPreference.apk
make: *** Waiting for unfinished jobs....
acp: file '/home/alan/porting/phablet/out/target/product/bacon/obj/APPS/PPPreference_intermediates/package.apk' does not exist
build/core/base_rules.mk:550: recipe for target '/home/alan/porting/phablet/out/target/product/bacon/system/app/PPPreference/PPPreference.apk' failed
make: *** [/home/alan/porting/phablet/out/target/product/bacon/system/app/PPPreference/PPPreference.apk] Error 1
target StaticLib: libselinux (/home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libselinux_intermediates/libselinux.a)
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_cxa_intermediates/libc_cxa.a]
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_dns_intermediates/libc_dns.a]
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_freebsd_intermediates/libc_freebsd.a]
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_gdtoa_intermediates/libc_gdtoa.a]
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_malloc_intermediates/libc_malloc.a]
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_netbsd_intermediates/libc_netbsd.a]
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_openbsd_intermediates/libc_openbsd.a]
CHK include/linux/version.h
make[1]: Leaving directory '/home/alan/porting/phablet/kernel/oneplus/msm8974'
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_stack_protector_intermediates/libc_stack_protector.a]
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_syscalls_intermediates/libc_syscalls.a]
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_tzcode_intermediates/libc_tzcode.a]
preparing StaticLib: libc_common [including /home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libjemalloc_intermediates/libjemalloc.a]
target StaticLib: libc_common (/home/alan/porting/phablet/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a)
#### make failed to build some targets (8 seconds) ####