yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] dbroer91884:
So I am trying to build my own right now. Had it building all night. It Failed... Here is what was shown to me.

[ 22% 9074/39489] Ensure Jack server is installed and started

Writing client settings in /home/dan/.jack-settings

Installing jack server in "/home/dan/.jack-server"

Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/dan/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher

[ 22% 9081/39489] host Java: bouncycas...tle-bcpkix-host_intermediates/classes)

warning: [options] bootstrap class path not set in conjunction with -source 1.7

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

1 warning

[ 23% 9086/39489] host Java: conscrypt.../conscrypt-host_intermediates/classes)

warning: [options] bootstrap class path not set in conjunction with -source 1.7

external/conscrypt/src/openjdk/java/org/conscrypt/Platform.java:45: warning: AlgorithmId is internal proprietary API and may be removed in a future release

import sun.security.x509.AlgorithmId;

^

external/conscrypt/src/openjdk/java/org/conscrypt/Platform.java:274: warning: AlgorithmId is internal proprietary API and may be removed in a future release

return AlgorithmId.get(oid).getName();

^

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

3 warnings

[ 23% 9092/39489] Building with Jack: ...l_intermediates/with-local/classes.dex

FAILED: /bin/bash /home/dan/PN/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex.rsp

Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by android-jack-team@google.com)).

Java heap space.

Try increasing heap size with java option '-Xmx<size>'.

Warning: This may have produced partial or corrupted output.

ninja: build stopped: subcommand failed.

build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (04:06:04 (hh:mm:ss)) ####

My questions are this:

1) Clearly my issue is when I set up my VM, I didn't know what I was doing and only allocated 2gb of RAM. Based on discussion that is occurring that isn't nearly enough. Is there a way to increase the amount of RAM without basically deleting the instance of VM and having to literally start all over with the installation of Ubuntu?

2) I had some ninja kernel failures at the end (I'm at work, computer is at home, trying to remote in so I can get the specific errors). Either how would I go about changing the kernel that is being used, or point me in the direction of the website that gives details on this?

Again, sorry about this all. I've never done this and I'm curious how it works. I've learned a ton about this in the past day, even with no flashable zip working.
[Nexus 6P Android Development] nathanchance:
1) It depends on your program. Usually, you just need to shut down the VM, go into its settings, look for memory, and adjust the slider. If that doesn't appear apparent, look at your VM's documentation.

2) Disable Ninja:

export USE_NINJA=false

I have no issues building without it.
[Nexus 6P Android Development] denkru:
You can increase the ram on your VM without a problem.

I had the exact same problem you have, the only way i found that fixes it make some changes in jack-admin before you start compiling.

see my earlier post here

Hope it helps.

See the answer of [MENTION=6842057]nathanchance[/MENTION] i disabled ninja to
[Nexus 6P Android Development] dbroer91884:
I'm so sorry about all these questions. I feel I'm really starting to get annoying with all this. Thanks for the help with the adjusting the memory.

As far as disabling Ninja, the only other question then I have about that is where do I put that code? Does that go at the very beginning when I type in brunch angler (when choosing the type of build)? That seems like it would make the most sense to me, so something like

brunch angler export USE_NINJA=false
[Nexus 6P Android Development] Juzman:
Just type it in the terminal before you build it.
[Nexus 6P Android Development] dbroer91884:
So something like this:

$ export USE_NINJA=false
$ brunch angler

Thanks!
[Nexus 6P Android Development] Juzman:
Correct! :)
[Nexus 6P Android Development] dbroer91884:
So I tried with just increasing RAM, that didn't work, still got issues with the jack admin. My question now is this, what program do you all use to edit the files once they are synced onto your Ubuntu system? I don't really want to make one line change and then have to resync the entire thing again so I'm assuming that I can find the file mentioned above and just make changes. The problem is when I open the file, it essentially opens into notepad, which won't give me line numbers. What program works well to edit these files and get line numbers?

Thanks!
[Nexus 6P Android Development] JedixJarf:
If you are just trying to edit one line, use nano through the terminal. "nano +100 file.txt" 100 being the line number.
[Nexus 6P Android Development] denkru:
If you use a recent version of nano, you can just open the file and with the key combination ctrl + _ you can just type in the line you want to go to.
[Nexus 6P Android Development] dieselbuddeh:
Which gapps are you running; those that built themselves?
[Nexus 6P Android Development] Helloworld294:
Yes, I used "repo sync" this time. No force.

