yashsingh1/xdaforums huggingface dataset:
[Android] EdwinMoq:
Actually you need more more patches than that, else the kernel will give compile errors.

Go here and apply all commits of Oct 13, 2015 one by one. From last to fist. I know it looks tiring but getting a rom to work takes hard work. ;)
[Android] transi1:
yes i applied this commits with cherry-pick before build kernel
[Android] transi1:
trouble not gone, #define POLICYDB_VERSION_IOCTL_OPERATIONS	30 in security\selinux\include\security.h.

i compered folder selinux with another cm13-device ready repo - not diff

[ 5.521544] SELinux: policydb version 30 does not match my version range 15-26

[ 5.530120] init: SELinux: Could not load policy: Invalid argument

[ 5.537078] init: failed to load policy: Invalid argument

[ 5.542937] init: Security failure; rebooting into recovery mode...
[Android] EdwinMoq:
That's strange. That's what I did to get my kernel to boot on CM13... Are you sure the kernel got compiled again? Remove /out/target/model/KERNEL_obj and /out/target/model/boot.img and try again.
[Android] transi1:
yes, make clean
[Android] EdwinMoq:
I don't know why isn't working for you. That should have fixed the problem.

Why don't you try starting from over, with the kernel without modifications. And then apply the commits of October 16 from here starting from security: optimize avc_audit() common path and up, one by one. And last apply this commit. Don't apply the diff I attached since they may cause conflicts.

