yashsingh1/xdaforums huggingface dataset:
[Android] Nikhil:
check vendorsetup.sh in your device tree. it should be 'cm_saga-userdebug' not 'cm_saga_userdebug'.

P.S you will need to use 'lunch' command instead of 'brunch' if vendersetup.sh contains 'add_lunch_combo' in it.
[Android] jackeagle:
OP Updated with Build Errors And Their Solutions Given by Fellow Members :) Thanks [MENTION=4867515]Nikhil[/MENTION] [MENTION=4426481]JJsevol[/MENTION] :)
[Android] Nikhil:
you forgot to add Screenshots ;)
[Android] letmedanz:
Just dropping by to Thank you for an excellent thread.

Fantastic write-ups by you & the others..

Good job
[Android] jackeagle:
Thanks a lot for the Inspirational Words :) :angel:
[Android] VnnAmed:
Yayy I know what is wrong. When i launch lunch command saga is not on the list. I think it is because last cm for saga was cm7. So how do I build cm11 for saga? Do I add it manually?
[Android] RVR:
Just do brunch saga
[Android] VnnAmed:
marlab@u14:~/cm11$ brunch cm_saga-userdebug
including vendor/cm/vendorsetup.sh
ls: cannot access device/*/saga/cm.mk: No such file or directory
build/core/product_config.mk:233: *** Can not locate config makefile for product "cm_saga". Stop.
Device saga not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_htc_saga
Default revision: cm-11.0
Checking branch info
Default revision cm-11.0 not found in android_device_htc_saga. Bailing.
Branches found:
gb-release-7.2
gingerbread
gingerbread-release
ics
jellybean
cm-7.1.0
Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.
ls: cannot access device/*/saga/cm.mk: No such file or directory
build/core/product_config.mk:233: *** Can not locate config makefile for product "cm_saga". Stop.

** Don't have a product spec for: 'cm_saga'
** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'

:(

marlab@u14:~/cm11$ brunch saga
including vendor/cm/vendorsetup.sh
ls: cannot access device/*/saga/cm.mk: No such file or directory
build/core/product_config.mk:233: *** Can not locate config makefile for product "cm_saga". Stop.
Device saga not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Traceback (most recent call last):
File "build/tools/roomservice.py", line 76, in <module>
result = json.loads(urllib.request.urlopen(githubreq).read().decode())
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
ls: cannot access device/*/saga/cm.mk: No such file or directory
build/core/product_config.mk:233: *** Can not locate config makefile for product "cm_saga". Stop.

** Don't have a product spec for: 'cm_saga'
** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'
[Android] RVR:
Link to ur device tree
[Android] VnnAmed:
https://github.com/CyanogenMod/android_device_htc_saga
[Android] Kishan14:
For officially supported device enter this command.. breakfast <code name>

Eg : breakfast saga

---------- Post added at 03:43 AM ---------- Previous post was at 03:40 AM ----------

also if u are making unofficial build.. U gtta add device kernel and vendor tree to ur local_manifests.xml... For brief info refer to guide.. I guess post#8..
[Android] Nikhil:
Yes, if you don't have official support for your device, you need to add entry manually in vendorsetup.sh

This device tree (CM7.2) wont work. you will atleast need CM10.2 device tree.

clearly cm.mk is missing. refer this. it is for my device. you will need similar for your device.
[Android] VnnAmed:
I believe this is the branch. There is also cm.mk in the cm11 folder. It says that I'm building for goldfish.
[Android] Nikhil:
Yes, this is perfect.
[Android] VnnAmed:
Yeahhhh... So umm, how do I use it exactly?
[Android] david makarove:
Hello again :p

once this guide started i directly go to start my first rom (liquid smooth)

i synced sources and added my device tree and modified it

When i start build script each time i get different output and different build time even if i didn't touch it!

Why that happened ?

how can i send build log to you guys help me :D ?

can i try this in terminal

BUILD_COMMAN >> OUTPUT.txt

is that good method ?

Waiting for help
[Android] jackeagle:
Hi,

Best Is Copy Paste the Log From Terminal to any Pastie Site :) or Paste here with Codes :D
[Android] KeTuRr74:
Hi can someone help me ? Thanks

http://hastebin.com/iyaqujiqey.pas
[Android] desalesouche:
I guess you need that commit: https://github.com/surdupetru/andro...mmit/b05972fbc280a18821c58ce38a90d93c7e0c16de
[Android] I_Will_Build_Roms:
Hey, I was wondering whether I can use CM 12 device tree for building a ROM based on CM 13.
[Android] KeTuRr74:
You can but you will face some errors.
[Android] :
[MENTION=5216756]jackeagle[/MENTION] [MENTION=4924398]RVR[/MENTION] will there no hope for Galaxy J2? Exynos 3475?
[Android] nitin.chobhe:
Can someone help me with this error: http://www.hastebin.com/wegicigumi.pas

