[LineageOS Questions & Answers] quesec:
Hey all! I ve tryed to build the LineageOS for my Nexus 5 Hammerheadcaf phone, but I run into issues. I synced the repo like this:

repo init -u github.com/LineageOS/android.git -b cm-14.1

repo sync

After this i run the first build like this:

source build/envsetup.sh

breakfast hammerhead

brunch hammerhead

After this I run into trouble cause the vendor libs were missing. So I installed LineageOS on the smartphone (stockrom) and than I used the

from here: wiki.lineageos.org/devices/hammerhead/build

Several binaries were pulled and I could move on a bit. Now it seems to hang here and I got no clue how to solve this in a regular way. The file seems to be missing (libwifi-hal-mock_intermediates). I also could not find this file on the smartphone with the regular Lineageos? I guess it is possible to remove this file out of the dependencies? Could you please tell me how and why is LineageOS CM 14.1 looking for this file on nexus 5 hammerheadcaf? Here is the log:

============================================
Running kati to generate build-lineage_hammerhead.ninja...
/home/android/android/lineage/out/build-lineage_hammerhead.ninja is missing, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20170718-UNOFFICIAL-hammerhead
TARGET_PRODUCT=lineage_hammerhead
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.8.0-58-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=NJH47D
OUT_DIR=/home/android/android/lineage/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: "/home/android/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates": Datei oder Verzeichnis nicht gefunden
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
build/core/base_rules.mk:183: *** vendor/lge/proprietary_vendor_lge/hammerhead: MODULE.TARGET.APPS.TimeService already defined by vendor/lge/hammerhead.
build/core/ninja.mk:166: die Regel für Ziel „/home/android/android/lineage/out/build-lineage_hammerhead.ninja“ scheiterte
make: *** [/home/android/android/lineage/out/build-lineage_hammerhead.ninja] Fehler 1
make: Verzeichnis „/home/android/android/lineage“ wird verlassen

#### make failed to build some targets (01:12 (mm:ss)) ####

possible reason? --> /home/android/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates not found?

Could you please help me to build this lineageos for my phone? nexus 5 hammerhead (hammerheadcaf) CM 14-1. I am using Ubuntu 16.04 LTS to compile this and got aosp working.