pastebin.com/LaAi2R4f

I've allocated 8GB of RAM and 200GB of HDD space for my VM. Running Ubuntu 14.4 LTS.
[Nexus 6P Android Development] desolateone1:
Pure Nougaty goodness!

If you haven't made one, try creating a partition for swap and make sure you use swapon. Fixed all my memory problems compiling ;)
[Nexus 6P Android Development] kipue:
I see, thanks. I guess there are some diminishing returns here too.

If I build for just one project, it might never fill 100 Gb anyway so I see your point.
[Nexus 6P Android Development] dieselbuddeh:
[MENTION=6842057]nathanchance[/MENTION] [MENTION=4395895]BeansTown106[/MENTION] This worked for me too! Thanks.
[Nexus 6P Android Development] :
A timely help. I had run into fetch errors and third time lucky as the repo synced successfully. I had to switch off Ninja. I am hitting errors but running through the FAQ one thing I haven't checked is jack. Will check and see how the build runs? I am completely moving my local repo to external hard drive which has an ext4 partition.. Let me see how it goes today.

But yes the source was pretty huge and it wiped closed 35 GB from my WiFi plan ?

---------- Post added at 07:24 AM ---------- Previous post was at 06:57 AM ----------

You made my day... I was reading through and a few stating we may need more than 8GB.. But now I am feel good.. ?
[Nexus 6P Android Development] Asitaka:
I just built the rom, and I was about to flash it when I realized I don't have a radio or vendor or bootloader. Where do I get these for N?
[Nexus 6P Android Development] AzraelsKiss:
From the factory image provided by Google...

Have a good one!
[Nexus 6P Android Development] kantjer:
What device?

For Angler they are in my AFH

Sent from my Nexus 6P
[Nexus 6P Android Development] rquinn19:
I have a 128 GB SSD that I dedicated to Ubuntu and I keep running out of disk space around 70%. Made ccache as low as 10GB. Figured going any lower wouldn't make a difference as I'm only getting to 70% anyways. Am I SOL? I guess I can delete some old games off of my game drive and install there if needed.

Thanks for the nice guide. Only issue I ran into getting started was unable to create the out folder, just changed permissions on the PN folder.
[Nexus 6P Android Development] mohammed510:
[MENTION=6842057]nathanchance[/MENTION] can i create a new thread that is based on this thread but is slightly modified to build benzo? also, can i share my builds in [MENTION=2699658]xanaxdroid[/MENTION] thread? (not creating a new thread for that)
[Nexus 6P Android Development] dbroer91884:
For those with RAM issues, this right here just helped me build my first ROM. I'm at work, noticed it this morning before work that it worked, so I can't test it out yet, but this step did it for me. Took 4 hours but it's made!

Steps:

1) From OP

2) From OP

3) export USE_NINJA=false

4) source ~/.bashrc

5) . build/envsetup.sh

6) breakfast angler

7) export ANDROID_JACK_VM_ARGS="-Xmx2g -Dfile.encoding=UTF-8 -XX:+TieredCompilation"

---CHANGE THE 2 in -Xmx2g to however many gigs of RAM you can give it, I did 7.

8) mka clobber

That worked.

Now, for flashing it, I noticed it didn't include some things such as bootloader, radio, etc. But, I'm also on stock N right now. For the steps, since I'm on stock N, can I just do this:

1) Backup

2) Flash Homemade PN7 ROM

3) Flash Gapps...(not sure which ones yet)

4) Flash SuperSu (If I want Root)

5) Reboot and enjoy?
[Nexus 6P Android Development] aalupatti:
I did this and as suggested a few other things ( including using the jackill script ) in this thread but still getting jack error . I have a dual boot with 8 gb of ram. Tried even use value 2g i the command suggested.

Always getting jack error. Last night it ran for close to 6 hrs and then error.

Today it ran for 3 min and error.

I have the log from today ( Did not make clobber )

http://pastebin.com/UaQdukyY

Can someone take a look

PS: i have made many builds before but its recently that I am getting these errors.
[Nexus 6P Android Development] rchtk:
For last ccache questions: ccache -s

I'm also getting jack errors. There are a few Google problem reports opened that exhibit several problems and Google currently doesn't plan to correct or change the architecture. While Google advises to have 16G, it is obviously still possible by setting a memory limit as some described above.

