yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] katinatez:
The reason it will not work on DU is because I forked over

Build,settings,framework, etc from pure nexus.

To make it work on other ROM you have to fork over all repos from DU & cherry-pick 30 some commits.
[Nexus 6P Android Development] aalupatti:
Ok. Makes sense.

Thanks
[Nexus 6P Android Development] waleed.wa03:
I used the Google Cloud free trial credits to build a 16 vCPUs, 32 GB machine and my builds are now 33 minutes with ccache enabled. This was also with me syncing CM 14 too. I'm going to enjoy this for a month :)
[Nexus 6P Android Development] aalupatti:
U can trial for a month and then we can buy another month with the credit

Sent from my Nexus 6P
[Nexus 6P Android Development] waleed.wa03:
They give you $400 to use within 2 months. I resized it down to 8 cores to stretch the credits for 2 months.
[Nexus 6P Android Development] aalupatti:
I have a question about modding for 3minit battery to work. ( Sorry to ask this in thread but I know I will get some help )

It works well on PN rom but I wanted to make one for DU.

I decompiled the systemui.apk to add 3minit battery mod but found that systemui.apk is missing the smali folder. Is that normal with DU ?

I have read that non deodex roms will have it missing. Was not expecting that in DU

what is happening ? ﻿

Thanks
[Nexus 6P Android Development] AzraelsKiss:
If there's a serious issue, it will tell you that the sync failed when it finishes.

Have a good one!

---------- Post added at 12:56 AM ---------- Previous post was at 12:45 AM ----------

Completely delete your build directory, make a new directory, reinitialize and sync the repo. Good luck!

Have a good one!
[Nexus 6P Android Development] Ndp9882:
I was having issues before (a bunch), but the link posted above by aalupatti fixed everything. Just had to install openjdk-8-jdk and disable ninja on top of those instructions. Worked on Ubuntu 16.04 VM w/ 6gb ram and 80gb drive.
[Nexus 6P Android Development] sthbr82:
Trying to build PN Nougat, my build's failing here complaining "GC Overhead limit exceeded"

e/sharath/android/purenexus/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/jack-rsc.tmp ; exit 41 )
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.
Generating TOC: /home/sharath/android/purenexus/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar.toc
Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by android-jack-team@google.com)).
GC overhead limit exceeded.
Try increasing heap size with java option '-Xmx<size>'.
Warning: This may have produced partial or corrupted output.
build/core/java.mk:730: recipe for target '/home/sharath/android/purenexus/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex' failed
make: *** [/home/sharath/android/purenexus/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....

Looks like I need to increase Java heap size, any inputs in regards to doing that?
[Nexus 6P Android Development] AzraelsKiss:
You ran out of memory... Methods for dealing with this issue... Including increasing the heap size... Has been discussed previously in the thread.

http://xdaforums.com/showpost.php?p=68641076&postcount=29

http://xdaforums.com/showpost.php?p=68642236&postcount=31

Good luck! Have a good one!
[Nexus 6P Android Development] hi4s4:
hi, could you elaborate on how you did this. I'm looking at line 454, but don;t see jack-admin. Thanks,
[Nexus 6P Android Development] denkru:
Hi, the exact line i changed was

JACK_SERVER_COMMAND="java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=$TMPDIR $JACK_SERVER_VM_ARGUMENTS -Xmx6G -cp $LAUNCHER_JAR $LAUNCHER_NAME"

i added -Xmx6G change it to what you have to spare.

Still don't know why Jack-server gave me so much trouble even export JACK_SERVER_VM_ARGUMENTS= did not help, changing this line was what solved my problem.
[Nexus 6P Android Development] hi4s4:
Thanks a lot. I'm using dual boot, so I imagined that all my 8GB of RAM much already be used for this. Is that not the case?
[Nexus 6P Android Development] denkru:
I really don't know yet why its happening, i use a VM with 8GB of ram and i never had this kind of trouble building anything before N.
[Nexus 6P Android Development] hi4s4:
:) Sure. In a post over here, they advise using

mka bacon -j8

saying that it defines the number of threads to be used. Is that relevant? When I checked the "optimum" threads so to say using

grep -c processor /proc/cpuinfo

