[Android Q&A, Help & Troubleshooting] maniknarang:
I am building CM11 for HTC Desire C...

Getting the following error(CLANG)

~/Source$ brunch cm_golfu-userdebug -j9
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140414-UNOFFICIAL-golfu
TARGET_PRODUCT=cm_golfu
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-17-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/manik/Source/out
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140414-UNOFFICIAL-golfu
TARGET_PRODUCT=cm_golfu
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-17-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/manik/Source/out
============================================
*** Build configuration changed: "cm_golfu-userdebug-{mdpi,nodpi}" -> "cm_golfu-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,et_EE,ml_IN,ku_IQ,pa_IN,es_XA,en_US,en_IN,fr_FR,it_IT,es_ES,et_EE,de_DE,nl_NL,cs_CZ,pl_PL,ja_JP,zh_TW,zh_CN,zh_HK,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,en_XA,ar_XB,fr_CA,km_KH,lo_LA,ne_NP,si_LK,mn_MN,hy_AM,az_AZ,ka_GE,ml_IN,ku_IQ,pa_IN,es_XA,normal,mdpi,nodpi mdpi}"
*** Forcing "make installclean"...
*** rm -rf /home/manik/Source/out/target/product/golfu/data/* /home/manik/Source/out/target/product/golfu/data-qemu/* /home/manik/Source/out/target/product/golfu/userdata-qemu.img /home/manik/Source/out/host/linux-x86/obj/NOTICE_FILES /home/manik/Source/out/host/linux-x86/sdk /home/manik/Source/out/target/product/golfu/*.img /home/manik/Source/out/target/product/golfu/*.txt /home/manik/Source/out/target/product/golfu/*.xlb /home/manik/Source/out/target/product/golfu/*.zip /home/manik/Source/out/target/product/golfu/*.zip.md5sum /home/manik/Source/out/target/product/golfu/kernel /home/manik/Source/out/target/product/golfu/data /home/manik/Source/out/target/product/golfu/obj/APPS /home/manik/Source/out/target/product/golfu/obj/NOTICE_FILES /home/manik/Source/out/target/product/golfu/obj/PACKAGING /home/manik/Source/out/target/product/golfu/recovery /home/manik/Source/out/target/product/golfu/root /home/manik/Source/out/target/product/golfu/system /home/manik/Source/out/target/product/golfu/dex_bootjars /home/manik/Source/out/target/product/golfu/obj/JAVA_LIBRARIES /home/manik/Source/out/target/product/golfu/obj/FAKE /home/manik/Source/out/target/product/golfu/obj/EXECUTABLES/adbd_intermediates /home/manik/Source/out/target/product/golfu/obj/EXECUTABLES/init_intermediates /home/manik/Source/out/target/product/golfu/obj/ETC/mac_permissions.xml_intermediates /home/manik/Source/out/target/product/golfu/obj/ETC/sepolicy_intermediates
*** Done with the cleaning, now starting the real build.
/home/manik/Source/out/target/product/golfu/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
*** Overlay change detected, clean shared intermediate files...
*** rm -rf /home/manik/Source/out/target/common/obj/APPS/framework-res_intermediates /home/manik/Source/out/target/common/obj/APPS/Mms_intermediates /home/manik/Source/out/target/common/obj/APPS/LatinIME_intermediates /home/manik/Source/out/target/common/obj/APPS/SystemUI_intermediates /home/manik/Source/out/target/common/obj/APPS/Trebuchet_intermediates /home/manik/Source/out/target/common/obj/APPS/LiveWallpapers_intermediates
build/core/Makefile:44: warning: overriding recipe for target '/home/manik/Source/out/target/product/golfu/root/init'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/manik/Source/out/target/product/golfu/root/init'
build/core/Makefile:44: warning: overriding recipe for target '/home/manik/Source/out/target/product/golfu/root/init.rc'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/manik/Source/out/target/product/golfu/root/init.rc'
PRODUCT_COPY_FILES device/htc/golfu/prebuilt/root/init.usb.rc:root/init.usb.rc ignored.
PRODUCT_COPY_FILES device/htc/golfu/prebuilt/root/ueventd.rc:root/ueventd.rc ignored.
PRODUCT_COPY_FILES device/htc/golfu/prebuilt/root/init.cm.rc:root/init.cm.rc ignored.
PRODUCT_COPY_FILES device/htc/golfu/prebuilt/root/init.trace.rc:root/init.trace.rc ignored.
build/core/Makefile:44: warning: overriding recipe for target '/home/manik/Source/out/target/product/golfu/system/lib/hw/camera.default.so'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/manik/Source/out/target/product/golfu/system/lib/hw/camera.default.so'
build/core/Makefile:44: warning: overriding recipe for target '/home/manik/Source/out/target/product/golfu/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/manik/Source/out/target/product/golfu/system/etc/permissions/android.software.live_wallpaper.xml'
PRODUCT_COPY_FILES device/htc/golfu/proprietary/usr/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
build/core/Makefile:44: warning: overriding recipe for target '/home/manik/Source/out/target/product/golfu/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/manik/Source/out/target/product/golfu/system/bin/rild'
build/core/Makefile:44: warning: overriding recipe for target '/home/manik/Source/out/target/product/golfu/system/bin/sdptool'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/manik/Source/out/target/product/golfu/system/bin/sdptool'
No private recovery resources for TARGET_DEVICE golfu
make -C kernel/htc/golfu O=/home/manik/Source/out/target/product/golfu/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/manik/Source/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= golfu_defconfig
Notice file: system/core/libmincrypt/NOTICE -- /home/manik/Source/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
make[1]: Entering directory '/home/manik/Source/kernel/htc/golfu'
Yacc: checkpolicy <= external/checkpolicy/policy_parse.y
prebuilts/misc/linux-x86/bison/bison -d -v -o /home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp external/checkpolicy/policy_parse.y
Export includes file: external/libsepol/Android.mk -- /home/manik/Source/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/export_includes
Lex: checkpolicy <= external/checkpolicy/policy_scan.l
Import includes file: /home/manik/Source/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/import_includes
Export includes file: external/checkpolicy/Android.mk -- /home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/export_includes
Export includes file: external/libselinux/Android.mk -- /home/manik/Source/out/host/linux-x86/obj/STATIC_LIBRARIES/libselinux_intermediates/export_includes
Import includes file: /home/manik/Source/out/host/linux-x86/obj/STATIC_LIBRARIES/libselinux_intermediates/import_includes
Export includes file: external/sepolicy/tools/Android.mk -- /home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/checkfc_intermediates/export_includes
Notice file: external/libselinux/NOTICE -- /home/manik/Source/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libselinux.a.txt
Notice file: external/sepolicy/NOTICE -- /home/manik/Source/out/target/product/golfu/obj/NOTICE_FILES/src//root/file_contexts.txt
Import includes file: /home/manik/Source/out/target/product/golfu/obj/EXECUTABLES/init_intermediates/import_includes
host Executable: clang (/home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang)
touch /home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
echo '#ifndef 'policy_parse_h > /home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#define 'policy_parse_h >> /home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
cat /home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp >> /home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#endif' >> /home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
rm -f /home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
Notice file: external/clang/lib/Analysis/NOTICE -- /home/manik/Source/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libclangAnalysis.a.txt
Notice file: external/llvm/lib/Analysis/NOTICE -- /home/manik/Source/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libLLVMAnalysis.a.txt
/home/manik/Source/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/ld: cannot open output file /home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang: Is a directory
collect2: ld returned 1 exit status
build/core/host_executable.mk:31: recipe for target '/home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang' failed
make: *** [/home/manik/Source/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang] Error 1
make: *** Waiting for unfinished jobs....
GEN /home/manik/Source/out/target/product/golfu/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#

Anybody help!:)