It still fails also for me but I went a bit further by killing it, uninstalling, reinstalling jack. Jack was simply NOT installed the first time :)

I also had to chmod +x on jack-diagnose. I'm running Debian.

For me, one evening, one try. But I will succeed :D

Happy hacking
[Nexus 6P Android Development] nathanchance:
I'd say that it is a little excessive since the majority of this logic can bs applied to any ROM. Generally most developers don't want private builds being shared anywhere, even their own separate threads. You would need to ask him directly.
[Nexus 6P Android Development] Brutalibus:
Have Someone built with OMS support?

Tried with cherry-pick , merge whole branch , but it won't works: it compile without errors but after install it goes bootloop.
[Nexus 6P Android Development] nathanchance:
Did you cherry pick all the commits for all the repos? Like system_core, system_sepolicy?
[Nexus 6P Android Development] rchtk:
Phewww!

Package Complete: /home/podzob/android/pure/out/target/product/angler/pure_nexus_angler-7.0-20160923-HOMEMADE.zip

#### make completed successfully (04:38 (mm:ss)) ####

Used space here:

22GB for ccache

85GB for the source and output directory

5GB for temporary use on /tmp

Looks like the low RAM limit for the heap is ~3.9GB.

For the ones who also run out of space on /tmp --> mkdir -p ${HOME}/tmp && TMPDIR=${HOME}/tmp mka bacon
[Nexus 6P Android Development] Nekromantik:
Seeing this error:

Any ideas?
[Nexus 6P Android Development] nathanchance:
That's a kernel error, is that for PN?
[Nexus 6P Android Development] Nekromantik:
nope benzo
[Nexus 6P Android Development] nathanchance:
Yeah he just added a bunch of kernel commits so that's the issue. You probably synced in the middle of that. If it happens again after a resync, he's probably missing a commit.
[Nexus 6P Android Development] Nekromantik:
thanks

I reverted to yesterdays commts and now its gone past the error stage.
[Nexus 6P Android Development] dbroer91884:
So my next question about this is this. I have successfully built my first ROM but it was from a repo sync a few days ago. What is the process of updating the repo so that you get all the new features or things in it but you don't have to download the whole thing over again?

Also, I was going to flash this build so I went and put TWRP 3.0.2 - 3 on my phone but I can't get it to stick after a reboot it reflects is the stock recovery. I originally have stock Android end I thought I read that this new recovery version was compatible with Android n but it seems to be giving me problems. Any help?
[Nexus 6P Android Development] Gizmoe:
repo sync --force-sync

I have not used twrp 3023 but I have no issues with 3022.
[Nexus 6P Android Development] rchtk:
What I've done (I already had twrp)

fastboot radio

fastboot vendor

wipe all (for first pure install)

sideload ROM and SU

sideload pico gapps
[Nexus 6P Android Development] masInvasion:
I adjusted the settings one more time and ran it last night, I woke to a successful build! :). Thank you for your help

I set

jack.server.max-service=1

and

export ANDROID_JACK_VM_ARGS="-Xmx4g -Dfile.encoding=UTF-8 -XX:+TieredCompilation"
[Nexus 6P Android Development] Brutalibus:
Yes. After have deleted everything, restart repo and sync, fetch substratum repos, merge, build and voilà, now it's working. Probabily I screwed up something in previous merges.:D

Tnx for your support.:highfive:
[Nexus 6P Android Development] AzraelsKiss:
repo sync will download the new commits without redownloading the whole repo....

The easiest way I know to get TWRP to stick is to fastboot flash TWRP, reboot into recovery (should be TWRP), flash SuperSU... I believe SuperSU has a script to fix the whole android reinstalling stock recovery... Or you may be able to fastboot TWRP, reboot into recovery, flash your personal build and everything else you need... The recovery shouldn't be replaced by a custom ROM... Or, finally, if you'd prefer to stop the recovery from being replaced manually, you can search the issue on XDA or Google and find many pages on the subject... Good luck!

Have a good one!
[Nexus 6P Android Development] Asitaka:
Thanks, found them -- didn't know I could unpack the factory image and just take what I want.

---------- Post added at 09:15 AM ---------- Previous post was at 09:11 AM ----------