If that doesn't work then I don't know what else to do.
[Android] transi1:
sorry, this commit not exist in my repo, i`l try

https://github.com/ShevT/android_kernel_d1_p1/commit/543165aac186d98e438db5688107990dc7d323f3
[Android] EdwinMoq:
What commit are you talking about?
[Android] transi1:
sorry https://github.com/CyanogenMod/andr...mmit/e14aa95df54669e538d056c197cd060039ca40b4
[Android] EdwinMoq:
I didn't need this one in my kernel as it was already there. Here all the patches I used. Apply those one by one to see if it works.
[Android] Scutariu:
Hello, I'm having some troubles with kernel source for my build(It is the only source, and i'm a newbie, so I don't exactly know what to do), but..from what i've read..i gotta "make" the kernel first ?

this is the kernel source, my device is Alcatel Idol 3(4"7)..hope one of you can help me :D

Thank you
[Android] EdwinMoq:
First, what ROM are you trying to build? Where's the device three and kernel sources? Everything is compiled at the same time, including the kernel. I can't help you without seeing the sources you're using.
[Android] Scutariu:
I'm trying to build CM12.1, this is the device tree, and this is the kernel soures
[Android] EdwinMoq:
Put the device three in device/alcatel/idol347 and the kernel in kernel/alcatel/msm8916. Also get the vendor blobs here and put them in vendor/alcatel/idol347. Then try building. The kernel will get build together with the rom.
[Android] Scutariu:
Already did that..i have them in local_manifests with that path..

http://hastebin.com/qoquqocepu.vhdl [The log from . build/envsetup.sh -> time lunch -> cm_idol347-eng -> mka bacon
[Android] fgl27:
you need to add the dependency to your local or clone them. check if they don't all ready existe if they don't do that.

libinit_msm is build using android_device_qcom_common that is on the cm.dependency file of device tree plus others.
[Android] Scutariu:
[
{
"repository": "android_device_qcom_common",
"target_path": "device/qcom/common"
},
{
"repository": "android_external_mm-dash",
"target_path": "external/mm-dash"
},
{
"repository": "android_hardware_qcom_fm",
"target_path": "hardware/qcom/fm"
}
]

This is what I have in CM12/device/alcatel/idol347/cm.dependencies

I need to check if I have the "target_path" in my CM12 folder ?
[Android] fgl27:
yes they are need. if the path don't exist add that to local manifest or clone to that path.
[Android] Scutariu:
EDIT: Ok, I realised what's to do, and did it, now it got pass that, but I'm having another error :|

Import includes file: /home/chris/CM12/out/target/product/idol347/obj/SHARED_LIBRARIES/libinputservice_intermediates/import_includes
make: *** No rule to make target `/home/chris/CM12/out/target/product/idol347/obj/lib/libtime_genoff.so', needed by `/home/chris/CM12/out/target/product/idol347/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so'. Stop.
make: *** Waiting for unfinished jobs....
Import includes file: /home/chris/CM12/out/target/product/idol347/obj/SHARED_LIBRARIES/libsuspend_intermediates/import_includes
make: Leaving directory `/home/chris/CM12'

#### make failed to build some targets (04:20 (mm:ss)) ####
[Android] KeTuRr74:
Wich vendor are you using ?
[Android] Scutariu:
Yes..i realised it was a vendor problem..I was using a vendor for Idol3(mine was 347), so..i had to rename/edit some stuff...hopefully, now will work(i did another mka bacon right now)
[Android] Scutariu:
I managed to build the rom for my device from source

This is the device tree, this is the kernel, and the vendor

It does flash throught twrp, and it takes quite less time than an working cm12.1 build for my device, but it does not boot..not even an bootanimation..
[Android] KeTuRr74:
Is your device have cm12.1 ?

Look like a kernel problem or bootloader.
[Android] Scutariu:
Yes, my device already has an cm-12.1 unofficial build..but i wanted to make my own to be always up to date, and gain some experience

Here's the logcat from adb http://hastebin.com/futuburara.coffee
[Android] KeTuRr74:
Are you using the same sources as the unofficial cm12.1 builds or anothers sources ?
[Android] Scutariu:
Yes, same device tree and kernel, and I think also the vendor..but, I can't be sure, as the dev didn't answered my pm when I asked him for some help :-??

I found something about the last 2 errors that gave me, it seems those are fatal.

I/ServiceManager( 270): service 'display.qservice' died
I/ServiceManager( 270): service 'media.audio_flinger' died
[Android] hahagu:
[MENTION=5305791]KeTuRr74[/MENTION]

Yay! Another error :P

I can't seem to get around that error complaining about the recovery.img size!

And when I change the BoardConfig.mk's BOARD_RECOVERYIMAGE_PARTITION_SIZE value to 8650752, the error is not there anymore, but I can't flash it cause it's too big... what do I do?
[Android] Jeik:
Erm... I am trying to build Vanir again.

In the past,it built without issues. I removed its build repository,and made it again(because of sync errors).

Now it gets over lots of things,and then this appeared...

http://hastebin.com/ucecujuhix.vbs

How is there a Java error? I mean,CM,BlissPop and AICP dont have that error...
[Android] Scutariu:
Or may be my cm.dependencies file ? It was by default at first, but now i added the links to my device tree/kernel, and i'm gonna compile another one

This is my cm.dependencies

[
{
"repository": "android_device_qcom_common",
"target_path": "device/qcom/common"
},
{
"repository": "android_device_alcatel_idol347",
"target_path": "device/alcatel/idol347"
},
{
"repository": "android_kernel_tcl_msm8916",
"target_path": "kernel/alcatel/msm8916"
},
{
"repository": "android_hardware_qcom_fm",
"target_path": "hardware/qcom/fm"
}
]
[Android] KeTuRr74:
Wich device ?
[Android] Kapiljhajhria:
So i compiled carbon rom for oneplus2. No error till now and even luch command gave successful result. But there is nothing in the out folder. When i tried again it finished building in seconds and again nothing in the out folder.

Getting no error as well. I get build name also and all details are ok.
[Android] hahagu:
It's SHV-E300K or may be referred to as jaltektt, a Korean variant of Galaxy S4. It has mostly the same specs as the jflte universal version except maybe speaker drivers and etc

Any1 help?!
[Android] nitin.chobhe:
What commands were you using got building?

His long did it take for the build first time?
[Android] Kapiljhajhria:
Oneplus2 already exists in the carbon repo. Just had to sync sources and then used lunch command. It automatically downloaded the device tree from carbon github.

Didn't gave a single error. Everything went smooth.
[Android] nitin.chobhe:
Yes, that's good.

I was asking what command did you use for "make"? make carbon?
[Android] Kapiljhajhria:
got it now.... i forgot make command i though lunch was the ony one.

getting this error now after make carbon command

so should i delete one of these files?

build/core/base_rules.mk:154: *** device/oppo/common/configpanel: MODULE.TARGET.APPS.ConfigPanel already defined by device/oneplus/oneplus2/configpanel. Stop.

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

EDIT1: deleting oppo folder did the trick. its building now. so far its ok.
[Android] nitin.chobhe:
Yes, delete it from one folder
[Android] Kapiljhajhria:
how can there be error in just compiling rom?i am not porting aymore. carbon rom already has oneplus2 in in its database.

anyways, another error after 1hr in the building process. previous error was quite simple but i failed to undersatnd this one.

any help???

Import includes file: /home/vj/android/carbon/out/target/product/oneplus2/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)
build/core/binary.mk:704: recipe for target '/home/vj/android/carbon/out/target/product/oneplus2/obj_arm/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/lib/builtins/mulodi4.o' failed
make: *** [/home/vj/android/carbon/out/target/product/oneplus2/obj_arm/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/lib/builtins/mulodi4.o] Error 1

#### make failed to build some targets (01:13:50 (hh:mm:ss)) ####

i googled some parts of these error but couldn't find anything related to android.

could this be becaus of some tool missing on my computer? a program which i might have missed.. thats the only thing i can make out of this as its saying " unrecognized option '-mfloat-abi=softfp"
[Android] Scutariu:
I just tested the kernel that was compiled with my cm build on another cm build[i replaced the boot.img files from archives], and flashed the working CM build[with the kernel I compiled, and it worked]..now ? :-s
[Android] kjinx01:
Great guide.. Excellent work.. Deserved a thank
[Android] transi1:
i had bootloop on cm13 and adb logcat in this stage don`t work.

