[Nexus 5 Android Development] sms2000:
My N5 PureNexus build always fails with:

====================

Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /mnt/development/AOSP/PureNexus/kernel/lge/hammerhead/kernel/timeconst.pl line 373.

/mnt/development/AOSP/PureNexus/kernel/lge/hammerhead/kernel/Makefile:129: recipe for target 'kernel/timeconst.h' failed

make[3]: *** [kernel/timeconst.h] Error 255

/mnt/development/AOSP/PureNexus/kernel/lge/hammerhead/Makefile:950: recipe for target 'kernel' failed

make[2]: *** [kernel] Error 2

make[2]: *** Waiting for unfinished jobs....

CC mm/maccess.o

CC arch/arm/mach-msm/krait-scm.o

CC mm/page_alloc.o

CC mm/page-writeback.o

CC arch/arm/mach-msm/perf_debug.o

AS arch/arm/mach-msm/headsmp.o

CC arch/arm/mach-msm/platsmp.o

CC arch/arm/mach-msm/hotplug.o

AS arch/arm/mach-msm/idle-v7.o

CC arch/arm/mach-msm/smd.o

CC mm/readahead.o

CC mm/swap.o

CC mm/truncate.o

CC mm/vmscan.o

CC mm/shmem.o

CC arch/arm/mach-msm/smd_debug.o

CC mm/prio_tree.o

CC arch/arm/mach-msm/remote_spinlock.o

CC mm/util.o

/tmp/ccOOdR7m.s: Assembler messages:

/tmp/ccOOdR7m.s:242: Warning: swp{b} use is deprecated for ARMv6 and ARMv7

/tmp/ccOOdR7m.s:280: Warning: swp{b} use is deprecated for ARMv6 and ARMv7

CC arch/arm/mach-msm/smd_private.o

CC mm/mmzone.o

CC arch/arm/mach-msm/smem.o

CC mm/vmstat.o

CC arch/arm/mach-msm/smp2p.o

CC mm/backing-dev.o

CC mm/page_isolation.o

CC mm/mm_init.o

CC arch/arm/mach-msm/smp2p_debug.o

CC mm/mmu_context.o

CC mm/percpu.o

CC arch/arm/mach-msm/smp2p_gpio.o

CC mm/compaction.o

CC arch/arm/mach-msm/smp2p_loopback.o

CC arch/arm/mach-msm/smp2p_test.o

CC mm/fremap.o

CC mm/highmem.o

CC mm/madvise.o

CC mm/memory.o

CC arch/arm/mach-msm/smp2p_gpio_test.o

CC mm/mincore.o

3 warnings generated.

host Prebuilt: libLLVM (/mnt/development/AOSP/PureNexus/out/host/linux-x86/obj/lib/libLLVM.so)

CC arch/arm/mach-msm/smp2p_spinlock_test.o

CC arch/arm/mach-msm/scm.o

CC arch/arm/mach-msm/scm-boot.o

CC arch/arm/mach-msm/peripheral-loader.o

CC arch/arm/mach-msm/scm-pas.o

CC arch/arm/mach-msm/pil-q6v5.o

CC arch/arm/mach-msm/pil-q6v5-lpass.o

CC arch/arm/mach-msm/pil-q6v5-mss.o

CC arch/arm/mach-msm/pil-venus.o

CC mm/mlock.o

CC mm/mmap.o

CC arch/arm/mach-msm/bam_dmux.o

CC arch/arm/mach-msm/smem_log.o

CC mm/mprotect.o

CC mm/mremap.o

CC mm/msync.o

CC mm/rmap.o

CC mm/vmalloc.o

CC arch/arm/mach-msm/ipc_logging.o

CC arch/arm/mach-msm/ipc_logging_debug.o

CC mm/pagewalk.o

CC arch/arm/mach-msm/socinfo.o

CC mm/pgtable-generic.o

CC arch/arm/mach-msm/smd_qmi.o

CC mm/process_vm_access.o

CC mm/init-mm.o

CC mm/bootmem.o

CC arch/arm/mach-msm/smd_pkt.o

CC arch/arm/mach-msm/smd_nmea.o

CC mm/memblock.o

CC arch/arm/mach-msm/ipc_router_smd_xprt.o

CC mm/bounce.o

CC arch/arm/mach-msm/ipc_router.o

CC mm/dmapool.o

CC mm/slub.o

CC arch/arm/mach-msm/ipc_socket.o

CC mm/migrate.o

CC arch/arm/mach-msm/msm_ipc_router_security.o

CC arch/arm/mach-msm/msm_qmi_interface.o

MKCAP arch/arm/mach-msm/smd_rpc_sym.c

CC arch/arm/mach-msm/lge/board-8974-hammerhead.o

CC arch/arm/mach-msm/msm_bus/msm_bus_core.o

CC arch/arm/mach-msm/qdsp6v2/ultrasound/version_b/../usf.o

CC arch/arm/mach-msm/qdsp6v2/ultrasound/version_b/../usfcdev.o

