yashsingh1/xdaforums huggingface dataset:
[Android] hemantbeast:
I have tried that but it is for the java program to execute. I want to set max heap size for jvm to be permanent default.

Well i'm making blissrom for armani.

That command is of no use because when i first execute the command

. build/envsetup.sh

it loads up the vendor tree of rom and device tree, then i execute the command

brunch armani

it starts making the rom and after about 2 hrs it comes to end, the error appears. Search google alot about increasing the heap size but of no use.

And also the command of giving jobs is also not working.

Executed:- brunch armani -j2

giving error like below

including vendor/bliss/vendorsetup.sh

Invalid lunch combo: bliss_armani--j2
No such item in brunch menu. Try 'breakfast

About hard disk i have 25gb+ free space.
[Android] Kapiljhajhria:
no but i think i found the solution. still figuring iut how to use it though. i think i need to change some directories or path in this solution.

i re installed ubuntu and everything just to be sure that itw as not something because of what i did.

here is the error - here

i think this is the main error

/usr/bin/as: unrecognized option '-mfloat-abi=softfp'
clang: error: assembler command failed with exit code 1 (use -v to see invocation)

so i searched and found something on this. its realted to compiler issue.

Solution - here

this is the part on the solution page that should help us both.

i tried the solution but it said no such directories.

Conclusion i need to find the right directories.

i just found this solution so still searching for the right directory. if you did manage to figure out the directories then please let me know as well.

oh, another info. this error is while compiling kernel.
[Android] zowpow:
This one: https://github.com/AOSP-JF-MM/platform_device_samsung_jflte
[Android] Carlyle_f:
I got rid of the error on my machine. It seems to have been a problem with ccache.

I simply ran

gedit /.bashrc

And deleted the ccache lines at the bottom
[Android] Kapiljhajhria:
Will try tomorrow and see if it work for me.
[Android] christopherrrg:
Hey guys, trying to follow this guide to build aosp for the moto osprey, I'm getting lost around the change cm device tree to work with aosp, even after following post#9 I must have read it a zillion times but I just can't grasp it. Is there anything else I could read on that specific situation?

Edit - I apologize because I realize this may seem a tad spoon fed, but after googling 100+ times and reading all sorts of guides and answers on other people's threads I am having absolutely no luck.
[Android] Scutariu:
Hey

Look on github, and see if you can find an device tree for AOSP with the same chipset..there's gotta be something

Then, compare the device tree you have with the one you found on github, and make proper changes..ex: cm_(yourdevicename) -> aosp_(yourdevicename)
[Android] Kapiljhajhria:
not working for me. it shows be blank file. there is nothing in that file. for me to edit.
[Android] dcrin3:
You should check your home directory instead.

type ' cd $HOME ' without quotes to head to home dir. Then tray gedit or vi .bashrc
[Android] nitin.chobhe:
Ok, here I'm...

I faced the same issue with Carbon ROM for Yuphoria (x64 bit device, f**k them).

I got help from [MENTION=5226068]Men_in_black007[/MENTION] and here is the solution:

1. rm -rf vendor/sm (if it is there)

2. repo sync

3. cd to build folder

4. git revert f467978d39574951d24dae4b7f1daa1a44307f25

5. git revert 0a0f2a87d44a0ae06f98767881ed596aa749828f

You should be good to go... :fingers-crossed:
[Android] Kapiljhajhria:
i found the file later but the solution didn't help me. stills same error. tried something else and now getting new error.

trying another thing. let me see if that fill fix the new error
[Android] neonkat:
i checked everywhere for jvm,all tell to use the '-Xms size' and other similarly related commands only,maybe you are still having the issue because you are low on storage or ram?(a rom requires ~100gb disk space with cache)
[Android] ayazm.140895:
I am trying to compile AICP for my device and when I sync the sources and I type "brunch" I don't see my device in the menu. So, how do I get started then?
[Android] KeTuRr74:
. build/envsetupsh