how i can see log for resolve bootloop?
[Android] Jeik:
I am willing to kill somebody.

This error is simply annoying! :mad:

http://hastebin.com/zojelixuva.vhdl

I tried taking the troublesome file from the CMs out folder into the EuphoriaOS one,but it would just switch between libjni:tinyplanet,libjni_latinime and libdl(i tried replacing them all as well)

Is it a toolchain problem? I am not using a custom toolchain,so how....

PLEASE,can somebody help me...
[Android] KeTuRr74:
Yes is a toolchain problem, change the toolchain to 4.8 and it should work.

But i dont know if it exists as i never used aarrch64 toolchains.
[Android] Jeik:
there is a 4.8 toolchain.

Edited the TARGET_linux-arm64.mk,changed 4.9 to 4.8 .

What do you think,should I make clobber and clear ccache?

EDIT

Tried without clobbering and cleaning ccache,and got the same error with the 4.8 toolchain.

http://hastebin.com/yosojajuso.md
[Android] KeTuRr74:
There is a problem somewhere with the toolchains. Have you 5.2 toolchain ?
[Android] Jeik:
Only 4.8 and 4.9.

Where can I get the 5.2 one?

Yeah,tried googling,but only stumbled upon .tar.gz file,which are a foreign matter to me. .-____-.

Oh,its just a compressed file in this case. o.o

I could only find the SaberMod 5.2 toolchain named "aarch64-gnu-5.2"

I just need to rename it into "aarch64-linux-android-SM-5.2" and edit the needed line from "4.9" to "SM-5.2"?
[Android] KeTuRr74:
Sorry but i know nothing about aarch64 as i said before. I only use arm for building so i cant help you so much ?
[Android] hahagu:
Help plz?!
[Android] katinatez:
This one will work its for Nexus 6p aarch64.

