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-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_bacon_defconfig
make[1]: Entering directory '/home/alan/porting/phablet/kernel/oneplus/msm8974'
target Strip (keep symbols): libc (/home/alan/porting/phablet/out/target/product/bacon/obj/lib/libc.so)
/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
target thumb C: adb <= system/core/adb/adb.c
target thumb C: adb <= system/core/adb/console.c
target thumb C: adb <= system/core/adb/transport.c
target thumb C: adb <= system/core/adb/transport_local.c
target thumb C: adb <= system/core/adb/transport_usb.c
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
make: *** Waiting for unfinished jobs....
target thumb C: adb <= system/core/adb/commandline.c
GEN /home/alan/porting/phablet/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory '/home/alan/porting/phablet/kernel/oneplus/msm8974'
#### make failed to build some targets (8 seconds) ####
alan@wopr:~/porting/phablet$