[Android] darjwx:
root@arjun-SVE15118FNB:/home/arjun/ghost# . build/envsetup.shincluding device/motorola/ghost/vendorsetup.shincluding vendor/viper/vendorsetup.shincluding sdk/bash_completion/adb.bashincluding vendor/viper/bash_completion/git.bashincluding vendor/viper/bash_completion/repo.bashroot@arjun-SVE15118FNB:/home/arjun/ghost# lunch ▌ ▐·▪ ▄▄▄·▄▄▄ .▄▄▄ .▄▄ · ▪█·█▌██ ▐█ ▄█▀▄.▀·▀▄ █·▪ ▐█ ▀. ▐█▐█•▐█· ██▀·▐▀▀▪▄▐▀▀▄ ▄█▀▄ ▄▀▀▀█▄ ███ ▐█▌▐█▪·•▐█▄▄▌▐█•█▌▐█▌.▐▌▐█▄▪▐█ . ▀ ▀▀▀.▀ ▀▀▀ .▀ ▀ ▀█▄▀▪ ▀▀▀▀ Feel the venom in your vein Welcome to the device menu Below are all the devices currently available to be compiled 1. viper_A6020-userdebug 14. viper_hammerhead-userdebug 27. viper_oneplus2-userdebug 2. viper_addison-userdebug 15. viper_harpia-userdebug 28. viper_oneplus3-userdebug 3. viper_athene-userdebug 16. viper_i9300-userdebug 29. viper_osprey-userdebug 4. viper_bacon-userdebug 17. viper_ido-userdebug 30. viper_peregrine-userdebug 5. viper_bullhead-userdebug 18. viper_j5ltexx-userdebug 31. viper_potter-userdebug 6. viper_capricorn-userdebug 19. viper_kenzo-userdebug 32. viper_surnia-userdebug 7. viper_cedric-userdebug 20. viper_klteduos-userdebug 33. viper_thea-userdebug 8. viper_condor-userdebug 21. viper_klte-userdebug 34. viper_titan-userdebug 9. viper_d855-userdebug 22. viper_lithium-userdebug 35. viper_victara-userdebug 10. viper_falcon-userdebug 23. viper_lux-userdebug 36. viper_wt88047-userdebug 11. viper_gemini-userdebug 24. viper_merlin-userdebug 37. viper_Z00A-userdebug 12. viper_ghost-userdebug 25. viper_mido-userdebug 38. viper_z2_plus-userdebug 13. viper_griffin-userdebug 26. viper_natrium-userdebug ... and don't forget the bacon!Go ahead and pick a number or enter viper_device-userdebug ... 12Trying dependencies-only mode on anon-existing device tree?================================================================= ▌ ▐·▪ ▄▄▄·▄▄▄ .▄▄▄ .▄▄ · ▪█·█▌██ ▐█ ▄█▀▄.▀·▀▄ █·▪ ▐█ ▀. ▐█▐█•▐█· ██▀·▐▀▀▪▄▐▀▀▄ ▄█▀▄ ▄▀▀▀█▄ ███ ▐█▌▐█▪·•▐█▄▄▌▐█•█▌▐█▌.▐▌▐█▄▪▐█ . ▀ ▀▀▀.▀ ▀▀▀ .▀ ▀ ▀█▄▀▪ ▀▀▀▀ Feel the venom in your vein =================================================================VIPER_VERSION=PLATFORM_VERSION=7.1.2TARGET_PRODUCT=viper_ghostTARGET_BUILD_VARIANT=userdebugTARGET_ARCH=armBUILD_ID=NJH47BOUT_DIR=/home/arjun/ghost/out=================================================================root@arjun-SVE15118FNB:/home/arjun/ghost# brunch ghost -j8Invalid lunch combo: viper_ghost--j8No such item in brunch menu. Try 'breakfast'root@arjun-SVE15118FNB:/home/arjun/ghost# brunch ghost Trying dependencies-only mode on anon-existing device tree?================================================================= ▌ ▐·▪ ▄▄▄·▄▄▄ .▄▄▄ .▄▄ · ▪█·█▌██ ▐█ ▄█▀▄.▀·▀▄ █·▪ ▐█ ▀. ▐█▐█•▐█· ██▀·▐▀▀▪▄▐▀▀▄ ▄█▀▄ ▄▀▀▀█▄ ███ ▐█▌▐█▪·•▐█▄▄▌▐█•█▌▐█▌.▐▌▐█▄▪▐█ . ▀ ▀▀▀.▀ ▀▀▀ .▀ ▀ ▀█▄▀▪ ▀▀▀▀ Feel the venom in your vein =================================================================VIPER_VERSION=PLATFORM_VERSION=7.1.2TARGET_PRODUCT=viper_ghostTARGET_BUILD_VARIANT=userdebugTARGET_ARCH=armBUILD_ID=NJH47BOUT_DIR=/home/arjun/ghost/out=================================================================make: Entering directory '/home/arjun/ghost'================================================================= ▌ ▐·▪ ▄▄▄·▄▄▄ .▄▄▄ .▄▄ · ▪█·█▌██ ▐█ ▄█▀▄.▀·▀▄ █·▪ ▐█ ▀. ▐█▐█•▐█· ██▀·▐▀▀▪▄▐▀▀▄ ▄█▀▄ ▄▀▀▀█▄ ███ ▐█▌▐█▪·•▐█▄▄▌▐█•█▌▐█▌.▐▌▐█▄▪▐█ . ▀ ▀▀▀.▀ ▀▀▀ .▀ ▀ ▀█▄▀▪ ▀▀▀▀ Feel the venom in your vein =================================================================VIPER_VERSION=PLATFORM_VERSION=7.1.2TARGET_PRODUCT=viper_ghostTARGET_BUILD_VARIANT=userdebugTARGET_ARCH=armBUILD_ID=NJH47BOUT_DIR=/home/arjun/ghost/out=================================================================Using 'prebuilts/build-tools/linux-x86/bin/ninja' binary on 'linux-x86'Running kati to generate build-viper_ghost.ninja.../home/arjun/ghost/out/build-viper_ghost.ninja is missing, regenerating...================================================================= ▌ ▐·▪ ▄▄▄·▄▄▄ .▄▄▄ .▄▄ · ▪█·█▌██ ▐█ ▄█▀▄.▀·▀▄ █·▪ ▐█ ▀. ▐█▐█•▐█· ██▀·▐▀▀▪▄▐▀▀▄ ▄█▀▄ ▄▀▀▀█▄ ███ ▐█▌▐█▪·•▐█▄▄▌▐█•█▌▐█▌.▐▌▐█▄▪▐█ . ▀ ▀▀▀.▀ ▀▀▀ .▀ ▀ ▀█▄▀▪ ▀▀▀▀ Feel the venom in your vein =================================================================VIPER_VERSION=PLATFORM_VERSION=7.1.2TARGET_PRODUCT=viper_ghostTARGET_BUILD_VARIANT=userdebugTARGET_ARCH=armBUILD_ID=NJH47BOUT_DIR=/home/arjun/ghost/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.ccframeworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assetsfind: ‘/home/arjun/ghost/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directorybuild/core/package_internal.mk:143: Empty argument supplied to find-subdir-assetsbuild/core/base_rules.mk:183: *** kernel/motorola/ghost/init: MODULE.TARGET.STATIC_LIBRARIES.libinit_ghost already defined by device/motorola/ghost/init.build/core/ninja.mk:181: recipe for target '/home/arjun/ghost/out/build-viper_ghost.ninja' failedmake: *** [/home/arjun/ghost/out/build-viper_ghost.ninja] Error 1make: Leaving directory '/home/arjun/ghost'#### make failed to build some targets (13 seconds) ####No Jack server running. Try 'jack-admin start-server'[/QUOTE]

Use hastebin.com and paste the link. Do not paste the whole output directly in xda.

About the error, the problem is that libinit_ghost is defined at the same time in your device and kernel. Are you using a device and kernel from two different roms?