the output said '8', meaning that 8 threads are optimum. If the system already knows the optimum number, wouldn't it be using that by itself. Besides, from all the other posts in here, doesn't seems like anyone else is adding the "-j8" either.
[Nexus 6P Android Development] Juzman:
Running beautifully. ^_^
[Nexus 6P Android Development] Nervousfreak:
Xda is about sharing so is it possible someone will post a working build? Love to see one uploaded instead of all the screen shots with home made stuff. Thanks in advance
[Nexus 6P Android Development] snoprosledneck88:
No, that is very rude to the Dev. Nate will release the official once it is done but asking for someones personal build is about as bad as asking for an ETA from the Dev. Personal builds are for personal use only and are not to be shared. Everything is open source so you can build it on your own if you want and that is ok as it is part of the learning process.
[Nexus 6P Android Development] alexandruvlad:
Just a wishing well message here!

Make it epic, boys...

Regards!
[Nexus 6P Android Development] Nervousfreak:
Wasn't referring to one dev in particular. Just asking if someone will upload a personal build. That is not asking for eta. If no one is going to post a build than this thread should move to general in my opinion. And sure I can build my one if I want. I think, not sure about that. That's not the point. Just want to try a aosp. That's all
[Nexus 6P Android Development] snoprosledneck88:
Since this thread is about building Pure Nexus N I thought you were asking for someone to post their build of it. If you looking for a N rom to try there are a few in the development sections. If you are in fact asking for someone to post their build of Pure Nexus N then you are referring to one dev in particular. Nate, [MENTION=4395895]BeansTown106[/MENTION] and that would be very rude to him for someone to post their personal build of his hard work. I can't speak to building it as I currently do not have a computer with enough Hard drive space. (Damn solid state drives) I understand you were not asking for an ETA but someone posting personal builds of someone elses work before the Dev himself releases it is just as bad. Your all good man. Nate posted on google + that he was going to try to get our build out this week. We will have to wait and see.
[Nexus 6P Android Development] Nervousfreak:
Don't see his name in op. So if I was asking in his thread than it would be rude. I see different members trying to build so to them I was referring. End of discussion.
[Nexus 6P Android Development] hi4s4:
Cut it out mate! XDA is about sharing you say, and what exactly have you shared so far? :confused:

Doesn't matter whose thread it is, developers are the one spending their time and effort on it. Like "snop" said, build one for yourself, if you really want to "Try" one. As for the rom, it gets here, when the devs say it does. Deal with it. :fingers-crossed:
[Nexus 6P Android Development] snoprosledneck88:
This thread was moved here from his thread by a Mod that didn't want all of this "build" talk in the original thread. It is obviously his work, who else is the Dev for Pure Nexus? Check post #22507

http://xdaforums.com/nexus-6p/development/rom-pure-nexus-layers-fi-wifi-calling-t3244563/page2251
[Nexus 6P Android Development] hi4s4:
Still out of memory

Still getting the same error.

Here's what I did:

. build/envsetup.sh
export USE_NINJA=false
mka clobber
ccache -c -C
breakfast angler
mka bacon -j8

I also added "-Xmx8G" in line 454 of jack-admin, as advised by denkru

I have Mint on a partition, with 130GB of disk space, and 8GB of ram. Swap drive has another 9GB almost. Any ideas?
[Nexus 6P Android Development] Nervousfreak:
Pfff you don't get it. I know who the dev is that build pure nexus. Omg

Now that different xda members want to build from his sources I ask Here if SOMEONE can share his or her build. That's all.
[Nexus 6P Android Development] Trak-X:
Hello everyone,

I am encountering an issue and cannot figure out how to fix it:

Using /Volumes/android/purenexus/external/busybox as source for busybox

HOSTCC scripts/basic/fixdep

couldn't understand kern.osversion `16.1.0'

GEN /Volumes/android/purenexus/out/target/product/angler/obj/busybox/full/Makefile

target C++: libperfprofdcore <= system/extras/perfprofd/configreader.cc