make: *** No rule to make target `out/target/product/lettuce/obj/SHARED_LIBRARIES/libcryptfs_hw_intermediates/export_includes', needed by `out/target/product/lettuce/obj/EXECUTABLES/vold_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....

Building AOSP...
[Android] desalesouche:
you need device_qcom_common to be added in your sources.

https://github.com/CyanogenMod/android_device_qcom_common
[Android] nitin.chobhe:
Yes, it's already there. I got that after googling for few hours.

But still the error is the same. I think I need some more things which are missing. But in not able to find them out :banghead:
[Android] ayazm.140895:
[MENTION=5044214]nitin.chobhe[/MENTION] Please help me out.

http://hastebin.com/asevikuqec.vhdl

what ever I do same errors pop out. And I can't use google cloud as my bank doesn't allow foreign transactions.
[Android] Jeik:
Hey guys.

I tried to brunch,after rebuilding my build environment,and I got this error:

http://hastebin.com/mujuxurelo.pl
[Android] KeTuRr74:
Send me your roomservice.xml
[Android] ayazm.140895:
here, https://www.dropbox.com/s/quzpfd9ujpixcyo/roomservice.xml?dl=0
[Android] shyvam:
Hey devs can u help me to port device tree for a new device

And which file can i edit to make a device tree or rplace from other device tree's files which have same specs

Please help so that i can learn from u (seniors) and i think u most devs were the same as me when u started on xda so u can understand what i m trying to learn! So i mean please help me in this

I ll appriciate
[Android] ayazm.140895:
can you guys help me with the erros.

http://hastebin.com/munamofiwi.vbs
[Android] DSA:
Not a valid link
[Android] ayazm.140895:
EDIT:http://hastebin.com/iwukabatug.vbs

try reloading the page and wait.
[Android] ayazm.140895:
start here.

https://wiki.cyanogenmod.org/w/Doc:_porting_intro
[Android] shyvam:
Thanx
[Android] ayazm.140895:
Please thank me using xda "thanks" button. It helps me a lot.
[Android] shyvam:
Oh brother always u relly helped me i ll
[Android] desalesouche:
hi all.

Does someone know how to fix that little warning?

device/huawei/g620s/liblights/lights.c:237:9: warning: multi-line comment [-Wcomment]

//ALOGE("par is\n RED=%d, BLUE=%d, GREEN=%d\n onMs=%d, offMs=%d\n", \

^

thank you
[Android] istperson:
The backslash '\' character indicates that the line continues in the next line. The '//' is the one line comment and these two clash.

Without context, I don't know if you need the backslash or not.
[Android] desalesouche:
if i delete it build run into error...
[Android] istperson:
Still, you don't show me the context. But I'll just figure it out myself, looks like its a multi line macro used there, and while it doesn't need the backslash to break it into many lines, but they used it anyway.

So if you want to keep it commented out, and you want to shut the warning up (but if the build doesn't stop on warnings, you really don't have to bother shutting it up), but if you do want to shut it up do like this:

// SOMETHING ("starting here",\
"continued here", \
"maybe even here");

And turn it into this:

// SOMETHING ("starting here",
//"continued here",
//"maybe even here");

Just don't forget to revert it into its original state if you want to remove the comment.
[Android] laperry1:
This is a great guide, i've definitely learned a lot from it...

just a couple (or so...) of questions: i've been compiling cm-12.1 for a while now, so how do i update my source to cm-13.0?

repo init, repo forall?

also, how do i apply the mods i've made to 12.1?

tia...
[Android] neonkat:
you need to redownload cm 13.0 sources.
[Android] nitin.chobhe:
Initialize the cm-13.0 repo; and repo sync
[Android] laperry1:
thanks to both of you for your replies... just to confirm:

1. will this overwrite my current modifications

2. i assume i need to either update my local manifest (eventually, of course) or remove it during the initial repo sync?

thanks again!
[Android] MJPollard:
You don't pull the CM13 branch into your current setup; you create a new directory and pull the CM13 branch into that, then make your modifications to the new directory. Trying to overwrite one branch with another, completely different branch is the mother of bad ideas, as it would completely screw things up. (Yes, they're both CyanogenMod, but they're too different to actually merge.)
[Android] laperry1:
got it, thanks!
[Android] Nous16:
Thanks for the great Guide! :good:

I have an error and don`t know what I have to do... :/

target thumb C++: libOmxAacEnc <= hardware/qcom/audio-caf/legacy/mm-audio/aenc-aac/qdsp6/src/omx_aac_aenc.cpp
In file included from hardware/qcom/audio-caf/legacy/mm-audio/aenc-aac/qdsp6/src/omx_aac_aenc.cpp:41:0:
hardware/qcom/audio-caf/legacy/mm-audio/aenc-aac/qdsp6/inc/omx_aac_aenc.h:52:34: fatal error: QOMX_AudioExtensions.h: No such file or directory
compilation terminated.
make: *** [/home/nous16/CM11/out/target/product/villec2/obj/SHARED_LIBRARIES/libOmxAacEnc_intermediates/src/omx_aac_aenc.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C: libOmxAacEnc <= hardware/qcom/audio-caf/legacy/mm-audio/aenc-aac/qdsp6/src/aenc_svr.c
In file included from hardware/qcom/audio-caf/legacy/mm-audio/aenc-aac/qdsp6/src/aenc_svr.c:35:0:
hardware/qcom/audio-caf/legacy/mm-audio/aenc-aac/qdsp6/inc/aenc_svr.h:39:0: warning: "LOG_TAG" redefined [enabled by default]
In file included from system/core/include/cutils/log.h:1:0,
from system/core/include/utils/Log.h:31,
from hardware/qcom/audio-caf/legacy/mm-audio/aenc-aac/qdsp6/inc/aenc_svr.h:36,
from hardware/qcom/audio-caf/legacy/mm-audio/aenc-aac/qdsp6/src/aenc_svr.c:35:
system/core/include/log/log.h:68:0: note: this is the location of the previous definition

I have tried repo sync and deleted bevor kernel/htc/villec2 and device/htc/villec2 . Also I downloaded the device tree and kernel from github and extract them to the location. But the error is still there...

Could you please help me ?
[Android] roshan2989:
Guys do you know how to implement dns in kernel...?
[Android] Jeik:
Hey guys.

I managed to set up Vanir build environment,but I keep getting the libchromium error.

I have 4GB of RAM,30 GB of swap partition,and swappiness set to 10.

I managed to build CM12.1 on the same PC on 29/11,and I am trying to build CM12.1 now too,to see if the libchroium error occurs there too.

But that error would always occur while the terminal was installing "PicoTts.apk".

Can I make the script skip Pake the script skip PicoTts.apk? I would add the PicoTts from the older CM12.1 build I made...
[Android] I_Will_Build_Roms:
Compilation error

~Deleted~
[Android] KeTuRr74:
Give the exact error on hastebin or pastebin

---------- Post added at 23:45 ---------- Previous post was at 23:44 ----------

Same, give the right error on pastebin or hastebin please ?
[Android] I_Will_Build_Roms:
please check my next reply
[Android] Jeik:
I fixed the libviewchromium.so error. I didn't notice that my swap partition was turned off at every reboot. Enabled it,and the builds were successfully made.
[Android] I_Will_Build_Roms:
Hi guys, here is the error i am getting while building cm13 for ghost

http://hastebin.com/ifulesotuw.vhdl
[Android] KeTuRr74:
Wich qcom_sepolicy repo are you using ?
[Android] I_Will_Build_Roms:
This one(maybe)-http://https://github.com/CyanogenMod/android_device_motorola_msm8960dt-common/tree/cm-13.0

Please bare with me here. I am new to all this. If what i say doesnt answer your question correctly, could you tell me how i should check 'which qcom_sepolicy' i am using?
[Android] Jeik:
Hey guys,me AGAIN.

I am having very annoying problems with building EuphoriaOS for my Idol3(MSM8916).

I am getting this error,and I cant find a solution to it...

http://hastebin.com/itazotadih.vhdl

Can anyone help me?
[Android] KeTuRr74:
XDA is here to help new people no bare them ?

Take a look in your .repo/manifest.xml or .repo/local_manifests/roomservice.xml, open both files with gedit and try to search qcom_sepolicy. Paste the full line here if you find it ?
[Android] I_Will_Build_Roms:
<project path="device/qcom/sepolicy" name="CyanogenMod/android_device_qcom_sepolicy"/>

This is from manifest.xml

In roomservice.xml, there wasn't any 'qcom_sepolicy'.
[Android] KeTuRr74:
Wich rom are you building ?
[Android] I_Will_Build_Roms:
CyanogenMod 13
[Android] I_Will_Build_Roms:
[MENTION=5305791]KeTuRr74[/MENTION] got anything for me?
[Android] KeTuRr74:
Wait a bit i need to enter in my PC first :D

---------- Post added at 20:01 ---------- Previous post was at 19:23 ----------

Wich repo are you using for the msm8960dt-common tree ?

Try to delete the init_shell.te in device/motorola/msm8960dt-common/sepolicy
[Android] I_Will_Build_Roms:
where can find which repo am using for msm8960dt-common? its not in manifest.xml

also, instead of deleting the file init_shell.te, i deleted the content of the file(was only one line). lets see what happens!

---------- Post added at 07:43 PM ---------- Previous post was at 07:35 PM ----------

Heres the error i get after deleting the contents of that file-

http://http://hastebin.com/zozuyusuje.pas
[Android] KeTuRr74:
Try the method above that you used to find qcom_sepolicy

I cant open the link.
[Android] I_Will_Build_Roms:
Sorry, here is the right link

http://hastebin.com/zozuyusuje.pas
[Android] I_Will_Build_Roms:
here is the repo for msm8960dt

<project name="CyanogenMod/android_device_motorola_msm8960dt-common" path="device/motorola/msm8960dt-common" remote="github"/>
[Android] caragon:
Hi all, I followed this guide and i'm trying to build cm13 for a droid maxx (obake) but i keep running into this error when i run brunch obake:

make: *** No rule to make target '/home/chuck/cm13/out/target/product/obake/obj/STATIC_LIBRARIES/libunz_intermediates/export_includes', needed by '/home/chuck/cm13/out/target/product/obake/obj/EXECUTABLES/charge_only_mode_intermediates/import_includes'. Stop.

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

Export includes file: frameworks/native/cmds/bugreport/Android.mk -- /home/chuck/cm13/out/target/product/obake/obj/EXECUTABLES/bugreport_intermediates/export_includes

make: Leaving directory '/home/chuck/cm13'

#### make failed to build some targets (01:30 (mm:ss)) ####

I'm completely new to all this so any help would be greatly appreciated!
[Android] KeTuRr74:
Wait a little moment. Most of device are not buildable for the moment because changes are needed. I suggest you to wait till CM update your device tree etc..
[Android] I_Will_Build_Roms:
Sorry, I forgot to tell you. I fixed the error and all the other errors. Now I am patching the files. Thanls for giving your time
[Android] caragon:
bump.... Anyone???
[Android] Gplayjay:
Help

Who would have time and a little knowledge as how to root a phone not so much as in downloading an app and connecting it and clicking a button I meant dumping a phones system and searching for vulnerabilities creating an application and using the application to test found vulnerabilities actually learning is what I'm interested in
[Android] istperson:
I'll go out on a limb, and presume that cm13 for the droid maxx is not ready yet for nightlies.

So it's nice that you want to try to port it to your phone, but at least learn some of the very basics like how make files work, what are the rules, how a make file decides what to build or how to build it.

I mean somebody could actually put here a solution what to add to your manifest, which repository is missing, but if you knew what was exactly wrong, you could do this yourself.
[Android] siju2012:
I am getting following error while building . Any pointers how to solve ?

frameworks/base/services/tests/servicestests/src/com/android/server/pm/PackageManagerSettingsTests.java:376: error: no suitable constructor found for Settings(Context,File)

Settings settings = new Settings(getContext(), getContext().getFilesDir());

^

constructor Settings.Settings(File,Object) is not applicable

(actual argument Context cannot be converted to File by method invocation conversion)

constructor Settings.Settings(Object) is not applicable

(actual and formal argument lists differ in length)

make: *** [/home/android/ROM/out/target/common/obj/APPS/FrameworksServicesTests_intermediates/classes-full-debug.jar] Error 41

#### make failed to build some targets (02:44 (mm:ss)) ####
[Android] BlueKoi:
CM-13.0 with l900 build error

I did a search of the forums and came up with nothing and came across a few post on Google which I followed the instructions of installing Android NDK and Android ADT tools and still came up short

curl (/home/don/android/system/out/target/product/l900/obj/EXECUTABLES/curl_intermediates/LINKED/curl)

/home/don/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9.4/../../../../arm-linux-androideabi/bin/ld: error: /home/don/android/system/out/target/product/l900/obj/STATIC_LIBRARIES/libogg_intermediates/libogg.a: no archive symbol table (run ranlib)

collect2: error: ld returned 1 exit status

INFO: Compaction : 0 bytes

INFO: Too few relocations to pack after alignment

make: *** [/home/don/android/system/out/target/product/l900/obj/SHARED_LIBRARIES/libopus_intermediates/LINKED/libopus.so] Error 1

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

target SharedLib: libsigchain (/home/don/android/system/out/target/product/l900/obj/SHARED_LIBRARIES/libsigchain_intermediates/LINKED/libsigchain.so)

make: Leaving directory `/home/don/android/system'