brunch devicename for example for the s3 (codename is i9300) so it will be

brunch i9300
[Android] ayazm.140895:
Here,

http://hastebin.com/aselikojiw.coffee
[Android] sheikhrr:
UBUNTU TOUCH (Yureka) !

Hey guys, Hope You All are fine :)

can someone Help me to build Ubuntu touch for Yureka

after passing many errors, I am stuck here....

/media/rameez/b714d704-67bb-4d18-8fa0-389fc1cd48bb/touch/phablet/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /media/rameez/b714d704-67bb-4d18-8fa0-389fc1cd48bb/touch/phablet/out/target/product/tomato/obj/ETC/sepolicy_intermediates/policy.conf
target Strip: libz (/media/rameez/b714d704-67bb-4d18-8fa0-389fc1cd48bb/touch/phablet/out/target/product/tomato/obj/lib/libz.so)
device/yu/tomato/sepolicy/cne.te":38:ERROR 'unknown type sysfs_wake_lock' at token ';' on line 7503:
allow cne sysfs_wake_lock:file { { getattr open read ioctl lock } { open append write } };

checkpolicy: error(s) encountered while parsing configuration
make: *** [/media/rameez/b714d704-67bb-4d18-8fa0-389fc1cd48bb/touch/phablet/out/target/product/tomato/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....

any help will be appreciated :cool:
[Android] nitin.chobhe:
remove that line and build again
[Android] ayazm.140895:
here, I am getting errors http://hastebin.com/aselikojiw.coffee
[Android] KeTuRr74:
Dont stop the process. Let it continue it will download needed dependencies for device.
[Android] sheikhrr:
well that seems to be working, thanks
[Android] ayazm.140895:
can you guys help me out pac-rom 6.0 for tomato

http://hastebin.com/veqenupoke.hs
[Android] Jeik:
Bump...
[Android] sh A ne:
Please extreme help needed

Please help am stuck in this for a long time now
[Android] Jeik:
Your cm.mk file in the device folder isnt modified fully.

Go to RR repo,search for any device repo,look at its .mk file,and adapt yours(just change cm_xxxx to rr_xxxx,and change any "cm" line to "rr"-> your RR directory)

I am not quite positive about line changing on RR,every ROM works differently.

But you should compare some files from the official RR device repo and files from your device folder.

And I do not know that much about your dependencies file.

Look at the dependencies file in RR device repo as well,and compare with yours.
[Android] akhilnarang:
RR uses cm device trees

No modifications required

He just needs to remove the duplicate path
[Android] sh A ne:
Now am stuck in here

Your help is mostly appreciated
[Android] akhilnarang:
Send your local manifest
[Android] sh A ne:
Definitely but tomorrow and I really really appreciate the help man, thanks
[Android] hdorius:
Is RR compile directly with supersu?iam compile it,but in the rom zip not contain any supersu folder
[Android] akhilnarang:
SuperSU is inbuilt
[Android] hdorius:
can you see my local manifests here whats wrong with it?SuperSu in not built in rom...Thx in advance

im using local manifests from Here
[Android] akhilnarang:
Supersu is

Maybe your device tree has block based zip disabled, it won't flash then
[Android] sheikhrr:
Ubutnu touch yureka #errorWhilecompiling

Can Someone Solve this.. i googled alot to understand this error but no luck :(

/media/rameez/bca677b6-b13b-40fa-9aa4-9c325e685a35/phablet/kernel/yu/msm8916/kernel/sched/core.c: In function 'cpu_cgroup_allow_attach':
/media/rameez/bca677b6-b13b-40fa-9aa4-9c325e685a35/phablet/kernel/yu/msm8916/kernel/sched/core.c:9110:18: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
/media/rameez/bca677b6-b13b-40fa-9aa4-9c325e685a35/phablet/kernel/yu/msm8916/kernel/sched/core.c:9110:46: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')

this is addressing to core.c:9110:18 which has these lines around

cpu_cgroup_allow_attach(struct cgroup *cgrp, struct cgroup_taskset *tset)
{
const struct cred *cred = current_cred(), *tcred;
struct task_struct *task;

cgroup_taskset_for_each(task, cgrp, tset) {
tcred = __task_cred(task);

if ((current != task) && !capable(CAP_SYS_NICE) &&
cred->euid != tcred->uid && cred->euid != tcred->suid)
return -EACCES;

this is 9110th line

cred->euid != tcred->uid && cred->euid != tcred->suid)

seeking for help :confused:
[Android] Jeik:
http://hastebin.com/dumukareqe.vbs
[Android] hahagu:
How do I fix this problem?

I have tried changing the BoardConfig.mk's Recovery partition value from 8388608 to 8816640, but that exceeds my phone's recovery partition size, so I cannot flash the img. Plz help? Full Log

I've been asking this for like a week now?! Help??
[Android] hdorius:
So,how can i fix it?

Edit: i have build error now... Log Here
[Android] Hussein Alwr:
amazing ? awesome ? wonderful ?

i don't have words for this topic i swear

&

Full and comprehensive guide for those who wants to create its own rom

Thank you for the explanation legendary
[Android] KeTuRr74:
Go to msm7x30-common, go into gps/utils and open Android.mk. Delete the line LOCAL_MODULE= libgps.utils and save i
[Android] hdorius:
Will try it tonight,thank you

EDIT: im already delete it...but it error too

log Here
[Android] sh A ne:
I've had the same error and I deleted the out folder in the working directory and it worked fine
[Android] :
Could anyone help me with this? http://hastebin.com/egatanebev.vbs
[Android] christopherrrg:
Check toolchain path.

Line 10.

I think? You're trying to compile kernel right?
[Android] :
I am trying to compile a ROM actually and after setting the proper toolchain, this is what I get : http://hastebin.com/tebohetire.vbs
[Android] akhilnarang:
Which toolchain?

Guessing falcon [emoji14]

There's a commit in kernel to revert, apparently fixes some errors

https://github.com/akhilnarang/ThugLife_falcon/commit/a05bd049b9c14fc4d26d4204efec95190178d16c
[Android] :
Thanks dude! Let me try that!
[Android] sh A ne:
Please help, i dont really understand this error
[Android] Jeik:
Guys,is anyone having issues with repo syncing Resurrection Remix?

I repo initialized the optimized Lollipop branch,and tried syncing with both the automated script and manually.

Should I use the normal 5.1 branch?
[Android] transi1:
with RR cm-13.0 branch had been some trouble in this week, but today ok
[Android] Jeik:
I am trying the cm12.1(5.1.1) branch.
[Android] transi1:
branch have common parent.

you can try several repo sync -f --force-sync and cntl+c when process suspend - for me help this tip
[Android] thavanathan:
Hey guys, Is Linux is the only operating system allowed to build Android? Google has build guides that supports OSX. I tried building CM 12.1 for OnePlus one using OSX and succeeded. The problem I face is after flashing the ROM, device is not booting. No errors shown in the screen. It just hangs at 1+ logo at the boot.

Does anyone successfully built CM on OSX? If booting fails, is there a guide to check logs like a troubleshooting guide?

Thanks.
[Android] akhilnarang:
Scroll up, error isn't here

the lollipop branches aren't updated anymore, perhaps some repos have be renamed/deleted
[Android] hdorius:
Any help with this error?thank you
[Android] Jeik:
If I can repo sync 5.1 branches for CM,PA,Carbon,BlissPop,Vanir and AICP,why shouldnt I be able to do the same with RR?
[Android] akhilnarang:
Should be able too

There's a chance I've deleted / renamed some repos and haven't updated it in lollipop manifests

Anyway. What happens when you try and sync?
[Android] Jeik:
First time it froze at the 4.1.1 tag(automated script)

Second time(manually),just a sync error after 3 hours of downloading....

I will try force sync when I get to my pc.
[Android] akhilnarang:
What's the error, please post it
[Android] Jeik:
Turned my pc off before going out -.-

I will repo sync on 15:00,when I actually get to my PC
[Android] Kapiljhajhria:
so i tried this solution again and this time i didn't face any error while reverting 2nd commit. but now building process is not even starting.

i am getting this error when i try

lunch carbon_oneplus2-userdebug

vj@kali:~/android/carbon$ lunch carbon_oneplus2-userdebug
build/core/combo/arch/arm/armv7-a-neon.mk:66: *** empty variable name. Stop.
WARNING: Trying to fetch a device that's already there
build/core/combo/arch/arm/armv7-a-neon.mk:66: *** empty variable name. Stop.

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

do i need to repo sync again after reverting these two commits?
[Android] Jeik:
Yeah,I also had a error after reverting those two commits
[Android] Kapiljhajhria:
Did you solved it? I yes then How?
[Android] Jeik:
Nooe,I had a really unique error,one I had never seen. I also gave the log,but nobody here cares,obviously...
[Android] nitin.chobhe:
No, it is already done in step 2
[Android] Kapiljhajhria:
Did you face these errors after reverting those two commits?
[Android] nitin.chobhe:
No, I didn't
[Android] DarkFrenzy:
Andybody know how to make stock kernel work with cm11 ? When i flash stock kernel rom boots but screen remains black/blank but ca see using android control xp software.
[Android] Jeik:
Okay,I am trying cm13 for my Idol 3 5.5 (msm8916/msm8939 64 bit)

The build is 100 mb larger than the cm12.1 one(cm12.1-340 MB,cm13-410 MB),I do not know if that matters.

It wont go further than the kernel logo.

When it should switch to the boot animation,it crashes and reboots the phone.

Here is the log:

I know it is short,but my phone was connected immediately when it booted,and only this error popped up.
[Android] sub77:
Fetch & Compile libboringssl
[Android] Jeik:
How???

I know what file is needed,but I have no clue on how to get it.
[Android] SlimShady's:
Anyone knows how to resolve this? :(
[Android] Jeik:
get the device/qcom/common folder from cm.

Add this line to your local_manifest.xml
[Android] SlimShady's:
I'm building for Android 6.0 and I get qcom/common from CM... Seems to be going good.. I'll let you know

thanks :)

EDIT: After a while, I'm having the same libaudiopolicymanager_intermediates error :(
[Android] Jeik:
Look into carbons git repos.

They have to have their own qcom/common folder then
[Android] SlimShady's:
Still the same...

How audio lib is related to qcom/common repo? Shouldn't it be /hardware/qcom/audio?

Inviato dal mio LG-D405n utilizzando Tapatalk
[Android] DarkFrenzy:
plz help me

plz help me to solve this

CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/faarish/Kernel/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/recordmcount
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost

what am i doing wrong ?
[Android] Jeik:
Locate this file:

Edit it,go to line 30 or 26,and look for this line:

Delete that line,save the file,and try building again.
[Android] Jeik:
Your kernel source is bad then
[Android] DarkFrenzy:
why? i downloaded the source from opensource.samsung.com
[Android] neonkat:
which compiler are you using?(i mean ubertc or google's..which GCC version?)
[Android] Jeik:
Oh god,lol.

For which device are you building,and which rom?

Official sources are original ones,for stock roms.

You have to modify the crap out of sources to make them work with custom roms.
[Android] DarkFrenzy:
This is for tab 3 7.0 SM-T2172S.

This is my first time thats why i m just trying to build kernel from source without modifying anything.but not getting success
[Android] Jeik:
Hmm.

Well,I am no expert when it comes to building only kernels,let alone stock ones. :S

Are you sure you made all the needed commands?

Which toolchain are you using?
[Android] neonkat:
compile with googles's GCC4.8 toolchain.i also once compiled samsung stock kernel with Linaro GCC4.9 and had lots of error and that was due to the higher gcc toolchain(binary errors),but was able to fix them.

when compiled again with gcc4.8,no error.
[Android] DarkFrenzy:
I used NDK latest version.
[Android] neonkat:
NDK for compiling kernel?
[Android] DarkFrenzy:
Yes.

I m using ubung 14 32bit version can that be a problem?
[Android] Jeik:
Nope.

Try the 4.8 kernel toolchain
[Android] neonkat:
you need a cross compiler(cc).use google's 4.8 toolchain or visit any kernel building guide.

i still don't know why samsung prefers using 4.8 toolchain.?
[Android] DarkFrenzy:
Thats the one i tried first from the ndk tool chains
[Android] ayazm.140895:
I am not able to access my VM instance on compute engine on Google cloud. the blue circle keeps loading but nothing happens.

Edit: used a different browser. google chrome
[Android] Kishan14:
Glad to hear that this guide helped u....! Hope new and more roms from you...!
[Android] jackeagle:
Woah Glad to hear that :) Very happy that this guide helped you :good::good::D Congrats on new Rom :good::good::highfive: Many more Rom's from your side :) :D Keep up the spirit :)
[Android] henrrydroid:
please Local_manifest.xml for Acer Liquid Z5 ???

Thanks
[Android] tayeb21:
how to extract zImage in Kitchen dsixda
[Android] RVR:
Use AIK... Use the search bar fr the link :)

---------- Post added at 12:49 AM ---------- Previous post was at 12:48 AM ----------

Provide the links to the device.. Kernel and vendor trees
[Android] david makarove:
Thanks guys

Without this guide no android development was will be for me
[Android] david makarove:
you will let us learn how to write device tree ? :laugh:
[Android] jackeagle:
Hahahha Yeah Yeah sorry for trouble :D:D Damn Busy these days :D:D Will Upload it by today :laugh::laugh: Will try my best :D Thanks for reminding me :D:laugh:
[Android] jackeagle:
[MENTION=5800449]david makarove[/MENTION]

Guide For Uploading your Rom Device Tree to Github Is Up Check Post 5 :D :D

Enjoy!
[Android] tayeb21:
I've got a girl 13.04 32bit :rolleyes:

Is it compatible with the way this topic
[Android] jackeagle:
Hi,

No 32 bit cannot be used you need 64 bit Linux OS :)
[Android] david makarove:
Done

you are awesome man

check it :p

That will help to get official support :cyclops:

https://github.com/Dev-Ghost/Liquid_device_sony_taoshan
[Android] Hashbang173:
Can somebody give me information on how to make my device tree compatible for aosp?

---------- Post added at 11:16 AM ---------- Previous post was at 11:11 AM ----------

When trying to compile aops for my kindle fire (otterx) I get this:

build/core/product_config.mk:227: *** _nic.PRODUCTS.[[device/amazon/otterx/aosp_otterx.mk]]: "hardware/ti/wlan/mac80211/wl127x-wlan-products.mk" does not exist. Stop.

** Don't have a product spec for: 'aosp_otterx'
** Do you have the right repo manifest?
[Android] RVR:
Give me the link to yr device tree
[Android] Hashbang173:
These go in the device folder:

Otterx Device tree

Omap4-Common

Otter Common

Vendor Folder:

Amazon

Kernel:

OtterX Kernel

Not sure if you need all that but there it is.
[Android] RVR:
make a new file in youd device tree named aosp_otterx.mk

#
# Copyright 2013 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
$(call inherit-product, device/amazon/otterx/full_otterx.mk)
PRODUCT_NAME := aosp_otterx
[Android] Hashbang173:
I've done this already but I get this error running lunch

build/core/product_config.mk:227: *** _nic.PRODUCTS.[[device/amazon/otterx/aosp_otterx.mk]]: "hardware/ti/wlan/mac80211/wl127x-wlan-products.mk" does not exist. Stop.
[Android] RVR:
go to device/amazon/otter-common/common.mk

delete the last line

$(call inherit-product, hardware/ti/wlan/mac80211/wl127x-wlan-products.mk)
[Android] Hashbang173:
Will this break my wifi?
[Android] RVR:
possibly ..

replace the current one with this https://github.com/CyanogenMod/android_hardware_ti_wlan/tree/cm-11.0 .... hardware/ti/wlan
[Android] sh A ne:
Please help

http://pastebin.com/87GPkpdY
[Android] neonkat:
you can try this.
[Android] hahagu:
Please have a look at this...

BTW, BoardConfig.mk is fine

Full link

And yes... ik I'm a noob @ compiling ROMs...

Sent from my E300K, jaltektt - CM 12.1
[Android] neonkat:
i think you need to change partition size in boardconfig.mk,look here.
[Android] SlimShady's:
Anyone?
[Android] hahagu:
It will compile, but will not install.

As I stated earlier, BoardConfig.mk is fine...

and this is my BoardConfig.mk
[Android] neonkat:
[MENTION=5333749]hahagu[/MENTION]

the partition size in boardconfig.mk is "8388608" while the size of recovery of the rom is "8820736"(seems bytes).

i think you should try to increase the recovery image partition size(make a backup of original boardconfig before).
[Android] Killah1994:
After building for 12h:53m:10s I ran into an error...

"Installing recovery patch to system partition

Warning: could not find SYSTEM/build.prop in <built-in function zip>

using prebuilt recovery.img from BOOTABLE_IMAGES...

using prebuilt boot.img from BOOTABLE_IMAGES...

Traceback (most recent call last):

File "./build/tools/releasetools/make_recovery_patch", line 55, in <module>

main(sys.argv[1:])

File "./build/tools/releasetools/make_recovery_patch", line 51, in main

common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)

