[Nexus 6P Q&A, Help & Troubleshooting] kronflux:
So I'm just trying to build CM14(I'm well aware it's basically stock android at this point), and I'm getting quite far in the build process, but getting some errors. I was hoping someone a little more experienced might be able to give me some insight on what the issue is.

Here's the most recent bit from the console:

/home/kronflux/android/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/kronflux/android/out/target/product/angler/obj/ETC/sepolicy.recovery_intermediates/policy_recovery.conf
host Java: dumpkey (/home/kronflux/android/out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/classes)
device/huawei/angler/sepolicy/file.te:30:ERROR 'duplicate declaration of type/attribute' at token ';' on line 21108:
type sysfs_thermal, sysfs_type, fs_type;
type sysfs_surfaceflinger, fs_type, sysfs_type;
checkpolicy: error(s) encountered while parsing configuration
system/sepolicy/Android.mk:140: recipe for target '/home/kronflux/android/out/target/product/angler/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery' failed
make: *** [/home/kronflux/android/out/target/product/angler/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
make: *** Waiting for unfinished jobs....
target Export Resources: framework-res (/home/kronflux/android/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)
nothing matches overlay file default_wallpaper.png, for flavor hdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xhdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xxhdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xxxhdpi-v4
frameworks/base/core/res/res/values/cm_symbols.xml:21: warning: <private-symbols> is deprecated. Use the command line flag --private-symbols instead.

frameworks/base/core/res/res/values/cm_symbols.xml:21: warning: private symbol package already specified. Ignoring...

warning: string 'allow_button' has no default translation.
warning: string 'deny_button' has no default translation.
warning: string 'gsm_alphabet_default_charset' has no default translation.
warning: string 'other_permissions' has no default translation.
warning: string 'permission_title' has no default translation.
res/drawable-nodpi-v4/default_wallpaper.png:0: error: Resource entry default_wallpaper is already defined.
res/drawable-nodpi-v4/default_wallpaper.jpg:0: Originally defined here.

device/huawei/angler/overlay/frameworks/base/core/res/res/values/config.xml:29: error: Resource at config_orientationSensorType appears in overlay but not in the base package; use <add-resource> to add.

build/core/package_internal.mk:389: recipe for target '/home/kronflux/android/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk' failed
make: *** [/home/kronflux/android/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file '/home/kronflux/android/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
make: Leaving directory '/home/kronflux/android'

#### make failed to build some targets (04:00:18 (hh:mm:ss)) ####