[Android Q&A, Help & Troubleshooting] espmartin:
Hello All,

(Let me first say that I can successfully repo sync and build CM 10.1 on my Ubuntu 12.10 64bit PC without any issues)

I have forked AOKP's (and PipelinerArd) AOKP build - to build on my phone. I have successfully built it ONLY ONCE. I am currently running that build on my phone, and it's awesome and smooth. But now, I cannot build at all, as I always get this at the end of the build (looks like it's just echoing the build script), which just stops the build and drops me to the terminal prompt:

make[1]: Leaving directory `/home/martin/SchutzhundAOKP/kernel/htc/KangBanged-7x30'
make -C kernel/htc/KangBanged-7x30 O=/home/martin/SchutzhundAOKP/out/target/product/ace/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE="/home/martin/SchutzhundAOKP/prebuilts/misc/linux-x86/ccache/ccache /home/martin/SchutzhundAOKP/prebuilt/linux-x86/toolchain/arm-eabi-4.7/bin/arm-eabi-" modules_install
make[1]: Entering directory `/home/martin/SchutzhundAOKP/kernel/htc/KangBanged-7x30'
INSTALL drivers/net/wireless/bcmdhd/bcmdhd.ko
INSTALL drivers/scsi/scsi_wait_scan.ko
DEPMOD 3.0.69KangBang-Kernel-gc5eb57d
make[1]: Leaving directory `/home/martin/SchutzhundAOKP/kernel/htc/KangBanged-7x30'
mdpath=`find /home/martin/SchutzhundAOKP/out/target/product/ace/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do /home/martin/SchutzhundAOKP/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-strip --strip-unneeded $i; mv $i /home/martin/SchutzhundAOKP/out/target/product/ace/system/lib/modules/; done; fi
mdpath=`find /home/martin/SchutzhundAOKP/out/target/product/ace/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
martin@martin-desktop:~/SchutzhundAOKP$

I've tried multiple changes to my repo with suggestions from Pipelinerard and Google Groups - and even just repo sync'd the AOKP git to verify it's not anything I did on my repo, but same issue still.

Again - I can build CM 10.1 fine (I've tried multiple times to build CM to see if it was my build environment that was at fault, and CM builds every time, so that's not the issue.)

So I've tried to make this work by adding the kernel_manifest (and support file "manual_add_kernel_manifest.sh") per AOKP's git repo's readme, and that "repo sync" is fine. Everything syncs perfect, but again, I get that "error" at the end of every "mka bacon".

History:

Anyway - after my first and only time building AOKP successfully, I tried to pull some Cyanogenmod's MMS repos (just as tests to see if I could, as I want to learn all I can about building ROMs), as well as try to add in Proximity Recalibrater as a Prebuilt, into my build. And since then, I haven't been able to build at all anymore. I've even "rm -rf" my aokp folder, and started fresh, but I still get that same issue that happens, no build and that kernel stuff dumped to terminal before it ends.

Here are my terminal commands:

repo init -u git://github.com/espmartin/platform_manifest.git -b jb-mr1
repo sync -j8
. ./platform_manifest/manual_add_kernel_manifest.sh [COLOR="Red"]<-- added when I forked AOKP repo, using their readme as a guide.[/COLOR]

make clean
source build/envsetup.sh
lunch aokp_ace-userdebug
mka bacon -j4

So - since I still can build CM every time (and they boot up on my phone lol), it has to be something really stupid I'm doing with my aokp stuff... So, what's your thoughts?