[Defy Q&A, Help & Troubleshooting] TheElix:
Hello Anyone, I'm trying to building CM12 using the istruction on the wiki and Quarx2k' Defy Device Code. But When I try to build, it fails.

Here's the "brunch jordan" code:

including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0.2
CM_VERSION=12-20150701-UNOFFICIAL-jordan
TARGET_PRODUCT=cm_jordan
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a8
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-37-generic-x86_64-with-LinuxMint-17.1-rebecca
HOST_BUILD_TYPE=release
BUILD_ID=LRX22G
OUT_DIR=/media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0.2
CM_VERSION=12-20150701-UNOFFICIAL-jordan
TARGET_PRODUCT=cm_jordan
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a8
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-37-generic-x86_64-with-LinuxMint-17.1-rebecca
HOST_BUILD_TYPE=release
BUILD_ID=LRX22G
OUT_DIR=/media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out
============================================
Checking build tools versions...
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
"ebtables is disabled on this build"
PRODUCT_COPY_FILES system/core/rootdir/init.usb.rc:root/init.usb.rc ignored.
build/core/Makefile:46: warning: overriding commands for target `/media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/system/etc/firmware/ti-connectivity/wl127x-fw-4-mr.bin'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/system/etc/firmware/ti-connectivity/wl127x-fw-4-mr.bin'
build/core/Makefile:46: warning: overriding commands for target `/media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/system/etc/firmware/ti-connectivity/wl127x-fw-4-plt.bin'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/system/etc/firmware/ti-connectivity/wl127x-fw-4-plt.bin'
build/core/Makefile:46: warning: overriding commands for target `/media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/system/etc/firmware/ti-connectivity/wl127x-fw-4-sr.bin'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/system/etc/firmware/ti-connectivity/wl127x-fw-4-sr.bin'
build/core/Makefile:46: warning: overriding commands for target `/media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/system/bin/wifical.sh'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/system/bin/wifical.sh'
No private recovery resources for TARGET_DEVICE jordan
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libcurl/curl/curl.h
Export includes file: system/core/libmincrypt/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libcurl/curl/curlrules.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libcurl/curl/curlbuild.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libcurl/curl/curlver.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libcurl/curl/easy.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libcurl/curl/mprintf.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libcurl/curl/multi.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libcurl/curl/stdcheaders.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libcurl/curl/typecheck-gcc.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj/include/libexpat/expat.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj/include/libexpat/expat_external.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libexpat/expat.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libexpat/expat_external.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj/include/libpng/png.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj/include/libpng/pngconf.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj/include/libpng/pngusr.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libpng/png.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libpng/pngconf.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libpng/pngusr.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj/include/selinux/selinux.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj/include/selinux/label.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj/include/selinux/context.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj/include/selinux/avc.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj/include/selinux/android.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/selinux/selinux.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/selinux/label.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/selinux/context.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/selinux/avc.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/selinux/android.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c-private.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libsonivox/eas.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libsonivox/eas_types.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libsonivox/eas_reverb.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libsonivox/jet.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libsonivox/ARM_synth_constants_gnu.inc
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libwpa_client/wpa_ctrl.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/libwpa_client/qca-vendor.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/sdk/softap/include/qsap_api.h
Header: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/include/sdk/softap/include/qsap.h
Import includes file: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/import_includes
Export includes file: system/core/mkbootimg/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/mkbootimg_intermediates/export_includes
Export includes file: build/libs/host/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/export_includes
Import includes file: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/import_includes
Export includes file: build/tools/acp/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/acp_intermediates/export_includes
mkdir -p /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/KERNEL_OBJ
Notice file: system/core/libmincrypt/NOTICE -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
mkdir -p /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/system/lib/modules
Import includes file: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/import_includes
Export includes file: system/core/cpio/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/export_includes
Yacc: checkpolicy <= external/checkpolicy/policy_parse.y
prebuilts/misc/linux-x86/bison/bison -d -v -o /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp external/checkpolicy/policy_parse.y
Export includes file: external/libsepol/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/export_includes
Lex: checkpolicy <= external/checkpolicy/policy_scan.l
Import includes file: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/import_includes
Export includes file: external/checkpolicy/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/export_includes
Export includes file: external/libselinux/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/export_includes
Export includes file: external/pcre/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/export_includes
Import includes file: /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/import_includes
Export includes file: external/sepolicy/tools/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkfc_intermediates/export_includes
Notice file: external/libselinux/NOTICE -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libselinux.a.txt
touch /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
Notice file: external/sepolicy/NOTICE -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/NOTICE_FILES/src//root/file_contexts.txt
echo '#ifndef 'policy_parse_h > /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#define 'policy_parse_h >> /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
cat /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp >> /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#endif' >> /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
Export includes file: bionic/libc/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/SHARED_LIBRARIES/libc_intermediates/export_includes
Export includes file: bionic/libm/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/SHARED_LIBRARIES/libm_intermediates/export_includes
Export includes file: bionic/libc/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/SHARED_LIBRARIES/libstdc++_intermediates/export_includes
Export includes file: system/core/fs_mgr/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/STATIC_LIBRARIES/libfs_mgr_intermediates/export_includes
Export includes file: system/core/logwrapper/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/STATIC_LIBRARIES/liblogwrap_intermediates/export_includes
Export includes file: system/core/libcutils/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/STATIC_LIBRARIES/libcutils_intermediates/export_includes
Export includes file: system/core/liblog/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/STATIC_LIBRARIES/liblog_intermediates/export_includes
Export includes file: bionic/libc/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/STATIC_LIBRARIES/libc_intermediates/export_includes
Export includes file: external/libselinux/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/STATIC_LIBRARIES/libselinux_intermediates/export_includes
Export includes file: system/core/libmincrypt/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
Export includes file: system/extras/ext4_utils/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/STATIC_LIBRARIES/libext4_utils_static_intermediates/export_includes
Export includes file: external/e2fsprogs/lib/blkid/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/STATIC_LIBRARIES/libext2_blkid_intermediates/export_includes
Export includes file: external/e2fsprogs/lib/uuid/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/STATIC_LIBRARIES/libext2_uuid_intermediates/export_includes
make: *** No rule to make target `/media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/STATIC_LIBRARIES/libinit_omap3_intermediates/export_includes', needed by `/media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/EXECUTABLES/init_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/compiler-rt/Android.mk -- /media/theelix/ef5803fb-d2d8-4a0c-9d2b-454c7201147a/android/system/out/target/product/jordan/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/export_includes

I think the problem is the missing libinit_omap3_intermediates/export_includes. But I can't find it Anywhere.

What I did Wrong? How do I fix it?