#### make failed to build some targets (01:08 (mm:ss)) ####

I ran ranlib and retried the build and got the same outcome with each option
[Android] BlueKoi:
CM 13 and l900

I got it figured out
[Android] bio4554:
What did you do to fix it?
[Android] BlueKoi:
I ended up reinstalling all the tools and 2 of them needed updated. I ran the build again and it worked like a charm this time
[Android] bio4554:
Ok cool. Thanks for the quick reply!
[Android] arc7ful:
One noob question: do I first need to learn coding inorder to learn complete rom compiling, bug fixing, etc. ? Currently I know basic c programming and have basic knowledge about flashing roms and custom recovery.
[Android] MJPollard:
If you're just going to compile ROMs and cherry-pick features from other ROMs, then no, you really don't need to know how to code. But if you're going to make your own modifications, then yes, absolutely you do. C knowledge isn't of much help unless you're going to hack on kernel and device driver sources (which are usually written in C), but Java, on the other hand, is almost essential for coding Android, because the bulk of it is written in Java (and knowledge of XML files would be a good idea, too, as they're used everywhere).
[Android] arc7ful:
Thanks for the quick reply. I only intend to compile roms like cyanogenmod for my phone and make them bug free. Thus, I assume I don't need coding skills. One more question. The owner of this thread, please don't mind. Is this the thread where I should start in order to learn to compile roms (and debug them)?
[Android] istperson:
Well, then I have sad news for you, you do have to know C, C++ and java to make roms "bug free". Because the bugs are in the code, and making them bug free is is first understanding the code, then finding the bug, and finally making modifications that will fix the bug, and not making four new ones. Basicly it's more complicated to understand someone else's code than write your own.

