[Nexus 5 Developer Discussion [Developers Only]] Gene Poole:
Has anyone gotten M to build?

Just did an init(1), sync, install binaries(2), lunch, but then make fails after only a few minutes in.

Here are the last few lines before it fails I can't make any sense of it:

including ./system/media/camera/src/Android.mk ...
including ./system/media/camera/tests/Android.mk ...
including ./system/media/radio/src/Android.mk ...
including ./system/netd/Android.mk ...
including ./system/security/keystore-engine/Android.mk ...
including ./system/security/keystore/Android.mk ...
including ./system/security/softkeymaster/Android.mk ...
including ./system/vold/Android.mk ...
including ./tools/external/fat32lib/Android.mk ...
including ./vendor/lge/hammerhead/proprietary/Android.mk ...
including ./vendor/qcom/hammerhead/proprietary/Android.mk ...
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES vendor/broadcom/hammerhead/proprietary/bcm4335c0.hcd:system/vendor/firmware/bcm4335c0.hcd:broadcom ignored.
build/core/Makefile:34: warning: overriding recipe for target 'out/target/product/hammerhead/system/lib/hw/gps.msm8974.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target 'out/target/product/hammerhead/system/lib/hw/gps.msm8974.so'
build/core/Makefile:34: warning: overriding recipe for target 'out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target 'out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/Makefile:34: warning: overriding recipe for target 'out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target 'out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/Makefile:34: warning: overriding recipe for target 'out/target/product/hammerhead/system/lib/libloc_eng.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target 'out/target/product/hammerhead/system/lib/libloc_eng.so'
No private recovery resources for TARGET_DEVICE hammerhead
Import includes file: out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/import_includes
host C: libcompiler_rt-extras <= external/compiler-rt/lib/builtins/mulodi4.c
Import includes file: out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/import_includes
prebuilts/clang/linux-x86/host/3.6/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
build/core/binary.mk:801: recipe for target 'out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/lib/builtins/mulodi4.o' failed
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/lib/builtins/mulodi4.o] Error 127
make: *** Waiting for unfinished jobs....
host C++: libc++abi <= external/libcxxabi/src/abort_message.cpp
prebuilts/clang/linux-x86/host/3.6/bin/clang++: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
build/core/binary.mk:706: recipe for target 'out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/src/abort_message.o' failed
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/src/abort_message.o] Error 127

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

1. repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.0_r1

2. https://developers.google.com/android/nexus/drivers#hammerheadmra58k