ld: warning: object file (/var/folders/m8/w0cf3cms7z51rtsq0l8q6yqh0000gn/T//ccQ8zcDr.o) was built for newer OSX version (10.12) than being linked (10.4)

/bin/sh: line 1: 62663 Bus error: 10 scripts/basic/fixdep scripts/basic/.fixdep.d scripts/basic/fixdep '/Volumes/android/purenexus/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc -Wp,-MD,scripts/basic/.fixdep.d -Iscripts/basic -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/fixdep /Volumes/android/purenexus/external/busybox/scripts/basic/fixdep.c ' > scripts/basic/.fixdep.tmp

make[4]: *** [scripts/basic/fixdep] Error 138

make[3]: *** [scripts_basic] Error 2

make[3]: *** Waiting for unfinished jobs....

target C++: libperfprofdcore <= system/extras/perfprofd/cpuconfig.cc

target C++: libperfprofdcore <= system/extras/perfprofd/perfprofdcore.cc

target C++: libperfprofdcore <= /Volumes/android/purenexus/out/target/product/angler/gen/STATIC_LIBRARIES/libperfprofdcore_intermediates/proto/system/extras/perfprofd/perf_profile.pb.cc

target C++: libperfprofdutils <= system/extras/perfprofd/perfprofdutils.cc

target C: procmem <= system/extras/procmem/procmem.c

target C: procrank <= system/extras/procrank/procrank.c

target C: puncture_fs <= system/extras/puncture_fs/puncture_fs.c

target C++: rawbu <= frameworks/native/cmds/rawbu/backup.cpp

target C: sane_schedstat <= system/extras/sane_schedstat/sane_schedstat.c

make[2]: *** [include/autoconf.h] Error 2

make[1]: *** [prepare] Error 2

make: *** [/Volumes/android/purenexus/out/target/product/angler/obj/busybox/full/.config] Error 2

make: *** Deleting file `/Volumes/android/purenexus/out/target/product/angler/obj/busybox/full/.config'

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

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

Forgot to mention: NINJA disabled, CCACHE on, JACK set to 16GB

As far as i understand it fails at building busybox. Is there any way to step over, or place it myself? Or maybe fix the error :))

Any help is appreciated :)

Thanks
[Nexus 6P Android Development] AzraelsKiss:
I'm not familiar with building android on a Mac, but I know it's a little different from building on linux, so I feel I must ask if you're sure you've got your build environment set up correctly... Have you had any successful builds from this environment? I'm sure you've looked at https://source.android.com/source/initializing.html on setting up a Mac environment, but are you sure you've followed it correctly? Not trying to imply that you don't know what you are doing... Just want to be sure, based on my own ignorance of building on Mac. The only other thing I can recommend is to do a new repo sync and try again, in case you've sync'd in the middle of a commit. Good luck!

Have a good one!
[Nexus 6P Android Development] nathanchance:
Only took me 12 hours or so but I got it working :D
[Nexus 6P Android Development] Nekromantik:
Trying to build a rom and it gets to 99% and then errors saying

KeyError: "There is no item named 'SYSTEM/bin/backuptool.sh' in the archive"
[Nexus 6P Android Development] AzraelsKiss:
Perhaps you need to repo sync and try again...

Have a good one!
[Nexus 6P Android Development] Nekromantik:
Tried that. :(

Never mind I switched to diff ROM.
[Nexus 6P Android Development] AzraelsKiss:
Well... I was just able to build without issues, so the source works... Perhaps you need to delete your build directory, re-download the whole repo and start from scratch...

Have a good one!
[Nexus 6P Android Development] Nekromantik:
I was trying to build another ROM not PN.

You too.
[Nexus 6P Android Development] AzraelsKiss:
For future reference... If you're not building PN, you may want to give a heads-up as to the ROM you are building, in case that could be relevant...

Have a good one!
[Nexus 6P Android Development] pkelly517:
This is actually a very relevant point when posting in the Building Pure Nexus thread.
[Nexus 6P Android Development] DowntownRDB:
Just completed a new home build an hour ago with the latest commits. No issue with the build or running the latest updates. Gotta love Beans sharing with us. Thanks to all the very helpful people in this thread. Have a fantastic day. :good:
[Nexus 6P Android Development] aalupatti:
Can anyone please help me in identifying the commits that disables the battery icon ?

Thanks
[Nexus 6P Android Development] emanoj.i9103:
You can try to hide the status bar default battery icon from below.

Settings -> Pure Nexus Settings -> Statusbar -> Status bar icons

PS: I assume you're trying 3Minit battery mod. If yes, that's the same setup in my screenshot above. Cheers!
[Nexus 6P Android Development] aalupatti:
Hi,

Thanks for the reply.

Yes I am using 3mint but it is not for purenexus.

It is actually for DU rom. It does not have that setting.

Sent from my Pixel XL
[Nexus 6P Android Development] emanoj.i9103:
Ah ok buddy. Maybe next time mention your rom base please given that it might be slightly OT here :)
[Nexus 6P Android Development] nathanchance:
You need to grab the open battery styles commits from DU's Gerrit.

And as the other guy said, I don't mind questions about compiling other ROMs but please state which ROM you are compiling right off the bat so there is no confusion.
[Nexus 6P Android Development] Trak-X:
Just the 2 patches are enough for battery percentage? There are others too, that seems to have to do with battery.

Not going to try it, but was just curious.

Thanks.
[Nexus 6P Android Development] aalupatti:
Yes. But currently 3minit and battery style commits are conflicting.... So don't try to pick yet.

Sent from my Nexus 6P
[Nexus 6P Android Development] Trak-X:
I will not try it.

Being able to build PN without breaking anything is enough for me. My build machine is not that great and starting from scratch with resync and building will take ages :)

Better safe than sorry :D
[Nexus 6P Android Development] Topse:
Hi

What did you do?

Actually I deleted all jack related things in my ROM directory and did a new repo sync.

This worked for me !
[Nexus 6P Android Development] Trak-X:
[MENTION=6842057]The Flash[/MENTION] and not only, as Nate already updated with the latest security changes, do we need to also flash latest vendor?

If yes, should it be taken from the google zip, or there is something that we need to build from the source?

Thanks.

LATER EDIT:

Nevermind, found my answer :) http://xdaforums.com/showpost.php?p=65188697&postcount=8518

Thanks Nathan.
[Nexus 6P Android Development] aalupatti:
I had to run the build for one time and it sorted things out.. Still dont know what happened.

Currently I am building in cloud and not seen any issues.

Waiting for black friday to build a new system. :D
[Nexus 6P Android Development] jmtjr278:
hey guys,

i just finished a build and flashed it. i am not able to flash root though. i attempted to flash the sr1 supersu zip i have used for the last 2 months or so and twrp informed me that the zip was corrupted. ok i thought and downloaded the new sr3 supersu along with a new sr1 just in case. i get the exact same results upon attempting to flash via twrp. what am i doing wrong? can anyone else, who has built this morning flash root? thanks for your time and help.
[Nexus 6P Android Development] nathanchance:
1. Those proprietary files come straight from the factory images by taking them apart and copying the files into the repo.

2. The custom vendor repo is not related to your camera issue. You need the latest vendor image from Google because that is what contains the vast majority of proprietary drivers and binaries that run your device, like the camera (which you can read more about here). The custom vendor is what tells the build environment the additional things we want the devices to have via custom makefiles and those are rarely actually copied to the vendor folder.

3. See my above answer, you aren't overwriting anything in the custom vendor by flashing that image.

4. I seem to recall there being an option for a prebuilt vendor image to be packaged into the ROM zip in the device tree but I can't seem to find it.
[Nexus 6P Android Development] thunder9861:
Thank you so much for your quick response!

It sounds like there aren't any issues with using the official Google vendor image with PureNexus. This is great to know!

It is strange to me that when I build PureNexus from source, it produces a vendor image, but that image doesn't work for me. I wonder how Google does it, is there any way to reproduce their image when building from source? Or is it because they have access to proprietary things that haven't been made available to AOSP?

Thanks again, and keep up the great work!
[Nexus 6P Android Development] mdh-labs:
Hi qsec,

Have you ever solved this problem? Have same issue, I have tried changing the number of parallel processes to the min, and increased the heap size to 16GB. My dev machine has only 8GB ram with i7 running ubuntu 14.10..

The build fails always at 41%. Is my spec not enough for compiling Android N at all?
[Nexus 6P Android Development] qsec:
Yes, check post 516 at the end of it.

I added it to my ~/.bashrc

And i use 7GB

So at the very bottom of ~/.bashrc it looks like this.

export USE_NINJA=false

export ANDROID_JACK_VM_ARGS="-Xmx7g -Dfile.encoding=UTF-8 -XX:+TieredCompilation"
[Nexus 6P Android Development] Techvir:
For those interested in 3minitbattery :

I realized that all the things for it to work is there. There is no need to decompile , etc

Just copy the 2 files 3MinitBatterySettings.apk and MinitBatteryResources.apk from the 3minit thread to system/priv-app folder . set permission , reboot and u r all set
[Nexus 6P Android Development] Trak-X:
Guys, if i cherry picked some commits from other repo's, how can i keep them if i want to repo sync again?

Thank you.
[Nexus 6P Android Development] dieselbuddeh:
What would those persmissions be? 0755?
[Nexus 6P Android Development] katinatez:
Hi was reading your conversation a while ago, and looked into upgrading my PC and I am so happy I did this, my signature reflects my new building server! Build only takes 32 minutes with no cache!

Thanks
[Nexus 6P Android Development] nathanchance:
Those are some nice specs! 32 mins no ccache, good lord haha. Here are mine; this time is definitely with ccache.
[Nexus 6P Android Development] AzraelsKiss:
23 mins with ccache from make clobber... On a laptop... :P
[Nexus 6P Android Development] Techvir:
-r-w-r--r--

Sent from my Pixel XL
[Nexus 6P Android Development] Techvir:
Did u build a whole new pc or upgraded ?

If you dont mind can give a detailed components of the build and price.

Thanks
[Nexus 6P Android Development] fhem:
Off Topic Sorry

[MENTION=6842057]The Flash[/MENTION] This old guy is head banging. I broke my build dir --- ouch !!! :o:o

All was going good until r19 ----> Anybody have any insights into this build error???? I am ready to give up. :crying::crying:

BTW: My build environment was fine w/ r14 and it also builds the latest Pure r19 ok. So........... I don't get it.

Thanks in advance for any help.
[Nexus 6P Android Development] katinatez:
Well those are both great build times, but I was overdue on upgrading. I am almost embarrassed to mention my prior PC; but here it goes I was running an

Intel 975 Extreme Bloomfield first generation i7

EVGA Classified X58

I upgraded only motherboard, CPU's, & RAM

fortunately I already have a

Obsidian Corsasir 800D case which fits this motherboard with the exception of top left mount which I fixed by adding 1/4 height nylon spacer with 3/8 thread which I found at local Hardware store.

Corsair 1000w PSU

AMD Radeon R9 290

here is the inspiration that led me to this build

http://www.techspot.com/review/1218-affordable-40-thread-xeon-monster-pc/

if you want specs and parts links send me an pm
[Nexus 6P Android Development] pkelly517:
Totally off topic, but you could look at Tom's Hardware Guide. There are BIY systems at different price points. I built the$1000 system about 4 years ago for my Windows box. It worked so well, I built another (with a much cheaper video card) for my Linux box. I've done a few minor upgrades to the Linux box since then (SSD and more RAM), but recently upgraded Ubuntu after 565 days of uptime.
[Nexus 6P Android Development] CYoung234:
I am new to trying to build PN using a VMWare workstation. My PC is 4 years old, and is a 2500k Core i5 with 16gb RAM. My VM has 11g of RAM and 250g storage.

My first attempt at a repo sync, after following flash's guide appears to be stuck. I did use the command repo sync --force-sync. Here is a screenshot of what it looks like. The bottom line is just switching back and forth between two different sets of values. This has been running since yesterday afternoon. [MENTION=6842057]The Flash[/MENTION] Any ideas as to what I should do next? I hate losing what has been syncced so far.

Oh, if I scroll back through the terminal, I do see that during the night sometime there was an internal server error. The message said:

remote: internal server error

fatal: early EOF

fatal: index pack failed

But it kept running after that. Because I am halfway around the planet, I have a slow internet connection, 3MB/s...
[Nexus 6P Android Development] nathanchance:
3MB/s is going to take a pretty long time to sync the source. If those numbers are still moving, the source is still coming down, you've just hit a really large repo. You can try hitting ctrl-C then running the repo sync command again, you won't lose what you have previously synced.
[Nexus 6P Android Development] Techvir:
Sorry for the off topic but kind of on topic since a good build is useful for building :)

Here is what seems to be what I am going to make

-Intel Xeon E5 2683 V4 ES 2.0Ghz 40MB 16Core VS Intel Xeon E5-2630

- Motherboard one on the image vs Asus Rampage V Edition 10 EATX

Plus what is in the attached image

Really wanted to keep it below 1.5K but can go up to 2k

( Prices are in CAD )

[MENTION=3814731]katinatez[/MENTION] and [MENTION=6842057]The Flash[/MENTION]

Thank you guys in advance .. This has been an awesome thread so far.. May be the be best that I have been a part of since joining XDA. From a totally noob to a less noob in a few weeks.

Sent from my Nexus 6P
[Nexus 6P Android Development] CYoung234:
Thanks. I used ctrl-C to stop then restart it, and it is running again. I need to review using Ubuntu, as it has been a while!
[Nexus 6P Android Development] katinatez:
[MENTION=537184]Techvir[/MENTION]

Sent pm
[Nexus 6P Android Development] oldman_58:
Check this out.. not the fire power but definitely cheaper:

http://www.ebay.com/itm/HP-ML110-G6...d4e2852&pid=100005&rk=6&rkt=6&sd=262694942890
[Nexus 6P Android Development] pvtjoker42:
Anybody build in the last day or so and have issues with substratum themes causing their phone to hang at the boot logo?
[Nexus 6P Android Development] nathanchance:
You need to add this commit: http://review.projektsubstratum.com/#/c/153/

The November security update causes framework overlays to bootloop the phone. Flash the Substratum rescue zip in /sdcard/Substratum