However, it's a good start if you approach learning by finding fixes from other roms, and applying them to your source, build it and try it. With basic coding skills and willing to learn this can help you understand how Android works, and let you learn coding.
[Android] arc7ful:
I have decided to learn java now. I'll use udacity online course and learn java and Android app development first. Then I'll go for ROM compiling. Thanks for your help!
[Android] Frostyagent:
Help

I am getting this error

system/core/liblog/logd_write_kern.c:29:10: fatal error: 'android/set_abort_message.h' file not found

#include <android/set_abort_message.h>

^

1 error generated.

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/logd_write_kern.o] Error 1

#### make failed to build some targets (01:41 (mm:ss)) ####

But file is there at location, don't know what to do now, but anyone of you will definitely help me out :)
[Android] caragon:
I followed these steps:

Build_for_obake wiki

and i synced both of these:

CyanogenMod/android_device_motorola_obake.git cm13.0 branch

TheMuppets/proprietary_vendor_motorola.git cm13.0 branch

I've also googled the error but havent had any luck finding anything. Like I said this is my very first time building cm... I don't have a local manifest do i need to create one? :confused::confused:
[Android] BlueKoi:
That's an error because your OS is unable to read the java headers if I'm not mistaken.

in the beginning of this guide it gives you a list of tools to install, reinstall all of them, some might not have installed correctly or need updated. That's what I did and it solved the issue.

Here is also a guide for setting up a complete build environment for Ubuntu. by doing both you shouldn’t have any more issues.

community.freescale .com/thread/327811 I had to split the url because it wouldnt let me post a link because I have less than 10 post.

Good luck and let me know if it fixed your problems
[Android] KeTuRr74:
How to set up a PATH for the Toolchain ?

I get the following error when i'm trying to build

"Arm-eabi-gcc no such file or directory

Is your PATH set up correctly ?"
[Android] neonkat:
#open "Makefile" in the root of kernel source

#search "ARCH?="

#make it "ARCH ?= arm"

#search "CROSS_COMPILE ?="

#make it "CROSS_COMPILE ?= home/userrrr/toolchain folder/bin/arm-eabi-"
[Android] fgl27:
Has anyone seen behavior like this?

Made a MM ROM, it boot ok, but the screen get lock on the boot logo screen and never goes out.

I know the device is booting ok because I wait a few minutes and the screen turns off (after the OS load up), I click power button and unlock the screen (blind of courses) and take a screen shot, after I restore a L build, and check the screen shot is there from MM.

There is no official CM13 yet to device, I'm building on RR MM source. :cyclops:

:good:
[Android] nitin.chobhe:
I got exactly same error. You have to set the kernel to permissive and it will work...

check this commit, thats how I did it: https://github.com/rodman01/android_device_lge_mako/commit/59adf72d82c6b0aee96fd2735c2134ac0fc6622a﻿

:thumbup: