Building Lollipop - Motorola Droid RAZR

So, hello, everyone.
I'm trying to build lollipop (cyaonogenmod) for the xt910, and as cm synced up all the sources a couple of days back, all the downloads worked successfully.
I'm using the 4.4.4 proprietary files (which worked fine on an early lollipop build for grouper)
I get as far as running the
Code:
make -j6 otapackage
command, which outputs this:
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0
CM_VERSION=12-20141117-UNOFFICIAL-umts_spyder
TARGET_PRODUCT=cm_umts_spyder
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-15-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=LRX21Q
OUT_DIR=/home/jg/android/out
============================================
Checking build tools versions...
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
"ebtables is disabled on this build"
find: `phone/java': No such file or directory
find: `phone/java': No such file or directory
find: `dummy': No such file or directory
build/core/base_rules.mk:154: *** hardware/ti/omap4xxx/domx/domx: MODULE.TARGET.SHARED_LIBRARIES.libdomx already defined by device/motorola/omap4-common/domx/domx. Stop.
#### make failed to build some targets (01:32 (mm:ss)) ####
As I'm not at all experienced in building and know there are enough people with the knowledge out here , I'm asking anyone who might have an idea what is causing the error.
Thanks in advance!

Kilroy. said:
So, hello, everyone.
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0
CM_VERSION=12-20141117-UNOFFICIAL-umts_spyder
TARGET_PRODUCT=cm_umts_spyder
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-15-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=LRX21Q
OUT_DIR=/home/jg/android/out
============================================
Checking build tools versions...
find: `src': No such file or directory
"ebtables is disabled on this build"
find: `phone/java': No such file or directory
find: `phone/java': No such file or directory
find: `dummy': No such file or directory
build/core/base_rules.mk:154: *** hardware/ti/omap4xxx/domx/domx: MODULE.TARGET.SHARED_LIBRARIES.libdomx already defined by device/motorola/omap4-common/domx/domx. Stop.
#### make failed to build some targets (01:32 (mm:ss)) ####
!
Click to expand...
Click to collapse
Hey,
I found that your whole project seems to be corrupted or missing some files. Better use 'repo init' and 'repo sync' again first. (maybe you have to delete the whole rom folder, then resync)
A quick solution to your problem:
hardware/ti/omap4xxx/domx/domx: MODULE.TARGET.SHARED_LIBRARIES.libdomx already defined by device/motorola/omap4-common/domx/domx
means that hardware/ti/omap4xxx/domx/domx/Android.mk has same properties(redefined) with device/motorola/omap4-common/domx/domx/Android.mk
So, you have to delete either one Android.mk of them. Or you can simply rename one of them to any name you want.
Cheers

rename the file
it will work

Related

Errors encountered on Building CM9 source code for emulator

Hello,
I am compiling CM9 source code for emulator.
I am using following commands:
1) .build/envsetup.sh
2) lunch 1
3) make -j4
On running above commands I am getting following error:
/media/ntfsmain/CM9/Cynogen_9_ICS$ make -j4
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================
grep: build/target/board/generic/recovery.fstab: No such file or directory
make: *** packages/apps/: Is a directory. Stop.
Kindly pls help me to resolve this error.
Also if there is any other way to build for emulator then pls do let me know.

[Q] help into this no such file : full_w100-eng

help into this no such file : full_w100-eng
but i
Code:
[email protected]:~/android/w100$ build/tools/device/mkvendor.sh cm w100 ~/ddd/boot.img
Output will be in /home/w100/android/w100/device/cm/w100
645 blocks
Done!
Use the following command to set up your build environment:
lunch full_w100-eng
And use the follwowing command to build a recovery:
. build/tools/device/makerecoveries.sh full_w100-eng
[email protected]:~/android/w100$ lunch full_w100-eng
No such file: full_w100-eng
[email protected]:~/android/w100$ make -j4 recoveryimage============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
system/core/toolbox/Android.mk:90: warning: overriding commands for target `out/target/product/generic/system/bin/lsof'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/generic/system/bin/lsof'
make: Nothing to be done for `recoveryimage'.

[Q] Question on compile LG official ROM

Anyone successfully compiled the ROM? I got some problems here.
"find: `src': No such file or directory
make: *** prebuilts/gcc/linux-x86/arm: Is a directory. Stop."
I think the second link is the main problem.
@ubuntu:~/android$ make -j4
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=out
============================================
Checking build tools versions...
find: `src': No such file or directory
make: *** prebuilts/gcc/linux-x86/arm: Is a directory. Stop.
amnik said:
Anyone successfully compiled the ROM? I got some problems here.
"find: `src': No such file or directory
make: *** prebuilts/gcc/linux-x86/arm: Is a directory. Stop."
I think the second link is the main problem.
@ubuntu:~/android$ make -j4
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=out
============================================
Checking build tools versions...
find: `src': No such file or directory
make: *** prebuilts/gcc/linux-x86/arm: Is a directory. Stop.
Click to expand...
Click to collapse
ubuntu?i don't know……on windows may be easyer

[Q] Compiling LiquidSmooth for Moto G2

This is my output when trying to build with lollipop liquidsmooth source and this device specific changes (https://github.com/motog2014devteam/roomservice)
Code:
[email protected] ~/titan/ls $ ./build.sh -c1 titan
Running 'make clobber'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0.2
LIQUID_VERSION=
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_GCC_VERSION=4.8
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-37-generic-x86_64-with-LinuxMint-17.1-rebecca
HOST_BUILD_TYPE=release
BUILD_ID=LRX22G
OUT_DIR=/home/diamond/titan/ls/out
LIQUIFY=
============================================
Entire build directory removed.
Setting up environment
including vendor/liquid/vendorsetup.sh
including sdk/bash_completion/adb.bash
Lunching device
including vendor/liquid/vendorsetup.sh
build/core/product_config.mk:232: *** Can not locate config makefile for product "LIQUID_titan". Stop.
WARNING: Trying to fetch a device that's already there
WARNING: device/motorola/titan/liquid.dependencies file not found
build/core/product_config.mk:232: *** Can not locate config makefile for product "LIQUID_titan". Stop.
** Don't have a product spec for: 'LIQUID_titan'
** Do you have the right repo manifest?
Starting compilation
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0.2
LIQUID_VERSION=
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_GCC_VERSION=4.8
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-37-generic-x86_64-with-LinuxMint-17.1-rebecca
HOST_BUILD_TYPE=release
BUILD_ID=LRX22G
OUT_DIR=/home/diamond/titan/ls/out
LIQUIFY=
============================================
Checking build tools versions...
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `phone/java': No such file or directory
find: `phone/java': No such file or directory
find: `dummy': No such file or directory
build/core/tasks/kernel.mk:127: **********************************************************
build/core/tasks/kernel.mk:128: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:129: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:130: * BoardConfig.mk file *
build/core/tasks/kernel.mk:131: **********************************************************
make: *** No rule to make target `bacon'. Stop.
Please can anyone help me with this, i have limited internet (75GB) and i just downloaded this which is 30GB, so thats almost half my internet usage gone for this month, and i would hate for it to go to waste, at least if i get it working i can share with users and help others, thanks in advance,
Deleted

Trying to comile cm11 branch hammerhead

Hi guys, i am trying to compile CM11 from branch to hammerhead device.
after a breakfast hammerhead, and brunch hammerhead, it always fails with:
brunch hammerhead
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150806-UNOFFICIAL-hammerhead
TARGET_PRODUCT=cm_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/home/salatiel/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150806-UNOFFICIAL-hammerhead
TARGET_PRODUCT=cm_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/home/salatiel/android/system/out
============================================
/home/salatiel/android/system/out/target/product/hammerhead/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
MAJOR_VERSION=4
MINOR_VERSION=4
build/core/Makefile:44: warning: overriding commands for target `/home/salatiel/android/system/out/target/product/hammerhead/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/salatiel/android/system/out/target/product/hammerhead/system/vendor/etc/audio_effects.conf'
find: `bootable/recovery/res-1080': No such file or directory
No private recovery resources for TARGET_DEVICE hammerhead
build/core/tasks/kernel.mk:63: ***************************************************************
build/core/tasks/kernel.mk:64: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:65: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:66: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:67: * source repository to kernel/lge/hammerhead
build/core/tasks/kernel.mk:68: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:69: * for more information *
build/core/tasks/kernel.mk:70: ***************************************************************
Import includes file: /home/salatiel/android/system/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/import_includes
host C: libmincrypt <= system/core/libmincrypt/dsa_sig.c
host C: libmincrypt <= system/core/libmincrypt/p256.c
host C: libmincrypt <= system/core/libmincrypt/p256_ec.c
host C: libmincrypt <= system/core/libmincrypt/p256_ecdsa.c
host C: libmincrypt <= system/core/libmincrypt/rsa.c
host C: libmincrypt <= system/core/libmincrypt/sha.c
host C: libmincrypt <= system/core/libmincrypt/sha256.c
Import includes file: /home/salatiel/android/system/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
host C: libhost <= build/libs/host/CopyFile.c
make: *** No rule to make target `/home/salatiel/android/system/out/target/product/hammerhead/kernel', needed by `/home/salatiel/android/system/out/target/product/hammerhead/boot.img'. Stop.
Any ideas how i can fix this ?
Thanks!
salatiel said:
Hi guys, i am trying to compile CM11 from branch to hammerhead device.
after a breakfast hammerhead, and brunch hammerhead, it always fails with:
brunch hammerhead
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150806-UNOFFICIAL-hammerhead
TARGET_PRODUCT=cm_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/home/salatiel/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150806-UNOFFICIAL-hammerhead
TARGET_PRODUCT=cm_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/home/salatiel/android/system/out
============================================
/home/salatiel/android/system/out/target/product/hammerhead/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
MAJOR_VERSION=4
MINOR_VERSION=4
build/core/Makefile:44: warning: overriding commands for target `/home/salatiel/android/system/out/target/product/hammerhead/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/salatiel/android/system/out/target/product/hammerhead/system/vendor/etc/audio_effects.conf'
find: `bootable/recovery/res-1080': No such file or directory
No private recovery resources for TARGET_DEVICE hammerhead
build/core/tasks/kernel.mk:63: ***************************************************************
build/core/tasks/kernel.mk:64: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:65: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:66: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:67: * source repository to kernel/lge/hammerhead
build/core/tasks/kernel.mk:68: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:69: * for more information *
build/core/tasks/kernel.mk:70: ***************************************************************
Import includes file: /home/salatiel/android/system/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/import_includes
host C: libmincrypt <= system/core/libmincrypt/dsa_sig.c
host C: libmincrypt <= system/core/libmincrypt/p256.c
host C: libmincrypt <= system/core/libmincrypt/p256_ec.c
host C: libmincrypt <= system/core/libmincrypt/p256_ecdsa.c
host C: libmincrypt <= system/core/libmincrypt/rsa.c
host C: libmincrypt <= system/core/libmincrypt/sha.c
host C: libmincrypt <= system/core/libmincrypt/sha256.c
Import includes file: /home/salatiel/android/system/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
host C: libhost <= build/libs/host/CopyFile.c
make: *** No rule to make target `/home/salatiel/android/system/out/target/product/hammerhead/kernel', needed by `/home/salatiel/android/system/out/target/product/hammerhead/boot.img'. Stop.
Any ideas how i can fix this ?
Thanks!
Click to expand...
Click to collapse
resync your cm11 tree.
make sure you have net connection is working
remove your out folder
remove your local manifests folder in repo
dont put any of device , vendor or kernel folder of hammerhead in your cm11 tree.
just give following commands
. build/envsetup.sh
brunch hammerhead
Click to expand...
Click to collapse
it will resync the hammerhead dependencies and make a build with official hammerhead repos from cyanogenmod
Thanks @k2wl .
Actually i found out the problem.
I had to manually clone https://github.com/CyanogenMod/android_kernel_lge_hammerhead.git in the kernel/lge/hammerhead directory
CM11 branch for hammerhead is a lot more stable than the latest nightly released in january, but unfortunatelly the camera wont record anything :/
So i stayed at the January nightly and created just a zip to replace all the libstagefright* from the build i created.
It worked =)

Categories

Resources