[Xiaomi Mi 2] AndyYan:
Alright, just a quick news: it looks like official CM12.1 builds are rolling off the server as of now. Hopefully I'll have better luck building one later... But with that repo problem in the way I don't think the situation will change :(

Edit: Some progress - managed to get rid of the 1st error about the repo (cleared vendor/xiaomi and re-synced), but the second still exists. I checked the lunch menu but found no CM devices in it, which made me even more suspicious. [MENTION=3530648]m11kkaa[/MENTION]

...

Edit2: WTF, further progress! I checked device/xiaomi/aries/cm.dependencies, and removed an extra comma, and the lunch command progressed! But still I hit another wall:

lunch cm_aries-userdebug
Looking for dependencies
Adding dependencies to manifest
CyanogenMod/android_kernel_xiaomi_aries already exists
Adding dependency: CyanogenMod/android_hardware_qcom_power -> hardware/qcom/power
Using default branch for android_hardware_qcom_power
Syncing dependencies
Fetching project M1cha/android_kernel_xiaomi_aries
Fetching project CyanogenMod/android_hardware_qcom_power
Fetching projects: 50% (1/2) fatal: Couldn't find remote ref refs/heads/cm-12.1
fatal: Couldn't find remote ref refs/heads/cm-12.1
error: Cannot fetch CyanogenMod/android_hardware_qcom_power

error: Exited sync due to fetch errors
Looking for dependencies
Dependencies file not found, bailing out.
Looking for dependencies
Dependencies file not found, bailing out.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1
CM_VERSION=12.1-20150418-UNOFFICIAL-aries
TARGET_PRODUCT=cm_aries
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-31-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY47O
OUT_DIR=/home/crossgate/cm-build/out
============================================

Which results in the following when building:

brunch cm_aries-userdebug
including vendor/cm/vendorsetup.sh
Looking for dependencies
Adding dependencies to manifest
CyanogenMod/android_kernel_xiaomi_aries already exists
Syncing dependencies
Fetching project M1cha/android_kernel_xiaomi_aries
Fetching projects: 100% (1/1), done.

Looking for dependencies
Dependencies file not found, bailing out.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1
CM_VERSION=12.1-20150418-UNOFFICIAL-aries
TARGET_PRODUCT=cm_aries
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-31-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY47O
OUT_DIR=/home/crossgate/cm-build/out
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1
CM_VERSION=12.1-20150418-UNOFFICIAL-aries
TARGET_PRODUCT=cm_aries
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-31-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY47O
OUT_DIR=/home/crossgate/cm-build/out
============================================
find: `dummy': No such file or directory
hardware/qcom/audio-caf/msm8960/Android.mk:15: hardware/qcom/audio-caf/msm8960/voice_processing/Android.mk: No such file or directory
hardware/qcom/audio-caf/msm8960/Android.mk:16: hardware/qcom/audio-caf/msm8960/mm-audio/Android.mk: No such file or directory
hardware/qcom/audio-caf/msm8960/Android.mk:17: hardware/qcom/audio-caf/msm8960/policy_hal/Android.mk: No such file or directory
hardware/qcom/audio-caf/msm8960/Android.mk:18: hardware/qcom/audio-caf/msm8960/visualizer/Android.mk: No such file or directory
hardware/qcom/audio-caf/msm8960/Android.mk:19: hardware/qcom/audio-caf/msm8960/audiod/Android.mk: No such file or directory
hardware/qcom/audio-caf/msm8960/Android.mk:20: hardware/qcom/audio-caf/msm8960/post_proc/Android.mk: No such file or directory
build/core/base_rules.mk:154: *** hardware/qcom/power: MODULE.TARGET.SHARED_LIBRARIES.power.msm8960 already defined by device/qcom/common/power. Stop.

I'm out of ideas for today...