I just built using these tool chains, use the command in commit message, BoardConfig.mk for kernel toolchain.

https://github.com/ResurrectionRemi...mmit/beca90e208dc612c308823bf58ac1d5bacc3afd4

Add this to your local_manifest and copy and paste the tool chains and repo sync.
[Android] KeTuRr74:
Change the partition size to International variant one.
[Android] desalesouche:
cache size.

Hi all, i would like to know how i can "fix" following :

Total 0 blocks are packed as new blocks due to insufficient cache size.

added in attached screenshot of partition in boardconfig.mk

thank you
[Android] Kapiljhajhria:
i am getting this error while building carbon rom for oneplus2. oneplus2 already existed in the carbon rom supported devices. still getting this error

pastebin link - here

tried building carbon for another device and sort of got the same error. atleast top 1/3rd error was same and it qit after that for another device.
[Android] fgl27:
you need to check the .dependencies file of your tree. if those folder don't exist on the source clone or add that to local_manifests.
[Android] Kapiljhajhria:
i did not create dependency file as it was autmatically ceated when i tried lunch command and selected oneplus2. oneplus 2 is in the list of supported device of carbon rom. so most of the manual stuff or porting was not needed.

repo sync and then lunch comman downloaded everything.

here is my carbon.dependencies file content

[
{
"remote": "cm",
"repository": "Cyanogenmod/android_device_oppo_common",
"target_path": "device/oppo/common",
"revision": "cm-12.1"
},
{
"remote": "cm",
"repository": "Cyanogenmod/android_device_qcom_common",
"target_path": "device/qcom/common",
"revision": "cm-12.1"
},
{
"remote": "gh",
"repository": "Grarak/android_kernel_oneplus_msm8994",
"target_path": "kernel/oneplus/msm8994",
"revision": "cm-12.1"
},
{
"remote": "td",
"repository": "proprietary_vendor_oneplus",
"target_path": "vendor/oneplus",
"revision": "cm-12.1"
}
]

everything looks ok. i understand everything except the first lines conatining "remote"
[Android] KeTuRr74:
Is the jfltekatt have an exynos or SD proc ?

Only changing the recovery size should be good. Replacing the numbers
[Android] hdorius:
Fixed
[Android] fgl27:
do you have all of those on the source?

because the error you are having is because this one is missing:

Cyanogenmod/android_device_qcom_common
[Android] hahagu:
It's not jfltekatt its jaltektt and they don't have the same specs either lol

anyways, its exynos now what do I do?

btw edited the original post
[Android] KeTuRr74:
You should ask this question to a dev who know the job.

I think you can replace the RECOVERY_TARGET_PARTITION from i9500 with your but your and i9500 one are the same so i dont know other fix for that ?
[Android] hahagu:
bump...
[Android] manu3193:
I've folowed all the patches you did to succesfully build cm13 for jem, I did a clean flash and got stuck in boot. This is the kmsg log that i've got from /proc/kmsg after rebooting to recovery.

