yashsingh1/xdaforums huggingface dataset:
[Android] akhilnarang:
What changes did you make?

Happened to me today when I had a space in my hostname lol

Else it would happen if I ever set LOCALVERSION from the menuconfig
[Android] zeeshanhussain12:
i have compiled the kernel according to the guide just added some governers , i/o schedulers and intelliplug, compiled with 3 toolchains and 9 build scripts, still no luck, here is the link of the your build script which i have modified a bit http://pastebin.com/cGBbURjq , I have tried corphish scripts too, it too didnt work:crying:, everything is working fine just getting kernel version unavailable in settings, here is my git you can have a look :D:D

https://github.com/zeeshanhussain/Inazumakernel
[Android] zeeshanhussain12:
[MENTION=5854483]akhilnarang[/MENTION] i fixed it, thanks for helping actually the kernel name was too long lol
[Android] yakaner16:
Every time when I am type brunch i9300 comes the error message below.

~/ cm$ brunch i9300

including vendor/cm/vendorsetup.sh

build/ core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung / i9300 / cm.mk]]: "device/ samsung/ smdk4412-common/common.mk" does not exist. Schluss.

Device i9300 not found. Attempting to retrieve device repository from CyanogenMod Github

Found repository: android_device_samsung_i9300

Default revision: cm-12.1

Checking branch info

Default revision cm-12.1 not found in android_device_samsung_i9300. Bailing.

Branches found:

cm-10.1

cm-10.2

cm-11.0

ics

jellybean

jellybean-stable

mr1-staging

stable/cm-11.0

stable/cm-11.0-XNG3C

cm-10.2-M1

cm-10.2.0

cm-10.1.3-RC2

cm-10.1.3-RC1

cm-10.1.3

Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.

build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/i9300/cm.mk]]: "device/samsung/smdk4412-common/common.mk" does not exist. Schluss.

** Don't have a product spec for: 'cm_i9300'

** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'
[Android] Anik_khan:
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/i9300/cm.mk]]: "device/samsung/smdk4412-common/common.mk" does not exist. Schluss.

Look at that this file doen't exists. Please use local manifest and sync proper repository
[Android] nitin.chobhe:
I'm building carbon ROM for lettuce (Yuphoria) which is a 64 but device. I'm getting following error:

http://hastebin.com/bilalalogo.pl

Building on Trusty 14.04 LTS

target thumb C: libdl_32 <= bionic/libdl/libdl.c

Import includes file: /home/sn_chobhe/carbon/out/target/product/lettuce/obj_arm/STATIC_LIBRARIES/libcompiler_rt-

extras_intermediates/import_includes

target thumb C: libcompiler_rt-extras_32 <= external/compiler-rt/lib/builtins/mulodi4.c

/usr/bin/as: unrecognized option '-mfloat-abi=softfp'

clang: error: assembler command failed with exit code 1 (use -v to see invocation)

make: * [/home/sn_chobhe/carbon/out/target/product/lettuce/obj_arm/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/lib/builtins/mulodi4.o] Error 1﻿
[Android] kushal_10:
Thanks :D
[Android] nitin.chobhe:
[MENTION=5854483]akhilnarang[/MENTION] can you help me?
[Android] MrMaddTraxx:
There's a typo, when editing the .profile to configure the sdk, at the last path part it shows : PATH="$HOME/android-sdk/tools:$HOME/android-sdk/plartform-tools:$PATH"

Which ofcourse should be platform (not plartform). Thanks for the tutorial!
[Android] burduli:
Woooooooooooooow! Amazing thread! Thank you sir.
[Android] regalstreak:
[MENTION=6083514]Anik_khan[/MENTION] [MENTION=5854483]akhilnarang[/MENTION]

Wooaah wooah hell load of a guide!

Ask mods to pin it and get featured on xda university. I wish i had something like it when i had started deving :)

My request : include my thread

http://xdaforums.com/showthread.php?t=3231109

As to solve the issue of the below :D
[Android] divykjain:
Is installing adb and android SDK important??

I saw another tutorial where the person did none of these!!!

By the way great work by both of you guys!

Loved your work
[Android] nitin.chobhe:
Got past that error

took following folders from Xenon mm branch

system/vold

system/core

frameworks/av

and set revisions of all repositories in local manifest to cm-13.0

yay!

got a new error ?

STATIC_LIBRARIES/libinit_msm_intermediates/export_includes

http://www.hastebin.com/ilusoxepop.pas
[Android] akhilnarang:
which device tree? latest cm-13.0 updated ones?
[Android] nitin.chobhe:
Yes, latest ones.

Any clues?
[Android] zeetroman:
Hi there,