File "/home/onedon/android/build/tools/releasetools/common.py", line 1458, in MakeRecoveryPatch

_, _, patch = d.ComputePatch()_

_ File "/home/onedon/android/build/tools/releasetools/common.py", line 1144, in ComputePatch_

_ p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)_

_ File "/home/onedon/android/build/tools/releasetools/common.py", line 100, in Run_

_ return subprocess.Popen(args, __**kwargs)*_

_* File "/usr/lib/python2.7/subprocess.py", line 710, in _init*_

* errread, errwrite)*

* File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child*

* raise child_exception*

*OSError: [Errno 2] No such file or directory*

*build/core/Makefile:1045: recipe for target '/home/onedon/android/out/target/product/hammerhead/system/bin/install-recovery.sh' failed*

*make: * [/home/onedon/android/out/target/product/hammerhead/system/bin/install-recovery.sh] Error 1

#### make failed to build some targets (12:53:10 (hh:mm:ss)) ####

real	773m9.772s

user	614m36.032s

sys	110m58.140s"

﻿

Building for hammerhead, any reason why I encountered this error?﻿ I'm building marshmallow AOKP here's the source code "https://github.com/MarshMallowKang", I saw that someone encountered this error already but wasn't fixed or solved... Any help?
[Android] Poophammer:
Thanks
[Android] hahagu:
I told u that I can't do that because the partition size for the device is 8388608
[Android] MSF Jarvis:
Does your BoardConfig.mk have these kind of lines :

# Inline kernel building
TARGET_KERNEL_SOURCE := kernel/htc/pico
TARGET_KERNEL_CONFIG := pico_defconfig

---------- Post added at 04:40 AM ---------- Previous post was at 04:37 AM ----------

Guys I want a quick help from y'all . My ROM builds seemingly mess up with the kernel(crapped toolchain, I guess) so I want to use a prebuilt one. Can anyone enlighten me on which flags need to be put in my BoardConfig.mk to make that happen??
[Android] akhilnarang:
Maybe [MENTION=6143324]GrinningFerret[/MENTION] might