pastebin.com/FYfKNKAz (I cant post external URL's yet)

Any help will be apreciated.
[Android] hdorius:
Hi my I know what is dummy?I got error when compiling the Rom...
[Android] Jeik:
I downloaded the 5.3-kernel and 4.9

I mean,I placed them both in the right folders,renamed the original "aarch64-linux-android-4.9" to "aarch64-linux-android-4.9b",renamed the UBER 4.9 toolchain folder into "aarch64-linux-android-4.9",and renamed the UBER 5.3-kernel folder into "aarch64-linux-android-5.3"

How can I make the rom build with the 4.9 toolchain,and the kernel with the 5.3-kernel?

Or is it ok to just use the 4.9 toolchain?

EDIT

Seems that the rom will be built with the UBER 4.9 toolchain,and the kernel with SaberMod-4.8?
[Android] katinatez:
Define kernel toolchain (4.9 or 5.2) in device BoardConfig.mk with:

KERNEL_TOOLCHAIN := $(ANDROID_BUILD_TOP)/prebuilts/gcc/$(HOST_OS)-x86/aarch64/aarch64-linux-android-5.2-kernel/bin

like this

https://github.com/Joshndroid/andro...mmit/8f2b7ec38917cbf9cee8d7a07785105920e533a3
[Android] Jeik:
edited the line,and it still says

when i lunch bliss_idol3-userdebug

here is the full log

http://hastebin.com/kipicokofu.md
[Android] katinatez:
Wow I havent seen those commits in a while. If your using these commits here

https://github.com/katinatez/androi...mmit/a3875aa1674f3e2d7dbfd5fc1c5c1de5fe733e58

https://github.com/katinatez/android_build/commit/254f5777fbde460b174a22c27d44991ebaa88e0b

If your using these you have to change the path in

core/tasks/kernel.mk to match the aarch64 path

and change this to reflect new toolchains in cm.mk

+# Optimization

+TARGET_TC_ROM := 4.9

+TARGET_TC_KERNEL := 5.1

or option B is remove old commits and just add the kernel parameter shown earlier.
[Android] rohit1521:
Is it possible to compile a ROM without .repo folder....... I downloaded highly compressed android source without repo......anyone know?
[Android] zowpow:
Is it true that AOSP (not CM) requires a prebuilt kernel? I'm trying to build an AOSP rom, and have the kernel source targetted in my Boardconfig like normal in CM, but it says something like, "error out/target/product/jflte/kernel" needed by boot.img missing and no known rule to make it. If AOSP does not support inline kernel building, I have a few questions: Is there a forked version of platform/build (maybe CM's version) that lets me inline build? How do I reference a prebuilt kernel in my source? If it does support inline kernel building, what am I doing wrong?
[Android] katinatez:
This example will help you, this is aosp device tree for nexus 6p

https://github.com/PureNexusProject...mmit/8475d1ebe5042a8d00937e8759c02bf59a78f9e8
[Android] neonkat:
yeah but you won't be able to update your roms.
[Android] sh A ne:
Am confused

In my vendor folder i get these files

but i dont get the config folder and other stuff .

Why is that and how to get it?

Any help is greatly appreciated
[Android] hahagu:
Any 'experts' who can help?
[Android] der-cyanoge:
So your recovery.rc isnt in your dir. You have to delete this path or you create a recovery.rc
[Android] Karel VH:
fatal: unable to access 'https://github.com/CyanogenMod/android_external_ant-wireless_ant_native/': gnutls_handshake() failed: Error in the pull function.
fatal: unable to access 'https://github.com/CyanogenMod/android_hardware_intel_img_hwcomposer/': gnutls_handshake() failed: Error in the pull function.

Does anyone know what's causing this?
[Android] Jeik:
That occurs during repo sync,right?

Like I would do,you can try taking that line out of the manifest.xml
[Android] Karel VH:
The thing is, it happens randomly to projects when I'm trying to repo sync. It started happening randomly yesterday and my download speed drops drown to below 150 kb/s or even 0 when that happens. (My internet connection works perfect: 200 mbit/s down and 12 mbit/s up).

As long as I force it to sync it's kind of working but extremely slow.
[Android] Jeik:
Yeah,I had a similar problem with Vanirs repo syncing.

I guess it is from their side. Their servers might be going nuts?
[Android] ayazm.140895:
Hey guys, I have compiled a cm 12.1 build for yureka plus. But the camera is not working, although it should work as it is stable with no major bugs. I think, error is present only in my build.

Logcat : http://hastebin.com/oqipuyokaz.md
[Android] Karel VH:
Happened yesterday around the time CyanogenMod updated a few of their projects. Oh well I can always sync the projects that fail manually if necessary. Not really that big of a deal, I just wondered if someone knew what caused this.
[Android] Jeik:
Can anyone help me?