This is a silly question I'm sure, but how do you know if there is anything new to sync? Like git fetch, git status etc?
[Nexus 6P Android Development] nathanchance:
Look on Github: https://github.com/PureNexusProject. You can go into each repo and click on the commits tab to see the list of new stuff.
[Nexus 6P Android Development] Starzboy77:
I'm confused. Will there eventually be a public release of PN? I don't mind waiting but want to make sure I'm waiting for something. This building your own ROM stuff is just too much for me.
[Nexus 6P Android Development] nathanchance:
Yes. Beans has posted a status update in the main thread as well on Google+, I'd recommend following one or both of those. This is just simply a thread for the advanced user to get started with customizing.
[Nexus 6P Android Development] Choochter:
Finally managed to compile PN yesterday for the first time - 4 year old laptop with 8G RAM, got there in the end. Big thanks for all the advice provided on this thread.

Thing is, I have a Nexus 9 currently running PN Marshmallow and [MENTION=4395895]BeansTown106[/MENTION] is no longer officially supporting it going forward. There's always the possibility of an unofficial version but I wouldn't mind taking a shot at it myself if possible. I've scouted around but can't find any info on how to port future versions of PN to Flounder. I'd be really grateful if anyone could point me to a user friendly guide on the subject, or is this beyond the scope of a keen noob?
[Nexus 6P Android Development] :
Congrats ?
[Nexus 6P Android Development] Nekromantik:
quick question, just seen this commit

https://github.com/PureNexusProject...mmit/da4a4da90c987926742b520d3ba94e628be9be43

Does it mean the built in nav tuner battery percent or the one MM version PN had thats outside of the icon?
[Nexus 6P Android Development] mrjaydee82:
I heard someone say this was a gapps issue or something. It's fixable if you manually set the permissions for the app fixes it but was trying to figure out a permanent fix and couldn't find it in the thread. Anyone know?
[Nexus 6P Android Development] nathanchance:
It's the one from SystemUI tuner.

http://xdaforums.com/showthread.php?t=3460446&p=68816260
[Nexus 6P Android Development] Nekromantik:
Im staying on MM until PN adds battery text as its a must have for me. Or once Xposed works then I can add it via GB.

Nothing like being on a call and keeping eye on battery percent :)

thanks for help on building though.
[Nexus 6P Android Development] aalupatti:
What is everyone using to build

1- Computer specs : Processor And Ram

2- OS ?

Thanks

Edit : I am planning to get a desktop and wanted to get the best specs for building and developing for android
[Nexus 6P Android Development] Brutalibus:
1: CPU: 3570k

RAM: 16GB (Kingston HyperX Fury)

2: Ubuntu 14.04.4 LTS
[Nexus 6P Android Development] mohammed510:
Bad request, see Jack server log
SSL error when connecting to the Jack server. Try 'jack-diagnose'
prebuilts/sdk/tools/jack_server_setup.mk:42: recipe for target 'setup-jack-server' failed
make: *** [setup-jack-server] Error 47
make: *** Waiting for unfinished jobs....
external/conscrypt/src/openjdk/java/org/conscrypt/Platform.java:274: warning: AlgorithmId is internal proprietary API and may be removed in a future release
return AlgorithmId.get(oid).getName();
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 warnings
warning: string 'gsm_alphabet_default_charset' has no default translation.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

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

root@chemist-Lenovo-Y50-70:~/pure#

help :crying: compiling PN

and

r: Error: No resource found that matches the given name (at 'summary' with value '@string/qs_animation_summary').

target R.java/Manifest.java: SettingsProvider (/home/chemist/pure/out/target/common/obj/APPS/SettingsProvider_intermediates/src/R.stamp)
nothing matches overlay file suw_navbar_ic_back.xml, for flavor anydpi-v21
nothing matches overlay file suw_navbar_ic_more.xml, for flavor anydpi-v21
nothing matches overlay file suw_navbar_ic_next.xml, for flavor anydpi-v21
nothing matches overlay file suw_progress_bar.xml, for flavor v21
build/core/package_internal.mk:369: recipe for target '/home/chemist/pure/out/target/common/obj/APPS/PureNexusSettings_intermediates/src/R.stamp' failed
make: *** [/home/chemist/pure/out/target/common/obj/APPS/PureNexusSettings_intermediates/src/R.stamp] Error 1
make: *** Waiting for unfinished jobs....
target R.java/Manifest.java: Shell (/home/chemist/pure/out/target/common/obj/APPS/Shell_intermediates/src/R.stamp)
nothing matches overlay file suw_navbar_ic_back.xml, for flavor anydpi-v21
nothing matches overlay file suw_navbar_ic_more.xml, for flavor anydpi-v21
nothing matches overlay file suw_navbar_ic_next.xml, for flavor anydpi-v21
nothing matches overlay file suw_progress_bar.xml, for flavor v21
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

