[Android Q&A, Help & Troubleshooting] vince2678:
Hi,

I was trying to compile Omni 6.0.1 from source for a Samsung Galaxy Grand Prime [ gprimeltevl ], and the process was halting when validatekeymaps was about to be built.

I wanted to post this in Miscellaneous Android Development section but I'm still new so i couldn't.

Here is the console output of make:

root@arch-Vinny:/mnt/android/omni/frameworks/base/tools# m -j8 -C /mnt/android/omni/
make: Entering directory '/mnt/android/omni'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
TARGET_PRODUCT=full_gprimeltevl
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.6.2-1-ARCH-x86_64-with-Ubuntu-15.10-wily
HOST_BUILD_TYPE=release
BUILD_ID=MOB30M
OUT_DIR=/mnt/android/omni/out
============================================
including ./abi/cpp/Android.mk ...
including ./art/Android.mk ...
including ./bionic/Android.mk ...
including ./bootable/recovery/Android.mk ...
/bin/bash: line 0: test: -ge: unary operator expected
/bin/bash: line 0: test: -ge: unary operator expected

. .
. .
. .

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 ./vendor/omni/Android.mk ...
including ./vendor/samsung/fortuna/Android.mk ...
including ./vendor/samsung/gprimeltevl/Android.mk ...
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/bluetooth/auto_pair_devlist.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/bluetooth/auto_pair_devlist.conf'
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/bluetooth/bt_did.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/bluetooth/bt_did.conf'
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/bluetooth/bt_stack.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/bluetooth/bt_stack.conf'
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/lib/libaudioroute.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/lib/libaudioroute.so'
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/lib/libminui.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/lib/libminui.so'
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/lib/libtinyalsa.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/lib/libtinyalsa.so'
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/vendor/etc/audio_effects.conf'
PRODUCT_COPY_FILES device/samsung/gprimeltevl/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf ignored.
build/core/Makefile:72: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/system/etc/wifi/wpa_supplicant.conf'
No private recovery resources for TARGET_DEVICE gprimeltevl
device/samsung/gprimeltevl/mkbootimg.mk:20: warning: overriding recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/boot.img'
build/core/Makefile:580: warning: ignoring old recipe for target '/mnt/android/omni/out/target/product/gprimeltevl/boot.img'
build/core/tasks/kernel.mk:104: ***************************************************************
build/core/tasks/kernel.mk:105: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:106: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:107: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:108: * source repository to kernel/samsung/gprimeltevl
build/core/tasks/kernel.mk:109: * See http://xdaforums.com/wiki/ROM/Integrated_Kernel_Build
build/core/tasks/kernel.mk:110: * for more information *
build/core/tasks/kernel.mk:111: ***************************************************************
Import includes file: /mnt/android/omni/out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/import_includes
make: *** No rule to make target 'NOTICE-HOST-STATIC_LIBRARIES-libinput', needed by '/mnt/android/omni/out/host/linux-x86/bin/validatekeymaps'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: frameworks/base/tools/validatekeymaps/Android.mk -- /mnt/android/omni/out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/export_includes
make: Leaving directory '/mnt/android/omni'

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

root@arch-Vinny:/mnt/android/omni/frameworks/base/tools#

I'm still a bit new to Android development; this is my first foray into ROM building, though I am experienced in C and am familiar with Java, C++ though I'm not that good with Makefiles. I've been stuck at this point for days, any sort of help would be appreciated at all. Thanks.