I am trying to build ParanoidAndroid,and I cant fix this error,no matter what I tried(replacing files from cm build folders gave even more intense errors).
[Android] hahagu:
How do I obtain?
[Android] Jeik:
Bump...

Forgot to add the link...

http://hastebin.com/fabimazofu.rb
[Android] gururoop:
Is there a way to mix and match ROMs and kernels? What I mean to say is that can I build Resurrection Remix with Ubermallow kernel? Is it possible to build a ROM with kernel from another ROM? If so, how can that be done?
[Android] neonkat:
then i think you should download the custom kernel sources,i mean linking the custom kernel repository in the manifest,or just build a full rom and replace the boot.img with the custom kernel.

lots of options?.
[Android] gururoop:
How do I do it? I mean suppose I wish to build ElementalX kernel with Resurrection Remix, how would I do it? ElementalX source is at:

https://github.com/flar2/ElementalX-N5
[Android] Jeik:
Guys....

HALP Pleaseee
[Android] neonkat:
just build a rom with stock sources, build a kernel from the custom kernel source and make a boot.img and put in the rom or just use the kernel which is created by dev and use it for your rom.

if you want to publish your rom with the custom kernel,you need to take permission from the dev to use his kernel in your rom.

the most easiest way will be to build a rom,flash the kernel and done,no headache for building or making boot.img.:p
[Android] ayazm.140895:
can anyone help me out? repo sync erorr

Fetching project CyanogenMod/android_external_tinycompress
Fetching project platform/external/mtpd
Fetching projects: 98% (543/554) Fetching project CyanogenMod/android_hardware_qcom_audio
[B]Fetching projects: 99% (549/554) fatal: Couldn't find remote ref refs/heads/12.1[/B]
[B]error: Cannot fetch TheMuppets/proprietary_vendor_yuerror: Exited sync due to fetch errors
ayazm_140895@instance-1:~/cm12.1$ cd .repo[/B]
ayazm_140895@instance-1:~/cm12.1/.repo$
[Android] KeTuRr74:
repo sync -j16 -f
[Android] akhilnarang:
Fix your local manifest

Branch should be cm-12.1, not 12.1
[Android] hahagu:
Bump :P
[Android] Carlyle_f:
did you manage to solve this error?

if so, how?
[Android] misiu173:
Great Guide for start. :laugh:
[Android] zowpow:
I am trying to build this ROM, but I keep getting this error, which I don't understand why I'm getting because I have the kernel source targeted in BoardConfig.mk

No rule to make target 'out/target/product/jflte/kernel', needed by 'out/target/product/jflte/boot.img'. Stop.

http://xdaforums.com/galaxy-s4/i9505-orig-develop/jdcteam-android-source-project-mra58v-t3251663

What am I doing wrong?
[Android] KeTuRr74:
Wich device tree are you using ?
[Android] hemantbeast:
I am building rom for my device armani, but i get an error when brunch the device. All things were going fine but after 2 hrs i got an error with "There is insufficient memory for the Java Runtime Environment to continue."

How can i increase my java heap size. It shows about 850mb while i have to increase it to 1.5gb

VM settings:
Max. Heap Size (Estimated): 850.00M
Ergonomics Machine Class: server
Using VM: OpenJDK 64-Bit Server VM

Well my system is

OS:- Linuxmint 17.3

Ram:- 4gb

Jdk:- openjdk 7

And i am getting error is

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 120127488 bytes for committing reserved memory.
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Use 64 bit Java on a 64 bit OS
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
# Out of Memory Error (os_linux.cpp:2827), pid=31264, tid=47548981683968
#
# JRE version: (7.0_91-b02) (build )
# Java VM: OpenJDK 64-Bit Server VM (24.91-b01 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.6.3
# Distribution: Ubuntu 14.04 LTS, package 7u91-2.6.3-0ubuntu0.14.04.1
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
[Android] neonkat:
check this to increase/decrease java heap size.

i think you are out of space on hard disk.