[Q]why ROM won't compile? [Mac](beginner) - Android Q&A, Help & Troubleshooting

I'm a complete beginner to the ROM building world, and decided to work with a custom ROM as a base for practice.
I chose SlimBean for my Nexus 4 (mako).
I already setup up my build environment through the sources on github, started building an otapackage and somewhere down the line I think the build ran into an error I'm not sure what to do about it but I think it has to do with the kernel (that comes with the ROM?) or linaro, but here's the last bit of lines on my terminal:
Code:
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
Install: /Volumes/android/wizard/out/host/darwin-x86/bin/checkpolicy
make[2]: /Volumes/android/wizard/prebuilt/darwin-x86/toolchain/linaro/bin/arm-linux-gnueabihf-gcc: Command not found
Install: /Volumes/android/wizard/out/host/darwin-x86/bin/checkfc
target Prebuilt: system_core_charger_battery_0.png (/Volumes/android/wizard/out/target/product/mako/obj/ETC/system_core_charger_battery_0.png_intermediates/battery_0.png)
target Prebuilt: system_core_charger_battery_1.png (/Volumes/android/wizard/out/target/product/mako/obj/ETC/system_core_charger_battery_1.png_intermediates/battery_1.png)
target Prebuilt: system_core_charger_battery_2.png (/Volumes/android/wizard/out/target/product/mako/obj/ETC/system_core_charger_battery_2.png_intermediates/battery_2.png)
target Prebuilt: system_core_charger_battery_3.png (/Volumes/android/wizard/out/target/product/mako/obj/ETC/system_core_charger_battery_3.png_intermediates/battery_3.png)
target Prebuilt: system_core_charger_battery_4.png (/Volumes/android/wizard/out/target/product/mako/obj/ETC/system_core_charger_battery_4.png_intermediates/battery_4.png)
target Prebuilt: system_core_charger_battery_5.png (/Volumes/android/wizard/out/target/product/mako/obj/ETC/system_core_charger_battery_5.png_intermediates/battery_5.png)
target Prebuilt: system_core_charger_battery_charge.png (/Volumes/android/wizard/out/target/product/mako/obj/ETC/system_core_charger_battery_charge.png_intermediates/battery_charge.png)
target Prebuilt: system_core_charger_battery_fail.png (/Volumes/android/wizard/out/target/product/mako/obj/ETC/system_core_charger_battery_fail.png_intermediates/battery_fail.png)
Install: /Volumes/android/wizard/out/host/darwin-x86/bin/checkseapp
Copy: /Volumes/android/wizard/out/target/product/mako/root/init.slim.rc
Copy: /Volumes/android/wizard/out/target/product/mako/root/init.usb.rc
Copy: /Volumes/android/wizard/out/target/product/mako/root/init.trace.rc
Copy: /Volumes/android/wizard/out/target/product/mako/root/init.mako.rc
Copy: /Volumes/android/wizard/out/target/product/mako/root/init.mako.usb.rc
Copy: /Volumes/android/wizard/out/target/product/mako/root/fstab.mako
Copy: /Volumes/android/wizard/out/target/product/mako/root/ueventd.mako.rc
Install: /Volumes/android/wizard/out/host/darwin-x86/bin/minigzip
target Prebuilt: nandroid-md5.sh (/Volumes/android/wizard/out/target/product/mako/obj/RECOVERY_EXECUTABLES/nandroid-md5.sh_intermediates/nandroid-md5.sh)
target Prebuilt: killrecovery.sh (/Volumes/android/wizard/out/target/product/mako/obj/RECOVERY_EXECUTABLES/killrecovery.sh_intermediates/killrecovery.sh)
target Prebuilt: parted (/Volumes/android/wizard/out/target/product/mako/obj/RECOVERY_EXECUTABLES/parted_intermediates/parted)
target Prebuilt: sdparted (/Volumes/android/wizard/out/target/product/mako/obj/RECOVERY_EXECUTABLES/sdparted_intermediates/sdparted)
Install: /Volumes/android/wizard/out/host/darwin-x86/framework/dumpkey.jar
target Prebuilt: (/Volumes/android/wizard/out/target/product/mako/system/bin/monkey)
GEN /Volumes/android/wizard/out/target/product/mako/obj/KERNEL_OBJ/Makefile
target Prebuilt: (/Volumes/android/wizard/out/target/product/mako/system/usr/share/bmd/RFFspeed_501.bmd)
target Prebuilt: (/Volumes/android/wizard/out/target/product/mako/system/usr/share/bmd/RFFstd_501.bmd)
target Prebuilt: (/Volumes/android/wizard/out/target/product/mako/system/bin/bmgr)
target Prebuilt: (/Volumes/android/wizard/out/target/product/mako/system/bin/ime)
CHK include/linux/version.h
target Prebuilt: (/Volumes/android/wizard/out/target/product/mako/system/bin/input)
target Prebuilt: (/Volumes/android/wizard/out/target/product/mako/system/bin/pm)
target Prebuilt: (/Volumes/android/wizard/out/target/product/mako/system/bin/svc)
CC scripts/mod/empty.o
/bin/sh: /Volumes/android/wizard/prebuilt/darwin-x86/toolchain/linaro/bin/arm-linux-gnueabihf-gcc: No such file or directory
make[4]: *** [scripts/mod/empty.o] Error 1
make[3]: *** [scripts/mod] Error 2
make[2]: *** [scripts] Error 2
make[2]: *** Waiting for unfinished jobs....
target Prebuilt: system_etcdir (/Volumes/android/wizard/out/target/product/mako/system/etc/hosts)
Install: /Volumes/android/wizard/out/host/darwin-x86/bin/aapt
make[1]: *** [sub-make] Error 2
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
target StaticLib: libc (/Volumes/android/wizard/out/target/product/mako/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)
I think it's because of this that ended the compilation:
Code:
/bin/sh: /Volumes/android/wizard/prebuilt/darwin-x86/toolchain/linaro/bin/arm-linux-gnueabihf-gcc: No such file or directory
If it is kernel related, is there a way to not have that compiled and build the ROM so that the default AOSP kernel is compiled with the ROM? Eventually I want to do that anyway.
What is to be done about this?
I'm new to building in general but I have successfully compiled android AOSP 4.3r2.1 through linux on virtualbox on my windows machine. I prefer to work on my macbook.

Related

[Help] Build error, need help?

Setup my build environment according to this post
http://forum.xda-developers.com/showthread.php?t=2639611
and trying to build this ROM
https://github.com/CarbonDev/android
I got a build error mid way
HTML:
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp: In member function 'void overlay::MdpCtrl::setColor(uint32 _t)':
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp:105:13: error: 'struct mdp_overlay' has no member named 'bg _color'
make: *** [/root/carbon/out/target/product/hammerhead/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayMdp.o] E rror 1
make: *** Waiting for unfinished jobs....
target thumb C++: liboverlay <= hardware/qcom/display/msm8974/liboverlay/overlayMdssRot.cpp
make: *** wait: No child processes. Stop.
I google and got this suggesting
Try switching hardware/qcom/display to cyanogenmod 's version
What file do I edit to change this?
Thanks.

[Q] Build Error, need help?

Setup my build environment according to this post
http://forum.xda-developers.com/showthread.php?t=2639611
and trying to build this ROM
https://github.com/CarbonDev/android
I got a build error mid way
HTML:
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp: In member function 'void overlay::MdpCtrl::setColor(uint32 _t)':
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp:105:13: error: 'struct mdp_overlay' has no member named 'bg _color'
make: *** [/root/carbon/out/target/product/hammerhead/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayMdp.o] E rror 1
make: *** Waiting for unfinished jobs....
target thumb C++: liboverlay <= hardware/qcom/display/msm8974/liboverlay/overlayMdssRot.cpp
make: *** wait: No child processes. Stop.
I google and got this suggesting
Try switching hardware/qcom/display to cyanogenmod 's version
What file do I edit to change this?
Thanks.

Im trying to build cm 13 but i got this error pls help

build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/motorola/condor/cm.mk]]: "vendor/motorola/msm8610-common/msm8610-common-vendor.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_condor'
** Do you have the right repo manifest?
try this repo https://github.com/Moto8610/proprietary_vendor_motorola
Thnx i will try it.
Do i need to remove the entire cm repo folder or i can remove the devices synced repo and sync again.
GNVM said:
Do i need to remove the entire cm repo folder or i can remove the devices synced repo and sync again.
Click to expand...
Click to collapse
Are you building from your own device tree? Or ashwin007's device tree?
From ashwins tree
That issue is solved now i get these errors
Code:
external/zip/src/zip.c:1287:9: warning: unused parameter 'unzippath' [-Wunused-parameter]
char *unzippath;
^
external/zip/src/zip.c:1434:11: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
zippath = zippath;
~~~~~~~ ^ ~~~~~~~
external/zip/src/zip.c:1799:9: warning: explicitly assigning value of variable of type 'const char *' to itself [-Wself-assign]
zfn = zfn;
~~~ ^ ~~~
external/zip/src/zip.c:1850:9: warning: unused parameter 'out_path' [-Wunused-parameter]
char *out_path;
^
external/zip/src/zip.c:698:12: warning: unused function 'help_extended' [-Wunused-function]
local void help_extended()
^
5 warnings generated.
target arm C: zip <= external/zip/src/unix/unix.c
make: *** No rule to make target `vendor/motorola/msm8610-common/proprietary/vendor/lib/libmm-hdcpmgr.so', needed by `/home/gnvm-dev/bin/cm13.0/out/target/product/condor/system/vendor/lib/libmm-hdcpmgr.so'. Stop.
make: *** Waiting for unfinished jobs....
external/zip/src/unix/unix.c:571:12: warning: unused parameter 'z_utim' [-Wunused-parameter]
iztimes *z_utim;
^
1 warning generated.
make: Leaving directory `/home/gnvm-dev/bin/cm13.0'
#### make failed to build some targets (09:21 (mm:ss)) ####
I have found the solution but i got a new error.
Code:
target SharedLib: memtrack.msm8610 (/home/gnvm-dev/bin/cm13.0/out/target/product/condor/obj/SHARED_LIBRARIES/memtrack.msm8610_intermediates/LINKED/memtrack.msm8610.so)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: /home/gnvm-dev/bin/cm13.0/out/target/product/condor/obj/SHARED_LIBRARIES/memtrack.msm8610_intermediates/memtrack_msm.o: file is empty
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: /home/gnvm-dev/bin/cm13.0/out/target/product/condor/obj/SHARED_LIBRARIES/memtrack.msm8610_intermediates/kgsl.o: file is empty
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/gnvm-dev/bin/cm13.0/out/target/product/condor/obj/SHARED_LIBRARIES/memtrack.msm8610_intermediates/LINKED/memtrack.msm8610.so] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/gnvm-dev/bin/cm13.0'
#### make failed to build some targets (01:25:33 (hh:mm:ss)) ####

Build G'zOne Commando 4G LTE Jelly Bean (Android 4.1.2) error

I found the build instructions here: n-keitai.com/gpl/w/list/GzOne_COMMAND_4G_LTE_Jelly_Bean.html
Unfortunately, when I build this Rom, it error as below.
Anyone can help me, Please. I build this rom in Ubuntu 12.04 64 bit vmware machine
(My English is not good, please forgive mistakes)
Import includes file: out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/import_includes
including lib/openssl/crypto
host C++: libandroidfw <= frameworks/base/libs/androidfw/Asset.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/AssetDir.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/AssetManager.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ObbFile.cpp
make[2]: Entering directory `/mnt/hgfs/GZone/bootable/bootloader/lk'
make[2]: *** No rule to make target `../../../out/target/product/msm8960/obj/EMMC_BOOTLOADER_OBJ/build-msm8960/lib/openssl/crypto/bn/asm/armv4-mont.o', needed by `../../../out/target/product/msm8960/obj/EMMC_BOOTLOADER_OBJ/build-msm8960/lk'. Stop.
make[2]: *** Waiting for unfinished jobs....
generating ../../../out/target/product/msm8960/obj/EMMC_BOOTLOADER_OBJ/build-msm8960/config.h
make[2]: Leaving directory `/mnt/hgfs/GZone/bootable/bootloader/lk'
make[1]: *** [make-make] Error 2
make[1]: Leaving directory `/mnt/hgfs/GZone/bootable/bootloader/lk'
make: *** [out/target/product/msm8960/emmc_appsboot.mbn] Error 2
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Changing defconfig in kernel source tree

I want to add an option in a defconfig in the msm Android 10 kernel. Whenever I change the defconfig and run
build/build.sh
I get following error:
Code:
...
HOSTLD scripts/genksyms/genksyms
HOSTLD scripts/mod/modpost
UPD include/config/kernel.release
Using /home/mbuch/kernels/msm/private/msm-google as source for kernel
/home/mbuch/kernels/msm/private/msm-google is not clean, please run 'make mrproper'
in the '/home/mbuch/kernels/msm/private/msm-google' directory.
/home/mbuch/kernels/msm/private/msm-google/Makefile:1148: recipe for target 'prepare3' failed
make[2]: *** [prepare3] Error 1
Makefile:152: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make: *** [__sub-make] Error 2
To change the defconfig I ran the following commands:
1. Copy existing defconfig template to arch/arm64/configs/mydefconfig
2. From private/msm-google I run
Code:
make ARCH=arm64 mydefconfig
make ARCH=arm64 savedefconfig
build/build.sh

Categories

Resources