first of all thank you for making such an extensive guide. I want to start to learn about Android Development and see if I am able to build something. I have an OnePlus One which is good for this purpose I guess..

Now your guide is for Lollipop but can I use it for MM too or do I need other packages or other stuff?

I'm not looking for a spoon feed but I'm a total noob. I have set up a build environment and downloaded sources of CM. Read several guides of rom building. So far so good.

But building Cm from source is no go atm. I guess it has something to do with device tree. You say in op it has to be added manually.

I downloaded Android device... bacon but I get errors like file and folders not found and it stops after about 30 seconds. Can anyone put me in the right direction?
[Android] regalstreak:
Starting from oneplus one? wow Great!

Start from here: https://source.android.com/source/initializing.html

(install linux first. ubuntu preferred.)

for android sources, i have an index of ultra compressed sources

http://xdaforums.com/andr...ighly-t3231109

This guide will teach you everything btw!

Ok. Kernel sources for opo:

https://github.com/OnePlusOSS/android_kernel_oneplus_one

Google is your best friend anytime!

Given you loads of info.

​
[Android] zeetroman:
Thanks for reply. Ubuntu is up and running. I still learn the commands and stuff.

Also I synced cm sources. Tried several times many errors due to fetching.. But today it worked.

But thanks for the tutorials hope I find something. Setting the environment up seemed quite easy but building itself..
[Android] zeetroman:
To compile marshmallow, will there change anything in this tutorial?

Java version or packages or something?
[Android] MJPollard:
Not that I've seen. The only thing you'll need to change is the branch in the repo init command, i.e. -b cm-13.0 instead of -b cm-12.1 if you're going to build CyanogenMod.
[Android] laperry1:
your link goes to OP2...

OPO kernel source: https://github.com/OnePlusOSS/android_kernel_oneplus_one
[Android] roshan2989:
Guys in just want to know how to implement dns in kernel instead of using app
[Android] zeetroman:
Stil try to build cm13 for bacon.

When I type breakfast it pulls the kernel right? I also extracted the vendor files with extract script from cm wiki, but build still fails.

Do I need anything else or is it already too much?
[Android] alterego.devby:
Information was very useful . Thank you
[Android] Anik_khan:
Update

I removed sdk as it is deprecated also updated thread for building CyanogenMod 13.0 or its based rom.

If i forgot anything feel free to mention.

Thanks :)
[Android] ayazm.140895:
I am trying to compile cm 13 for tomato and here is the build log

http://hastebin.com/ucisuvicov.xml

I am using google cloud to compile.

How do i copy log from terminal on google cloud to hastebin and how do I see GUI interface on google cloud of ubuntu?
[Android] nitin.chobhe:
You have to select and copy using mouse...

No GUI interface available for could. Why do you need that?
[Android] ayazm.140895:
@nitin.chobhe

GUI makes life easier and selecting with mouse is difficult. When you are selecting a text and the previous ones gets deselected after some time; and you end up with only "some part of text being selected."

can you help me out with errors?

PS: Thanks for the google cloud advice. Even my own friend knew about the google cloud and didn't tell me about it. Thanks again.
[Android] Blackko:
.

what is better for compile..i have 8gb ram and core i3 4 gen..

i can use my pc or a server with azure ? or it will take the same time of compiling and things like that..i want cm 13 on my device
[Android] neonkat:
that's good..you can also use ccache to speed up things.
[Android] Blackko:
sorry but what is good haha..my pc or server :victory:
[Android] neonkat:
well servers are always better,you can easily download the sources to them,i read that it takes around 2-4 hours to build on the server but the only demerit is that they aren't free.:p
[Android] Blackko:
well azure give you 200 $ for try and you just spend what you use based on internet usage..maybe i can start with my pc
[Android] nitin.chobhe:
I had tried to use azure but had problems and could never use it. Their support is also not that good.

Since then I use Google cloud... They give you 300$ :o
[Android] Blackko:
yeah azure was 300 too but idk why it is 200 now.. and thk for the info :D
[Android] Blackko:
hey what jdk is for mm? 7 or 8? i have ma machine running and everything is on right now
[Android] MJPollard:
For the moment, JDK 7 is for Lollipop and higher. No need to concern yourself with JDK 8.
[Android] ayazm.140895:
can you guys help me out?

