Compiling cyanogenmod? - Android Q&A, Help & Troubleshooting

Hello all. First I must apologize to the moderators if theres a better place for this question. I looked but couldn't find a place for code compiling.
I'm trying to compile cyanogenmod 12 from source. I had to copy a copy of default.xml to a different location to get the compilation to start.
I got no fatal errors till an hour and a half in where I get this...
Code:
target arm C: zip <= external/zip/src/trees.c
make: *** No rule to make target 'vendor/lge/e980/proprietary/lib/hw/camera.msm8960.so', needed by '/root/android/system/out/target/product/e980/system/lib/hw/camera.msm8960.so'. Stop.
make: *** Waiting for unfinished jobs....
target arm C: zip <= external/zip/src/unix/unix.c
external/zip/src/unix/unix.c: In function 'filetime':
external/zip/src/unix/unix.c:436:3: warning: pointer targets in passing argument 1 of 'unix2dostime' differ in signedness [-Wpointer-sign]
return unix2dostime(&s.st_mtime);
^
In file included from external/zip/src/unix/unix.c:14:0:
external/zip/src/unix/../zip.h:695:8: note: expected 'time_t *' but argument is of type 'long unsigned int *'
ulg unix2dostime OF((time_t *));
^
make: Leaving directory '/root/android/system'
#### make failed to build some targets (01:27:25 (hh:mm:ss)) ####
Can anyone please tell me whats wrong?
I'm 3 days into this and i feel like I'm getting real close.
Please let me know if theres any info I can provide.
Thanx in advance....

Related

[Q] Help with CM10.2 compilation errors (from source)

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#

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

[Q] AOSP Compiling errors.

First of all, i am sorry in advance for posting in the wrong section if i did so.
Second, i am facing these errors when building AOSP :
Code:
hardware/qcom/display/msm8974/libcopybit/copybit_c2d.cpp:34:28: fatal error: linux/msm_kgsl.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp:36:0:
hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:38:0:
hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
target thumb C++: gps.msm8974 <= device/sony/shinano-common/gps/libloc_api_50001/loc.cpp
target thumb C: gps.msm8974 <= device/sony/shinano-common/gps/libloc_api_50001/gps.c
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.o] Error 1
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/copybit.msm8974_intermediates/copybit_c2d.o] Error 1
hardware/qcom/display/msm8974/libqdutils/mdp_version.cpp:33:27: fatal error: linux/msm_mdp.h: No such file or directory
compilation terminated.
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libqdutils_intermediates/mdp_version.o] Error 1
Can anyone help me here ? I am pretty new with ROM compiling stuff, so please be kind . I am trying to learn.
A question :Can i just modify includes for copybit_c2d.cpp and get passed of this error ? I think it will work, but i may have ROM problems afterwards. -- Tried, won't work. I get "not declared in this scope errors, which is normal".​I am trying to compile for Xperia Z2, on Mint 17 64bit.
Thanks!
Costinutz32 said:
First of all, i am sorry in advance for posting in the wrong section if i did so.
Second, i am facing these errors when building AOSP :
Code:
hardware/qcom/display/msm8974/libcopybit/copybit_c2d.cpp:34:28: fatal error: linux/msm_kgsl.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp:36:0:
hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:38:0:
hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
target thumb C++: gps.msm8974 <= device/sony/shinano-common/gps/libloc_api_50001/loc.cpp
target thumb C: gps.msm8974 <= device/sony/shinano-common/gps/libloc_api_50001/gps.c
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.o] Error 1
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/copybit.msm8974_intermediates/copybit_c2d.o] Error 1
hardware/qcom/display/msm8974/libqdutils/mdp_version.cpp:33:27: fatal error: linux/msm_mdp.h: No such file or directory
compilation terminated.
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libqdutils_intermediates/mdp_version.o] Error 1
Can anyone help me here ? I am pretty new with ROM compiling stuff, so please be kind . I am trying to learn.
A question :Can i just modify includes for copybit_c2d.cpp and get passed of this error ? I think it will work, but i may have ROM problems afterwards. -- Tried, won't work. I get "not declared in this scope errors, which is normal".​I am trying to compile for Xperia Z2, on Mint 17 64bit.
Thanks!
Click to expand...
Click to collapse
As the error says,one of the header files required to create the .o or the object file is missing. Trying searching the file on Google and add it to required folder and #include it to your .c/.c++ program.
Good luck.

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)) ####

Categories

Resources