#### make failed to build some targets (48:46 (mm:ss)) ####
[Nexus 6P Android Development] rlivin:
Finally got it to build, and it worked lol. Thanks everyone especially [MENTION=6842057]nathanchance[/MENTION] for all the help. It took a little over 5 hours with amd dual core and 4gb memory. Gonna try it now with i5 and 16gb memory. Maybe it will be a little faster.
[Nexus 6P Android Development] canteo:
hello to all of you, since i found this amazing thread i had tried several times to build, i have sort the jack problems but now i have this one, and i don know how to continue.....

target R.java/Manifest.java: PackageInstaller (/home/canteo/Pure/out/target/common/obj/APPS/PackageInstaller_intermediates/src/R.stamp)

target R.java/Manifest.java: ProxyHandler (/home/canteo/Pure/out/target/common/obj/APPS/ProxyHandler_intermediates/src/R.stamp)

target R.java/Manifest.java: PureNexusSettings (/home/canteo/Pure/out/target/common/obj/APPS/PureNexusSettings_intermediates/src/R.stamp)

nothing matches overlay file preference_category_material.xml, for flavor v17

nothing matches overlay file preference_category_material.xml, for flavor v21

target R.java/Manifest.java: Settings (/home/canteo/Pure/out/target/common/obj/APPS/Settings_intermediates/src/R.stamp)

packages/apps/PureNexusSettings/res/xml/notificationdrawer_fragment.xml:43: error: Error: No resource found that matches the given name (at 'summary' with value '@string/qs_animation_summary').

build/core/package_internal.mk:369: fallo en las instrucciones para el objetivo '/home/canteo/Pure/out/target/common/obj/APPS/PureNexusSettings_intermediates/src/R.stamp'

make: *** [/home/canteo/Pure/out/target/common/obj/APPS/PureNexusSettings_intermediates/src/R.stamp] Error 1

make: *** Se espera a que terminen otras tareas....

nothing matches overlay file suw_navbar_ic_back.xml, for flavor anydpi-v21

nothing matches overlay file suw_navbar_ic_more.xml, for flavor anydpi-v21

nothing matches overlay file suw_navbar_ic_next.xml, for flavor anydpi-v21

nothing matches overlay file suw_progress_bar.xml, for flavor v21

#### make failed to build some targets (04:39:58 (hh:mm:ss)) ####

can somebody recommend me how to sort this problem?

thanks in advance
[Nexus 6P Android Development] nathanchance:
Resync and build, Beans just pushed a fix.
[Nexus 6P Android Development] canteo:
much thanks master, i did it and saw the new commit, now building again without make clobber..
[Nexus 6P Android Development] kicker22004:
Issues with build.

Hi i'm new to compiling Purenexus and have been building fine until I attempted to add Substrate at which point it failed(I followed the link on how to fix this and get all green.. ). My issue is I tried to go back to just the git project but I can't seem to get a clean build anymore. This is my process so far.

Fetching projects: 98% (472/481) Fetching project platform/external/libvncserver

Fetching project platform/external/libnl

Fetching projects: 100% (481/481), done.

Syncing work tree: 56% (270/481) error: Your local changes to the following files would be overwritten by checkout:

core/java/android/content/res/AssetManager.java

core/jni/android_util_AssetManager.cpp

include/androidfw/AssetManager.h

libs/androidfw/AssetManager.cpp

services/core/java/com/android/server/om/OverlayManagerService.java

services/core/java/com/android/server/pm/PackageManagerService.java

Please, commit your changes or stash them before you can switch branches.

Aborting

Syncing work tree: 100% (481/481), done.

frameworks/base/: discarding 5 commits

error: frameworks/base/: android_frameworks_base checkout bd2170f926047fad148dfd7be8214cdc59f66249

I attempted to go back to stock using my build script (found steps here).

#!/bin/bash

make clean

repo sync

. build/envsetup.sh

breakfast angler

mka clobber

mka bacon

Any ideas? I'm new to the whole github commands but have found steps like "git reset --hard". I Just need to know how to get back to unmodified without deleting everything and starting fresh because that took FOREVER lol. Thanks guys and for this post.