make: *** No rule to make target `/home/ayazm_140895/cm12.1/out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libtime_genoff_intermediates/export_includes', needed by `/home/ayazm_140895/cm12.1/out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libandroid_servers_intermediates/import_includes'. Stop. make: *** Waiting for unfinished jobs.... Import includes file: /home/ayazm_140895/cm12.1/out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libRSDriver_intermediates/import_includes #### make failed to build some targets (01:22:11 (hh:mm:ss)) #### ayazm_140895@instance-1:~/cm12.1$
[Android] nitin.chobhe:
Have a look here: http://stackoverflow.com/questions/32162555/libtime-genoff-so-error-while-building-android
[Android] connectionalive:
This must be one of the most noob-friendly guide that I can actually understand, do you mind if I post this in the Nexus 6P forums with your permission and a few modifications on how to build source for angler? Would you want credits included?
[Android] ayazm.140895:
How do i copy output ( build ) from google cloud instance to my local machine.

---------- Post added at 09:04 AM ---------- Previous post was at 09:03 AM ----------

That solution didn't work. I fixed the problem by syncing the proprietary blobs. Thanks
[Android] nitin.chobhe:
Easier way to get the build is to upload it on any ftp site (like basketbuild) and then download it from there.

Another way is to install a explorer and then copy it. I don't remember the name of it.
[Android] Anik_khan:
Yeah you can :)
[Android] ayazm.140895:
Can you explain the "Easier way" in detail. I don't get the ftp part. How do I upload a file to basketbuild from google cloud. Can you make tutorial please...

Wish you a Happy and Prosperous New Year. Only 2 hours and 38 mins to go!
[Android] zeeshanhussain12:
Ftp basket build ftp server link

E.g ftp uploads.androidfilehost.com

Then it will ask for username and password after that type "put filename.zip" to transfer to ftp
[Android] myctek:
Repo sync errors, need help!

[MENTION=6083514]Anik_khan[/MENTION] [MENTION=5854483]akhilnarang[/MENTION]

I'm syncing with: repo sync -f --no-clone-bundle

The repository is almost synced, but it gets stuck at a certain point (no ups/downs on network):

I have copied the log from terminal here:

http://pastebin.com/USgszeee

Please help me out on this.

Thanks!
[Android] akhilnarang:
Maybe you have slow net, or have used a high -j flag

Try adding a -j1 flag and syncing
[Android] myctek:
Hey,

Thanks for replying. I haven't used in -j flag, and yes, my net speed is arguably slow, but isn't -f flag supposed to wait network timeouts?

Anyways, I'll try with the -j1 flag.

Thanks!
[Android] adityaupreti:
[MENTION=6083514]Anik_khan[/MENTION] and [MENTION=5854483]akhilnarang[/MENTION]

help me

make: *** No rule to make target '/home/aditya/ownrom/out/target/product/ms013g/obj/STATIC_LIBRARIES/libinit_msm_intermediates/export_includes', needed by '/home/aditya/ownrom/out/target/product/ms013g/obj/EXECUTABLES/init_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/compiler-rt/Android.mk -- /home/aditya/ownrom/out/target/product/ms013g/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/export_includes

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

im getting this error while compile ownrom fro grand 2
[Android] neonkat:
seems like you are missing "android_device_qcom-common".

if you already having that,try to put that in *device/qcom/common*.
[Android] adityaupreti:
i fixed this error bt getting this new error [MENTION=5991747]neonkat[/MENTION] [MENTION=6083514]Anik_khan[/MENTION] [MENTION=5854483]akhilnarang[/MENTION]

