[LineageOS Questions & Answers] magatxda:
Hello,

I'm trying to build the lineageOS cm-14.1 version for Cancro

I did

$ repo init -u ssh://git@github.com/LineageOS/android.git -b cm-14.1
$ repo sync
$ breakfast cancro
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/xiaomi/cancro
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
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_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================

Then:

$ brunch cancro
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/xiaomi/cancro
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
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_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
make: Entering directory '/path/to/android/system'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
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_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
Running kati to generate build-lineage_cancro.ninja...
Environment variable BUILD_NUMBER was modified (8e31167344 => 8b61fedda4), regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
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_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/path/to/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
No private recovery resources for TARGET_DEVICE cancro
build/core/java.mk:334: warning: overriding commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/bin/wcnss_service'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/bin/wcnss_service'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b00'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b00'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b01'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b01'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b02'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b02'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b04'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b04'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b06'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b06'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b07'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b07'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b08'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b08'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b09'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b09'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.mdt'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.mdt'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libc2dcolorconvert.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libc2dcolorconvert.so'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libOmxVenc.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libOmxVenc.so'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/path/to/android/system/out/target/product/cancro/obj/lib/libtime_genoff.so.toc', needed by '/path/to/android/system/out/target/product/cancro/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/path/to/android/system'

#### make failed to build some targets (22 seconds) ####

Ending with

ninja: error: '/path/to/android/system/out/target/product/cancro/obj/lib/libtime_genoff.so.toc', needed by '/path/to/android/system/out/target/product/cancro/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/path/to/android/system'

I did extract the binaries from a cancro phone running cyanogenmod 14.1.

What is the step I am missing?