[ONE Android Development] hammer-is:
How to build this ROM?

[MENTION=4986658]freshgiammi[/MENTION] great ROM and I really like your no-nonsense approach!

I'm trying to build using your manifest, but I'm having issues. I've build variations of CyanogenMod for different devices for some years so I have some build experience but I've never tried building AOSP based ROMs so it might be something very basic that I dont understand. Hope you can help me out.

I'm on Linux Mint 18.1 / openjdk 1.8 (and it builds LineageOS 14.1 without issues) - what Linux/environment are you using for building?

I build like this:

repo init -u https://github.com/AOSPlusone/platform_manifest -b aosp-7.1
repo sync
make clobber
. build/envsetup.sh
lunch aosp_bacon-userdebug
make -j8

First I got this error when building the kernel.

FAILED: /bin/bash -c "(make -j4 -C kernel/oneplus/msm8974 O=[b]out/target/product/bacon/obj/KERNEL_OBJ[/b] ARCH=arm CROSS_COMPILE=\"/home/martin/src/AOSPlusone/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androideabi-\" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= bacon_defconfig ) && (if [ ! -z \"\" ]; then	echo \"Overriding kernel config with ''\";	echo >> out/target/product/bacon/obj/KERNEL_OBJ/.config;	make -j4 -C kernel/oneplus/msm8974 O=out/target/product/bacon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\"/home/martin/src/AOSPlusone/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androideabi-\" oldconfig; fi ) && (if [ ! -z \"\" ]; then	echo \"Using additional config ''\";	kernel/oneplus/msm8974/scripts/kconfig/merge_config.sh -m -O out/target/product/bacon/obj/KERNEL_OBJ out/target/product/bacon/obj/KERNEL_OBJ/.config kernel/oneplus/msm8974/arch/arm/configs/;	make -j4 -C kernel/oneplus/msm8974 O=out/target/product/bacon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\"/home/martin/src/AOSPlusone/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androideabi-\" KCONFIG_ALLCONFIG=out/target/product/bacon/obj/KERNEL_OBJ/.config alldefconfig; fi )"
make: Entering directory '/home/martin/src/AOSPlusone/kernel/oneplus/msm8974'
/bin/sh: 1: cd: can't cd to out/target/product/bacon/obj/KERNEL_OBJ
Makefile:121: *** output directory "out/target/product/bacon/obj/KERNEL_OBJ" does not exist. Stop.
make: Leaving directory '/home/martin/src/AOSPlusone/kernel/oneplus/msm8974'

But I was able to solve/get past this error by modifying kernel.mk to use an absolute path for the O= parameter. If you know how this can be solved cleaner please let me know.

Now I have this error that I don't know how I can solve. Can you help?

FAILED: /bin/bash -c "(build/core/tasks/check_boot_jars/check_boot_jars.py build/core/tasks/check_boot_jars/package_whitelist.txt out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/classes.jar ) && (mkdir -p out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/ && touch out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp )"
[b]Error: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar: unknown package name of class file org/codeaurora/camera/ExtendedFace.class[/b]