/home/aditya/ownrom/out/target/product/ms013g/obj/KERNEL_OBJ/../../../../../../kernel/samsung/ms013g/drivers/media/radio/radio-iris.c:4607: undefined reference to `radio_hci_smd_init'
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/arm/cpu-arm.cc
/home/aditya/ownrom/kernel/samsung/ms013g/Makefile:887: recipe for target '.tmp_vmlinux1' failed
make[2]: *** [.tmp_vmlinux1] Error 1
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/aditya/ownrom/kernel/samsung/ms013g'
build/core/tasks/kernel.mk:229: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....

#### make failed to build some targets (54:34 (mm:ss)) ####
[Android] neonkat:
check https://gitlab.com/pa_ms013g/androi...mmit/6be37d99402ce0a04467b5e5976eac51be1cec8f.(this is for grand 2 only)
[Android] adityaupreti:
so i need to use this kernel or what i need to do
[Android] neonkat:
easiest way will be cherry pick that commit(on the kernel source)or else,do that manually in your sources and give proper credits to real dev along with that commit message.
[Android] adityaupreti:
Bt I'm building 5.1.1 rom and that is kk.

I installed Gcc 4.9 hope it will fix error
[Android] neonkat:
better use 4.8(less troubles),newer compilers doesn't mean you can skip build error.

it doesn't matter if that one is kk or lp or mm.better come on pm.
[Android] adityaupreti:
how to cherry pick this to fix build error
[Android] neonkat:
do it manually if you don't use gitlab.(provide credits to original dev in the commit message)
[Android] akhilnarang:
OwnROM soruce is anyway outdated, hasn't been updated since August, it won't build
[Android] myctek:
Some more issues

[MENTION=6083514]Anik_khan[/MENTION] [MENTION=5854483]akhilnarang[/MENTION]

Hey!

I've sorted most of the issues by using the -j1 flag. But here's another issues that doesn't seem to go away:

platform/prebuilts/sdk refuses to sync, no matter how many times I try, even with different flags. This is the error log:

http://pastebin.com/gNRB3etq

The sync ALWAYS stops at:

Receiving objects: 79% (18188/23016), 1023.93 MiB | 109.00 KiB/s

And thats it, gives the error and continues forward (because of --force-sync). Without -f, it stops the sync.

I've also tried syncing just platform/prebuilts/sdk using

repo sync platform/prebuilts/sdk -f -j1

platform/prebuilts/eclipse also seems to be a problematic project, but idk if it was related to platform/prebuilts/sdk error.

Here's another error log when the work tree was syncing (wherein platform/prebuilts/eclipse threw an error):

http://pastebin.com/Y0nrD3ES

P.S. I'm syncing with

repo sync --force-sync --no-clone-bundle -j1

I've tried different combinations of the flag, but still the same error.

Thanks!
[Android] adityaupreti:
i have also faced this same problem earlier see if u can open this site press here
[Android] myctek:
Yes I can, no problem. What seems to be the issue, and how did you solve it?
[Android] adityaupreti:
I installed software update of Ubuntu and it fixed problem
[Android] myctek:
What/Which software update? Through the automatic update, or did you upgrade any packages?
[Android] adityaupreti:
Automatic update and I also use this command on terminal

Sudo apt-get update
[Android] vbajs:
Great guide,

Also, if you got an error saying " exited repo sync due to fetch errors"

Use this command :-

repo sync -f
[Android] darjwx:
A bit late haha but anyway, that probably means that there is an error in the manifest, a syntax error. Or maybe that the repo you are trying to download doesn't exist anymore. You can check you local manifests or you can do repo sync -j1. Doing that the process will stop at the repo that has problem either because doesn't exist or is not correctly written.
[Android] akhilnarang:
BTW, scripts repo has been updated a lot :)

https://github.com/akhilnarang/scripts

It has a script for setting up Arch Linux too :) [not 100% tested]

Also someone contributed and now it has a script to automatically copy your ssh key to your github account :D

Enjoy
[Android] falconscrest123:
compile error

So i decided to build omni marshmallow for my device but i am seriously stuck on a error which i dont even means. If any one could help me that would be great

http://pastebin.com/CLwgnER6
[Android] pantasio:
As many of you'll already know, kernel of an operating system

Android devices use a modified version of the linux kernel

my newbie question:

the feature dould touch on screen is open our phone, so this feature come from custom rom or kernel??

Why do we custom or build custom kernel??
[Android] neonkat:
kernel.

to get the performance of a 5x and battery life of a nokia 3300.
[Android] himsin:
Hi, I am getting following kind of errors while syncing cm13:

fatal: unable to access 'https://android.googlesource.com/platform/external/junit/': gnutls_handshake() failed: A TLS packet with unexpected length was received.

fatal: unable to access 'https://android.googlesource.com/platform/external/freetype/': gnutls_handshake() failed: A TLS packet with unexpected length was received.

Is it fine or I have to do something about it??
[Android] akhilnarang:
Just run sync again, it'll work
[Android] himsin:
Thanks, will do it.
[Android] darjwx:
Pick this commit.

https://github.com/CyanogenMod/android_build/commit/b21ccfd9eba62afe71b1b8aae4f387fe91b822e2
[Android] falconscrest123:
thanks man the commit fix the error but guess what 5 minutes later there was another error regarding Fs_config.c. I looked through the file on github but i didnt find any syntax error in the files

Heres the log file if anyone wants to take a look

http://pastebin.com/P86n3pRM

Thanks again for helping me out

Edit fixed the problem
[Android] himsin:
So my first build is compiling, is there any way to know the progress or status of compilation?
[Android] darjwx:
Not normally. Some ROMs has a command to show the time that will take the compilation (for example in broken os: time make broken ). If the ROM support it, it will be in the manifest repo in his github.

As a guide. My compilations in lp takes 2:30h more or less, and in mm 2h.

Compiling in a laptop (Toshiba satellite s50b13m) with linux mint.

8gb of ram.

I7-4510U
[Android] falconscrest123:
compile error

Ive been stuck for the past few days on one error regarding some USR file if someone could guide me to the right direction that would be helpful

CHK include/linux/version.h

CHK include/generated/utsrelease.h

make[3]: `include/generated/mach-types.h' is up to date.

