[Nexus 4 Q&A, Help & Troubleshooting] magestic1995:
Hello everyone I am on Linux Mint and I am working on compiling android source and i have been having a lot of trouble. When I try to build for my phone I enter the command " . build_rootbox.sh mako nosync 4 " and this is what i get.

Starting RootBox build for mako

including vendor/rootbox/vendorsetup.sh

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

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.2.2

TARGET_PRODUCT=rootbox_mako

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

HOST_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-3.5.0-17-generic-x86_64-with-LinuxMint-14-nadia

HOST_BUILD_TYPE=release

BUILD_ID=JDQ39

OUT_DIR=/home/rj/rootbox/out

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

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

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.2.2

TARGET_PRODUCT=rootbox_mako

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

HOST_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-3.5.0-17-generic-x86_64-with-LinuxMint-14-nadia

HOST_BUILD_TYPE=release

BUILD_ID=JDQ39

OUT_DIR=/home/rj/rootbox/out

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

find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': No such file or directory

find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': No such file or directory

find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': No such file or directory

find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': No such file or directory

find: `src': No such file or directory

build/core/base_rules.mk:528: system/core/mkbootimg/Android.mk: Module "unpackbootimg" has useless module tags: eng. It will be installed anyway.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Effect_Tick.ogg:system/media/audio/ui/Effect_Tick.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressStandard.ogg:system/media/audio/ui/KeypressStandard.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressSpacebar.ogg:system/media/audio/ui/KeypressSpacebar.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressDelete.ogg:system/media/audio/ui/KeypressDelete.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressReturn.ogg:system/media/audio/ui/KeypressReturn.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoRecord.ogg:system/media/audio/ui/VideoRecord.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/camera_click.ogg:system/media/audio/ui/camera_click.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/LowBattery.ogg:system/media/audio/ui/LowBattery.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Dock.ogg:system/media/audio/ui/Dock.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Undock.ogg:system/media/audio/ui/Undock.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Lock.ogg:system/media/audio/ui/Lock.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Unlock.ogg:system/media/audio/ui/Unlock.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressStandard_120.ogg:system/media/audio/ui/KeypressStandard.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressSpacebar_120.ogg:system/media/audio/ui/KeypressSpacebar.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressDelete_120.ogg:system/media/audio/ui/KeypressDelete.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressReturn_120.ogg:system/media/audio/ui/KeypressReturn.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Argon.ogg:system/media/audio/alarms/Argon.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Carbon.ogg:system/media/audio/alarms/Carbon.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Helium.ogg:system/media/audio/alarms/Helium.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Krypton.ogg:system/media/audio/alarms/Krypton.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Neon.ogg:system/media/audio/alarms/Neon.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Oxygen.ogg:system/media/audio/alarms/Oxygen.ogg ignored.

build/core/Makefile:43: warning: overriding commands for target `/home/rj/rootbox/out/target/product/mako/system/etc/permissions/android.software.live_wallpaper.xml'

build/core/base_rules.mk:505: warning: ignoring old commands for target `/home/rj/rootbox/out/target/product/mako/system/etc/permissions/android.software.live_wallpaper.xml'

PRODUCT_COPY_FILES vendor/rootbox/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.

No private recovery resources for TARGET_DEVICE mako

make -C kernel/lge/mako O=/home/rj/rootbox/out/target/product/mako/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/rj/rootbox/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" mako_defconfig

make[1]: Entering directory `/home/rj/rootbox/kernel/lge/mako'

host C++: clang <= external/clang/tools/driver/cc1_main.cpp

host C++: clang <= external/clang/tools/driver/cc1as_main.cpp

host C++: clang <= external/clang/tools/driver/driver.cpp

HOSTCC scripts/kconfig/conf.o

/home/rj/rootbox/kernel/lge/mako/scripts/kconfig/conf.c:684:1: fatal error: opening dependency file scripts/kconfig/.conf.o.d: Permission denied

compilation terminated.

make[3]: *** [scripts/kconfig/conf.o] Error 1

make[2]: *** [mako_defconfig] Error 2

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

make[1]: Leaving directory `/home/rj/rootbox/kernel/lge/mako'

make: *** [/home/rj/rootbox/out/target/product/mako/obj/KERNEL_OBJ/.config] Error 2

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

Total time elapsed: 2 minutes (139.057643694 seconds)

If anyone has any ideas please let me know.