[Q] Help with CM10.2 compilation errors (from source) - Android Q&A, Help & Troubleshooting

Hope this is the correct forum for this, tried under the HTC One X evita Q/A forum but was told it fits better here.
Hey all, so I've built out a development environment and have followed tutorials on how to build CM10.2 from source. I would consider myself an advanced Linux user and things have been going well with the exception of these compliation errors. Any help troubleshooting these would be greatly appreciated.
Code:
target thumb C++: libc <= bionic/libc/bionic/pthread_debug.cpp
cc1plus: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
make[3]: *** [linux] Error 2
make[2]: *** [headers_install] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/c0pp3r/android/cm10.2/kernel/htc/msm8960'
make: *** [/home/c0pp3r/android/cm10.2/out/target/product/evita/obj/KERNEL_OBJ/usr] Error 2
make: *** Waiting for unfinished jobs....
bionic/libc/bionic/pthread_debug.cpp:545:13: warning: 'void hashmap_removeEntry(HashTable*, HashEntry*)' defined but not used [-Wunused-function]
[email protected]:/home/c0pp3r/android/cm10.2#

Related

[Q] CM 10.1 Kernel Compiling - mmu.c does not compile

Hey guys, I am trying to port Ubuntu Touch for my i9100G. All was going well but this error occurred when compiling. It seems there's a problem about mmu.c. I ve searched about it but no luck. Need your help!
Note: I opened the thread here and not Ubuntu Touch section because I think the problem is about compiling CM 10.1 kernel, not about porting Ubuntu.
HTML:
CC [M] /media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/sgxtransfer.o
CC [M] /media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.o
/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.c: In function 'MMU_Alloc':
/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.c:1487:11: error: 'sDevPAddr.uiAddr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.c:1427:20: note: 'sDevPAddr.uiAddr' was declared here
cc1: all warnings being treated as errors
make[6]: *** [/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.o] Error 1
make[5]: *** [_module_/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild] Error 2
make[4]: *** [sub-make] Error 2
make[3]: *** [all] Error 2
make[2]: *** [kbuild] Error 2
make[1]: *** [build] Error 2
make[1]: INTERNAL: Exiting with 9 jobserver tokens available; should be 8!
make[1]: `/media/Yeni_Birim/ubuntu-i9100g/device/samsung/omap4-common/pvr-source/eurasiacon/build/linux2/omap4430_android' dizininden çıkılıyor (that means leaving that directory)
make: *** [SGX_MODULES] Error 2

[Q] Please Reply! Compiling CM11 Error!

Hey I am trying to compile CM11 for the xperia E, but I get this error:
In file included from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/byteorder/little_endian.h:12:0,
from /home/usaamah/cm11/kernel/sony/msm7x27a/arch/arm/include/asm/byteorder.h:21,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/asm-generic/bitops/le.h:5,
from /home/usaamah/cm11/kernel/sony/msm7x27a/arch/arm/include/asm/bitops.h:308,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/bitops.h:22,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/kernel.h:19,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/cache.h:4,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/time.h:7,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/stat.h:60,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/module.h:10,
from /home/usaamah/cm11/kernel/sony/msm7x27a/net/netfilter/xt_socket.c:13:
/home/usaamah/cm11/kernel/sony/msm7x27a/net/netfilter/xt_socket.c: In function 'xt_socket_get6_sk':
/home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/swab.h:49:9: warning: 'sport' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: swab.h:49
make[4]: *** [net/netfilter/xt_socket.o] Error 1
make[3]: *** [net/netfilter] Error 2
make[2]: *** [net] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/usaamah/cm11/kernel/sony/msm7x27a'
make: *** [TARGET_KERNEL_BINARIES] Error 2
Any Solution ASAP!
BUMP!
requires this change
friend
https://github.com/chijure/android_kernel_lge_vee1/commit/1c0c41ed1a6da33b5bbd7580436619798536eced

[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.

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.

Categories

Resources