CALL /home/mgomes/android/omni/kernel/samsung/aries/scripts/checksyscalls.sh

CHK include/generated/compile.h

GEN usr/initramfs_data.cpio.lzma

File usr/galaxysmtd_initramfs_files/lvm.conf could not be opened for reading

line 51

File usr/galaxysmtd_initramfs_files/lvm could not be opened for reading

line 52

File usr/galaxysmtd_initramfs_files/init could not be opened for reading

line 54

make[3]: *** [usr/initramfs_data.cpio.lzma] Error 255

make[2]: *** [usr] Error 2

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory `/home/mgomes/android/omni/kernel/samsung/aries'

make: *** [TARGET_KERNEL_BINARIES] Error 2

Full log http://pastebin.com/U30id5mX

Ive looked through LVM.conf/LVm file nothing seems to be the problem
[Android] akhilnarang:
You can use time before any command in Linux terminal to show how long it took :)

Sure you have complete kernel sources, maybe they got corrupted or have missing files?
[Android] falconscrest123:
I fixed the error that i had earlier apparently i was using the android kit kat kernel sources to build the rom and that was the reason for the error. However, after using the android 6 sources i was able to compile a boot image but i ran into a boot loop when i flashed it

Twrp recovery also look buggy, fadded colors and barely readeble words

I didnt get any error during the build can any tell me why that happened and what im doing wrong
[Android] EndLess:
thanx for sharing it bro.... u understood slow internet users problm like me :p can u plzzz guide me how can i use google cloud to sync sources ?? :confused:
[Android] akhilnarang:
https://cloud.google.com

You can take a trial from there and use that server. Then, steps are the same.
[Android] EndLess:
bro if u give me step by step guide it will be very greatfull ... i m bieng struggling from 4 days to find out the way to sync sources on google cloud ... guide me plzz bro :crying:
[Android] Vidhanth:
Start your trial, create a new VM instance (select Ubuntu 15.10 as the image). Then start it. There's a SSH button. Click it and you'll be connected to your VM by a terminal. From there, just enter commands to prepare your build environment, sync the sources, and build.

Additional tip-

If you want a graphic interface (recommended) do this

sudo apt-get install xfce4 xfce4-goodies tightvncserver

vncserver

(It'll ask you for an 8 digit password, enter it. And then the next question is your choice)

Then install a vnc viewer on your PC/phone, (recommended MobaXTerminal), and select new vnc session. Now copy the external IP of your VM and paste that as the host. The port no. is 5901. Hit connect, and you're done. You might have to install a web browser on your VM to upload your builds ?
[Android] EndLess:
Tnx alot bro .. Gonna try it tonight :)
[Android] Mandy $ingh:
vendor/cmsdk/packages/CMSettingsProvider/tests/src/org/cyanogenmod/cmsettings/tests/CMSettingsProviderDefaultsTest.java:121: error: cannot find symbol

CMSettings.Global.DEV_FORCE_SHOW_NAVBAR_ENABLED,

^

symbol: variable DEV_FORCE_SHOW_NAVBAR_ENABLED

location: class Global

Note: vendor/cmsdk/packages/CMSettingsProvider/tests/src/org/cyanogenmod/cmsettings/tests/CMSettingsProviderDefaultsTest.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

1 error

build/core/java.mk:394: recipe for target '/home/mr/RR/out/target/common/obj/APPS/CMSettingsProviderTests_intermediates/classes-full-debug.jar' failed

make: *** [/home/mr/RR/out/target/common/obj/APPS/CMSettingsProviderTests_intermediates/classes-full-debug.jar] Error 41

make: *** Waiting for unfinished jobs....
[Android] jishujena2000:
Kudos :D .. Has helped me to grab the grips and holds very well . :) Would request u to add some fixes for common build error too . It would help many newcomers like me :D
[Android] Arvind7352:
Searching posts under this thread and many other threads makes you better :cowboy:
[Android] akhilnarang:
https://github.com/akhilnarang/scripts updated :D

Now has scripts for ubuntu16.04/linuxmint18 as well :D
[Android] friozi:
Guys any ideas? i cant pass this error
[Android] furkaan28:
I cant install all the required packages because of this.. Any help? It says : could not find directory
[Android] TimSchumi:
do the following:

cd ~
rm -rfv scripts

And then clone the git repository again.