CC arch/arm/mach-msm/ocmem_allocator.o

CC arch/arm/mach-msm/ocmem_notifier.o

host Executable: clang-tblgen (/mnt/development/AOSP/PureNexus/out/host/linux-x86/obj/EXECUTABLES/clang-tblgen_intermediates/clang-tblgen)

CC arch/arm/mach-msm/ocmem_sched.o

CC arch/arm/mach-msm/ocmem_api.o

target Prebuilt: auto_pair_devlist.conf (/mnt/development/AOSP/PureNexus/out/target/product/hammerhead/obj/ETC/auto_pair_devlist.conf_intermediates/auto_pair_devlist.conf)

LD arch/arm/mach-msm/qdsp6v2/ultrasound/version_b/built-in.o

LD arch/arm/mach-msm/qdsp6v2/built-in.o

target Prebuilt: bt_did.conf (/mnt/development/AOSP/PureNexus/out/target/product/hammerhead/obj/ETC/bt_did.conf_intermediates/bt_did.conf)

CC arch/arm/mach-msm/ocmem_rdm.o

target Prebuilt: bt_stack.conf (/mnt/development/AOSP/PureNexus/out/target/product/hammerhead/obj/ETC/bt_stack.conf_intermediates/bt_stack.conf)

Copy: /mnt/development/AOSP/PureNexus/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libbt-vendor_intermediates/vnd_buildcfg.h

CC arch/arm/mach-msm/ocmem_core.o

target Unpacked: libjni_latinime (/mnt/development/AOSP/PureNexus/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libjni_latinime_intermediates/PACKED/libjni_latinime.so)

target Prebuilt: android.software.live_wallpaper.xml (/mnt/development/AOSP/PureNexus/out/target/product/hammerhead/obj/ETC/android.software.live_wallpaper.xml_intermediates/android.software.live_wallpaper.xml)

Copying /mnt/development/AOSP/PureNexus/out/target/product/hammerhead/gen/STATIC_LIBRARIES/libv8_intermediates/js2c.py

CC arch/arm/mach-msm/sensors_adsp.o

Copying /mnt/development/AOSP/PureNexus/out/target/product/hammerhead/gen/STATIC_LIBRARIES/libv8_intermediates/jsmin.py

Copying /mnt/development/AOSP/PureNexus/out/host/linux-x86/gen/EXECUTABLES/v8_mksnapshot.arm_intermediates/js2c.py

CC arch/arm/mach-msm/gpiomux-v2.o

CC arch/arm/mach-msm/gpiomux.o

CC arch/arm/mach-msm/msm_rq_stats.o

CC arch/arm/mach-msm/msm_show_resume_irq.o

CC arch/arm/mach-msm/restart.o

CC arch/arm/mach-msm/cache_erp.o

CC arch/arm/mach-msm/wdog_debug.o

CC arch/arm/mach-msm/msm_mem_hole.o

CC arch/arm/mach-msm/msm_mpmctr.o

CC arch/arm/mach-msm/cpufreq.o

Copying /mnt/development/AOSP/PureNexus/out/host/linux-x86/gen/EXECUTABLES/v8_mksnapshot.arm_intermediates/jsmin.py

CC arch/arm/mach-msm/smd_rpc_sym.o

host SharedLib: libc++_32 (/mnt/development/AOSP/PureNexus/out/host/linux-x86/obj32/lib/libc++.so)

host Prebuilt: icu-data-host (/mnt/development/AOSP/PureNexus/out/host/linux-x86/obj/ETC/icu-data-host_intermediates/icudt55l.dat)

target Prebuilt: am (/mnt/development/AOSP/PureNexus/out/target/product/hammerhead/obj/EXECUTABLES/am_intermediates/am)

host Prebuilt: libclang (/mnt/development/AOSP/PureNexus/out/host/linux-x86/obj/lib/libclang.so)

LD arch/arm/mach-msm/built-in.o

target Prebuilt: appops (/mnt/development/AOSP/PureNexus/out/target/product/hammerhead/obj/EXECUTABLES/appops_intermediates/appops)

Makefile:130: recipe for target 'sub-make' failed

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory '/mnt/development/AOSP/PureNexus/kernel/lge/hammerhead'

build/core/tasks/kernel.mk:220: recipe for target 'TARGET_KERNEL_BINARIES' failed

make: *** [TARGET_KERNEL_BINARIES] Error 2

make: *** Waiting for unfinished jobs....

target Prebuilt: appwidget (/mnt/development/AOSP/PureNexus/out/target/product/hammerhead/obj/EXECUTABLES/appwidget_intermediates/appwidget)

#### make failed to build some targets (23:36 (mm:ss)) ####

---------- Post added at 07:49 AM ---------- Previous post was at 07:42 AM ----------

People talk it's an old problem, fixed at February '16.

https://bugs.launchpad.net/ubuntu/+source/linux-flo/+bug/1549677