[Android Q&A, Help & Troubleshooting] webstar1:
After following this thread:

http://xdaforums.com/showthread.php?t=2320007

I still get the following errors:

zohaib@zohaib-eME732:~/rom/android/system$ . build/envsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/goldfish/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/htc/pyramid/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including vendor/pac/vendorsetup.sh
including vendor/pa/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash
zohaib@zohaib-eME732:~/rom/android/system$ lunch cm_pyramid-eng
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
CM_VERSION=10.2-20130826-UNOFFICIAL-pyramid
TARGET_PRODUCT=cm_pyramid
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=scorpion
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-21-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=JSS15Q
OUT_DIR=/home/zohaib/rom/android/system/out
============================================

zohaib@zohaib-eME732:~/rom/android/system$ brunch cm_pyramid-eng
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
CM_VERSION=10.2-20130826-UNOFFICIAL-pyramid
TARGET_PRODUCT=cm_pyramid
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=scorpion
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-21-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=JSS15Q
OUT_DIR=/home/zohaib/rom/android/system/out
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
CM_VERSION=10.2-20130826-UNOFFICIAL-pyramid
TARGET_PRODUCT=cm_pyramid
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=scorpion
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-21-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=JSS15Q
OUT_DIR=/home/zohaib/rom/android/system/out
============================================
*** Build configuration changed: "cm_pyramid-userdebug-{en_US,en_US,cs_CZ,da_DK,de_AT,de_CH,de_DE,de_LI,el_GR,en_AU,en_CA,en_GB,en_NZ,en_SG,eo_EU,es_ES,fr_CA,fr_CH,fr_BE,fr_FR,it_CH,it_IT,ja_JP,ko_KR,nb_NO,nl_BE,nl_NL,pl_PL,pt_PT,ru_RU,sv_SE,tr_TR,zh_CN,zh_HK,zh_TW,am_ET,hi_IN,ug_CN,en_US,fr_FR,it_IT,es_ES,de_DE,nl_NL,cs_CZ,pl_PL,ja_JP,zh_TW,zh_CN,ru_RU,ko_KR,nb_NO,es_US,da_DK,el_GR,tr_TR,pt_PT,pt_BR,rm_CH,sv_SE,bg_BG,ca_ES,en_GB,fi_FI,hi_IN,hr_HR,hu_HU,in_ID,iw_IL,lt_LT,lv_LV,ro_RO,sk_SK,sl_SI,sr_RS,uk_UA,vi_VN,tl_PH,ar_EG,fa_IR,th_TH,sw_TZ,ms_MY,af_ZA,zu_ZA,am_ET,hi_IN,ug_CN,en_XA,ar_XB,fr_CA,normal,hdpi,nodpi hdpi}" -> "cm_pyramid-eng-{en_US,en_US,cs_CZ,da_DK,de_AT,de_CH,de_DE,de_LI,el_GR,en_AU,en_CA,en_GB,en_NZ,en_SG,eo_EU,es_ES,fr_CA,fr_CH,fr_BE,fr_FR,it_CH,it_IT,ja_JP,ko_KR,nb_NO,nl_BE,nl_NL,pl_PL,pt_PT,ru_RU,sv_SE,tr_TR,zh_CN,zh_HK,zh_TW,am_ET,hi_IN,ug_CN,en_US,fr_FR,it_IT,es_ES,de_DE,nl_NL,cs_CZ,pl_PL,ja_JP,zh_TW,zh_CN,ru_RU,ko_KR,nb_NO,es_US,da_DK,el_GR,tr_TR,pt_PT,pt_BR,rm_CH,sv_SE,bg_BG,ca_ES,en_GB,fi_FI,hi_IN,hr_HR,hu_HU,in_ID,iw_IL,lt_LT,lv_LV,ro_RO,sk_SK,sl_SI,sr_RS,uk_UA,vi_VN,tl_PH,ar_EG,fa_IR,th_TH,sw_TZ,ms_MY,af_ZA,zu_ZA,am_ET,hi_IN,ug_CN,en_XA,ar_XB,fr_CA,normal,hdpi,nodpi hdpi}"
*** Forcing "make installclean"...
*** rm -rf /home/zohaib/rom/android/system/out/target/product/pyramid/data/* /home/zohaib/rom/android/system/out/target/product/pyramid/data-qemu/* /home/zohaib/rom/android/system/out/target/product/pyramid/userdata-qemu.img /home/zohaib/rom/android/system/out/host/linux-x86/obj/NOTICE_FILES /home/zohaib/rom/android/system/out/host/linux-x86/sdk /home/zohaib/rom/android/system/out/target/product/pyramid/*.img /home/zohaib/rom/android/system/out/target/product/pyramid/*.txt /home/zohaib/rom/android/system/out/target/product/pyramid/*.xlb /home/zohaib/rom/android/system/out/target/product/pyramid/*.zip /home/zohaib/rom/android/system/out/target/product/pyramid/*.zip.md5sum /home/zohaib/rom/android/system/out/target/product/pyramid/data /home/zohaib/rom/android/system/out/target/product/pyramid/obj/APPS /home/zohaib/rom/android/system/out/target/product/pyramid/obj/NOTICE_FILES /home/zohaib/rom/android/system/out/target/product/pyramid/obj/PACKAGING /home/zohaib/rom/android/system/out/target/product/pyramid/recovery /home/zohaib/rom/android/system/out/target/product/pyramid/root /home/zohaib/rom/android/system/out/target/product/pyramid/system /home/zohaib/rom/android/system/out/target/product/pyramid/dex_bootjars /home/zohaib/rom/android/system/out/target/product/pyramid/obj/JAVA_LIBRARIES /home/zohaib/rom/android/system/out/target/product/pyramid/obj/FAKE /home/zohaib/rom/android/system/out/target/product/pyramid/obj/EXECUTABLES/adbd_intermediates /home/zohaib/rom/android/system/out/target/product/pyramid/obj/EXECUTABLES/init_intermediates /home/zohaib/rom/android/system/out/target/product/pyramid/obj/ETC/mac_permissions.xml_intermediates /home/zohaib/rom/android/system/out/target/product/pyramid/obj/ETC/sepolicy_intermediates
*** Done with the cleaning, now starting the real build.
build/core/Makefile:44: warning: overriding commands for target `/home/zohaib/rom/android/system/out/target/product/pyramid/system/etc/mkshrc'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/home/zohaib/rom/android/system/out/target/product/pyramid/system/etc/mkshrc'
build/core/Makefile:44: warning: overriding commands for target `/home/zohaib/rom/android/system/out/target/product/pyramid/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/home/zohaib/rom/android/system/out/target/product/pyramid/system/etc/permissions/android.software.live_wallpaper.xml'
PRODUCT_COPY_FILES device/common/gps/gps.conf_US:system/etc/gps.conf ignored.
PRODUCT_COPY_FILES device/htc/pyramid/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
No private recovery resources for TARGET_DEVICE pyramid
build/core/tasks/kernel.mk:56: ***************************************************************
build/core/tasks/kernel.mk:57: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:58: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:59: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:60: * source repository to kernel/htc/msm8660
build/core/tasks/kernel.mk:61: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:62: * for more information *
build/core/tasks/kernel.mk:63: ***************************************************************
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: libmincrypt <= system/core/libmincrypt/rsa.c
ccache: failed to create /home/.cache (Permission denied)
make: *** [/home/zohaib/rom/android/system/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 1
make: *** Waiting for unfinished jobs....
host C: libmincrypt <= system/core/libmincrypt/rsa_e_3.c
ccache: failed to create /home/.cache (Permission denied)
make: *** [/home/zohaib/rom/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/rsa.o] Error 1
ccache: failed to create /home/.cache (Permission denied)
make: *** [/home/zohaib/rom/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/rsa_e_3.o] Error 1
zohaib@zohaib-eME732:~/rom/android/system$