yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] AzraelsKiss:
Unless I'm mistaken... AOSP is hosted on a different server... So if it's a server side issue... Well... Nevermind... I'm sure you're right.

Have a good one!
[Nexus 6P Android Development] hoof hearted:
looking for some guidance...just started syncing and building.

i've been able to build aosp and PN. now i'm trying out some other ROMs to build to become familiar with the process. i was trying to build Flash-Rom but my builds have been erring out towards the beginning. i understand this was built on arch. i'm using mint and have added the toolchains.xml.

do i need to clear out my ccache since it was used with the previous builds or is this something else? my syncs (git tools and repo) are saying they are up to date.

i've been running into this error:

target clang thumb C: /usr/bin/ccache prebuilts/clang/host/linux-x86/5.0.0/bin/clang | libjemalloc_32 <= external/jemalloc/src/ckh.c

build/core/binary.mk:1019: recipe for target '/home/abc/flashrom/out/target/product/angler/obj_arm/STATIC_LIBRARIES/libjemalloc_intermediates/src/arena.o' failed

make: *** [/home/abc/flashrom/out/target/product/angler/obj_arm/STATIC_LIBRARIES/libjemalloc_intermediates/src/arena.o] Error 1

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

make: *** wait: No child processes. Stop.

#### make failed to build some targets (17:22 (mm:ss)) ####
[Nexus 6P Android Development] nathanchance:
Your error is above that and I know exactly what it is, I just haven't had the time to fix it because I've been busy with other duties.
[Nexus 6P Android Development] Shockz:
When I flashed my PN build from Thursday I went to go set it up but it would not let me restore any android backups from the cloud. Anyone else experience this issue?

Edit: Just finished another build which looks like the issue is fixed. Might have been something with the baked in gapps.
[Nexus 6P Android Development] 5.1:
Hi guyz and girls!

Built PN for Marlin two days ago. Flashed, booted, no problem so far.

Today, decided to build again after Beans change regarding substratum. I ened with a 270MB zip... I guess it's due to the recent change Beans made here:

https://github.com/PureNexusProject/manifest/commit/8de0cd9f4bd34cad0de370954118e41d4474cdb0

This line has been removed:

<project path="vendor/prebuilt" name="android_vendor_prebuilt" remote="pure" revision="n-mr1" />

I'm not really familiar ROM building. I searched a bit and figured "vendor prebuilt" are supposed to be vendor preinstalled APKs. Am i getting it right? If yes, what are these? since Gapps are now baked in? Previous build was 552MB. Unfortunately i deleted the previous files with "mka clobber" and can't compare the differences between directories.

Thanks in advance and sorry for my ignorance...
[Nexus 6P Android Development] nathanchance:
Beans is shifting stuff around right now, it'll be a bit before you can build again.
[Nexus 6P Android Development] 5.1:
Digging​ a bit and I guess a part of the built-in apps get moved into dynamic gapps?! Just found out all the work done on gitlab also. Damn it this guy never sleep WTF... :)

God bless you guys. What you achieve never ceases to amaze me... :good:
[Nexus 6P Android Development] AzraelsKiss:
Beans changed the name of the makefile for GApps in vendor/gapps, but hasn't updated with the new name in vendor/pure, so the build isn't building GApps without manually editing a file in vendor/pure/products, or waiting for Beans to finish his commits.

Have a good one!
[Nexus 6P Android Development] 5.1:
Yeah trying to figure it out... It seems like being nearly 40 years old with no prior knowledge in programming doesn't help. Well, I'll keep looking at the commits to get used to it for future changes. Unfortunately my two kids kill my free time so I hardly get some time to learn something.

Thanks... :)
[Nexus 6P Android Development] dieselbuddeh:
Can i dirty flash a build that doesn't include the gapps? My current build is 291MB and built 5:30PM Eastern.
[Nexus 6P Android Development] AzraelsKiss:
Dirty flashing without GApps used to be possible in the past, but I haven't tried it after a build with built-in GApps, so I can't say for sure, from experience, that you won't have issues. Then again, with the number of changes Beans has made lately, I wouldn't recommend a dirty flash anyways... But that's just me.

Have a good one!
[Nexus 6P Android Development] dieselbuddeh:
So far no problem. It's been like 13 hours since i flashed and no fc's yet.
[Nexus 6P Android Development] AzraelsKiss:
That's good to hear. Just remember... If you do have any issues, try a clean flash. Good luck!

Have a good one!
[Nexus 6P Android Development] milan187:
Dirty flash without gapps did not work for me all Google apps crash.

Once I built with gapps there is no Google cloud restore :(
[Nexus 6P Android Development] Shockz:
Yeah he is looking into the restore issue now. Did you wipe system, then flash the rom + dynamic gapps?
[Nexus 6P Android Development] sToRm1nG:
It should be pretty easy (although I haven't tried it yet).

I will test it this evening but from my understanding you have to edit the following line in vendor/pure/<DEVICE_FOR_WHICH_YOU_WANT_TO_BUILD>.mk (e.g. angler.mk):

#inline gapps
$(call inherit-product-if-exists, vendor/gapps/gapps.mk)

To what ever device/architecture it is using [arm-phone-gapps.mk / arm-tablet-gapps.mk / arm64-phone-gapps.mk / arm64-tablet-gapps.mk] (for angler this would be arm64-phone-gapps.mk):

#inline gapps
$(call inherit-product-if-exists, vendor/gapps/arm64-phone-gapps.mk)

[MENTION=3964027]AzraelsKiss[/MENTION]

Not that you wouldn't know. ;)
[Nexus 6P Android Development] 5.1:
Thank you very much for the explanation. Indeed, it successfully built with gapps... :good:
[Nexus 6P Android Development] DEVILOPS 007:
Would someone be able to tell me why this is happening with Chads uber? I can't get it to work. Thanks!

https://www.dropbox.com/s/th7uvve7bfoz37o/log.txt?dl=0
[Nexus 6P Android Development] nathanchance:
That issue was fixed with this commit so I don't know what is going on... https://github.com/UBERROMS/bootable_recovery/commit/7912669f51ea9a25e1b6aac73f8d84bdf477677d

Also, I've noticed that you post in a lot of different threads with the same question, that's not allowed here.
[Nexus 6P Android Development] AzraelsKiss:
The built-in GApps are fixed in the code, so the edit shouldn't be needed any longer.

Have a good one!
[Nexus 6P Android Development] DEVILOPS 007:
Why not, it is a question that is relevant to different threads with different people.
[Nexus 6P Android Development] nathanchance:
Well...

Anyways... make sure you have that tree synced, you can run this commit in the head of your ROM source

repo sync --force-sync bootable/recovery

then run:

cd bootable/recovery
git log --format=oneline

and you should see the title of that commit at the top, otherwise something else is wrong.
[Nexus 6P Android Development] sToRm1nG:
I tried changing the angler.mk and it worked. Looks totally different now than without the GApps (surprise :p).

Anyway, BeansTown106 seems to have cleaned up quite some things. I guess it is best to rebuild again. Or even wait for the official release. I have the feeling that it won't take much longer (hopefully). :)
[Nexus 6P Android Development] dbroer91884:
So to be clear, I built yesterday. If I'm dirty flashing over the Pure Nexus I already have (from like a week ago) I won't have any issues?

Also, I was always under the impression that ROM builders couldn't include GAPPs. Is that policy from Google changing?
[Nexus 6P Android Development] 5.1:
Well, considering the changes done lately, I'd suggest you clean flash this build.

Try dirty flashing and see how it goes, you can always clean flash later if you face issues... Regarding Gapps, I remember i've read Beans said Gapps must be built-in the ROM zip for the new Pixel devices. Maybe it's more convenient to build for all devices this way. Or just his choice. I could be all wrong though.

Cheers... :)
[Nexus 6P Android Development] dbroer91884:
Also, fyi to those interested in trying this. Google Cloud Server just updated their free trial to be a year long. Works well.
[Nexus 6P Android Development] Shockz:
So I have been using ninja to compile and I know it stores a cache so that incremental builds are faster, do I never need to worry about cleaning this cache, if so what folders do I need to clean?
[Nexus 6P Android Development] 5.1:
Hi... Go into your home directory:

/home/username/.ccache

I'm using Ubuntu. .ccache folder is hidden. I Press CTRL+h and it appears. After reading, it seems like it will clean itself once it reach it's max size (I set 50GB). Someone will certainly confirm.

Cheers...
[Nexus 6P Android Development] AzraelsKiss:
GApps has traditionally been separate from custom ROMs because way back in the stone age, Google negotiated with CyanogenMod an agreement that they wouldn't include proprietary "Google Experience" apps, a.k.a. GApps. According to the agreement, whereas Android was open source and allowed to be built and modified by third-parties, GApps was proprietary software, and therefore wasn't permitted to be modified and/or distributed without Google's permission. So technically, anyone distributing GApps is violating copyright law and could be shutdown at any time, and Beans already maintains Dynamic GApps and Pixel builds with GApps built-in, so he's running that risk anyways. But, even if Google did decide to get their collective panties in a bunch, Beans would probably just have to pull the updates that has GApps built-in and remove the built-in GApps code from his repo. But so far, Google hasn't found enough of a threat from most third-party devs to worry about harassing those that do build GApps without permission.

Or maybe the Almighty Beans has Google's permission to build GApps... Who knows...

ccache is a smart cache system. It caches the things that can be reliably cached and pretty accurately only uses the items that can be used to speed up the build. If it fills up, it'll dispose of the items it don't need to allow the cache to work. It rarely needs to be refreshed, but if it ever does start having issues, you can just delete the .ccache directory, and the build process will rebuild it.

Have a good one!

---------- Post added at 01:27 PM ---------- Previous post was at 01:26 PM ----------

btw... The restore function on clean flash is working again in the latest code...

Have a good one!
[Nexus 6P Android Development] DowntownRDB:
[MENTION=3964027]AzraelsKiss[/MENTION] Thanks for letting us know restore function on clean flash is back up and working as that is great news. Was checking GitHub this AM and saw several other changes Beans has made in last few days. His G+ community page indicates updated release soon. I think I will wait for that before I do another personal build.

The knowledge that you share in this and other threads is much appreciated. I'm always learning something new or re-learning something I had forgotten. LOL.

Have a fantastic day.
[Nexus 6P Android Development] dbroer91884:
Thanks for the explanation. I can't imagine Google is going to have any issues with a private dev including gapps. I can see why they had to make an agreement with CM as that became a larger company.
[Nexus 6P Android Development] nathanchance:
It was also the fact CM was shipping GApps on EVERY device, not just Google certified ones. The Nexus devices have been approved for GApps so Google most likely won't have any issues with it.
[Nexus 6P Android Development] guitar1238751:
Alright so I was successful until after setting up ccache. I receive an error during the final step when I enter these commands: /hide

. build/envsetup.sh

breakfast angler

mka bacon

/hide

This is the error outputted after each command: /hide

admin-Lenovo PureNexus # . build/envsetup.sh

bash: build/envsetup.sh: No such file or directory

admin-Lenovo PureNexus # . build/envsetup.sh

bash: build/envsetup.sh: No such file or directory

admin-Lenovo PureNexus # breakfast angler

breakfast: command not found

admin-Lenovo PureNexus # mka bacon

No command 'mka' found, did you mean:

Command 'mkfa' from package 'julius' (multiverse)

Command 'm-a' from package 'module-assistant' (universe)

Command 'mma' from package 'mma' (universe)

Command 'mkp' from package 'check-mk-server' (universe)

Command 'moka' from package 'alliance' (universe)

/hide

What exactly did I do wrong? Is it an issue with how the environment was setup or did I not initialize correctly before. Thanks.

(Also what is the correct format to hide code in a post? I forgot how I used to do it and I'm pretty sure I'm doing it wrong now lol)
[Nexus 6P Android Development] nathanchance:
It doesn't look like your source got synced fully. Either that or you are running those commands in the wrong folder.
[Nexus 6P Android Development] guitar1238751:
Okay so this is what I did to sync:

cd ~/PureNexus
repo init -u [url]https://github.com/PureNexusProject/manifest.git[/url] -b android-7.1

Right after this I get this output:

Your identity is:...
If you want to change this, please re-run 'repo init' with --config-name

Testing colorized output (for 'repo diff', 'repo status'):
black red green yellow blue magenta cyan white
bold dim ul reverse
Enable color display in this user account (y/N)? y

repo has been initialized in /root/PureNexus

Right after this step I set ccache and ran the commands in the final step. It is still in the same "PureNexus" folder I created before.
[Nexus 6P Android Development] skidaway:
You need to change android-7.1 to n-mr1. The branches changed a while back.
[Nexus 6P Android Development] guitar1238751:
Thanks. I'll do that now and then I'll update this post.

EDIT: Is this what you meant? I changed it to this:

repo init -u https://github.com/PureNexusProject/manifest.git -b n-mr1

Still receiving the same error as before while building.
[Nexus 6P Android Development] Johannes667:
run repo sync after repo init
[Nexus 6P Android Development] guitar1238751:
[MENTION=5262010]skidaway[/MENTION] [MENTION=1069947]Johannes667[/MENTION] [MENTION=6842057]The Flash[/MENTION] Thanks guys. I ran repo init -u https://github.com/PureNexusProject/manifest.git -b n-mr1 and then repo sync and it is now syncing.

---------- Post added at 11:40 PM ---------- Previous post was at 11:19 PM ----------

I realized I need to allocate way more space lol. Is there a way to pause/suspend repo sync instead of cancelling it so I don't lose what been synced so far? This way after I allocate more space it can continue syncing from where it left off before?
[Nexus 6P Android Development] nathanchance:
Ctrl-C will just interrupt the sync but it won't cause you to lose your progress
[Nexus 6P Android Development] guitar1238751:
Thanks that worked. I allocated more space and it is syncing again now. Since ccache is set to 50gb, does that mean the sync will automatically stop once it hits 50gb? I remember when I synced another source a while back it ended up downloading about 320gb ish but I had not configured anything with ccache then, just initiated the sync, left it overnight, and woke up to 320gb lol. Man I wish I knew about ccache then, would have made recompilation so much smoother.
[Nexus 6P Android Development] AzraelsKiss:
The ccache has nothing to do with the size of sync. It is only a build cache to speed up subsequent builds, and is unlikely to fill up. When you sync the repo, it will download into the directory you did the repo init and repo sync in, and this will be the build directory. My ccache is setup with a max of 50 GB, my .ccache directly is nearly 14 GB and my build directory is a little over 75 GB after a make clobber right now.

Have a good one!
[Nexus 6P Android Development] pkelly517:
repo sync simply pulls in the source code. You compile that with brunch, make, mka, etc.

ccache is the compiled cache. It only helps speed up subsequent builds.
[Nexus 6P Android Development] guitar1238751:
Ohhhh okay so ccache is the same thing as cache, so data temporarily stored so that future requests for the same data can be retrieved faster which will speed up future build times because it'll use the cache built now? I understand now. Thanks for the clarifications. I'm still a super noob at all this lol.
[Nexus 6P Android Development] Fralund:
I got around the problem by removing <project path="vendor/gapps" name="vendor_gapps" remote="gitlab" revision="n-mr1" /> from manifest.xml. But is that the we to do it? If I don't I get the following error:

error: RPC failed; result=22, HTTP code = 404

fatal: The remote end hung up unexpectedly

error: Cannot fetch vendor_gapps

I read about sync problems earlier and about adding SSH keys to gitlab.com (which I have actually done).

/Fredrik
[Nexus 6P Android Development] BIade:
Hello masters :)

[MENTION=6842057]The Flash[/MENTION] First of all thank you soo much for your work :)

Im trying to build PureNexus for Hammerhead. Im using

repo init -u https://github.com/PureNexusProject/manifest.git -b n-mr1

and this as local manifest:

https://github.com/Pure-Hammerhead/manifest/blob/master/hammerhead_manifest.xml

Syncing the repo does work, but

brunch hammerhead

gives following output:

make: *** No rule to make target 'bacon'. Stop.

#### make failed to build some targets ####

Any help would be awesome :)

Gratefully

Blade

P.S.: I understand that Im not one of you (Nexus 6p-users), but I thought we android people stick together and the know-how here in this thread (for purenexus) is waaaaay deeper than in our world (nexus5). So please dont flame me to go to the hammerhead thread <3
[Nexus 6P Android Development] DEVILOPS 007:
Hi, sorry I didn't get back sooner as I've been busy but I did what you said and this is what I see. I'm not sure what I'm looking at exactly. Thanks!
[Nexus 6P Android Development] nathanchance:
Looks as it should. I'd do a full force sync then try building again.
[Nexus 6P Android Development] DEVILOPS 007:
Okay thanks, if that doesn't work do you know what I can do because I have force synced before and had no problem with that. Only mka bacon causes issues for me.
[Nexus 6P Android Development] nathanchance:
Well there isn't a Hammerhead building thread so no flame from me ;)

Hmmmm that's odd, did you run the brunch command from the top of your Pure Nexus repo?
[Nexus 6P Android Development] BIade:
Oh thank you soo much for answering me <3

Yes, did the brunch command in the same directory, as the repo init and repo sync.

Terminal-output:

root@blade-VirtualBox:~/pure2# . build/envsetup.sh
including device/google/dragon/vendorsetup.sh
including vendor/pure/vendorsetup.sh
including sdk/bash_completion/adb.bash
root@blade-VirtualBox:~/pure2# brunch hammerhead
including vendor/pure/vendorsetup.sh

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
PURE_VERSION=7.1.1-20170317-UNOFFICIAL
TARGET_PRODUCT=hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.8.0-41-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NOF27C
OUT_DIR=/home/blade/pure2/out
============================================
make: *** No rule to make target 'bacon'. Stop.

#### make failed to build some targets ####

real	0m0.020s
user	0m0.000s
sys	0m0.000s
root@blade-VirtualBox:~/pure2#

If you need anything, just tell me. You can have root access on my main computer. (via teamviewer or whatever you want)
[Nexus 6P Android Development] DEVILOPS 007:
I have that same problem with Chads uber ROM. Did you figure it out?
[Nexus 6P Android Development] BIade:
No mate, im feeling so stupid. I tried 1000 different things without success. If I somehow manage it, I will inform asap.

I hope that our god ( [MENTION=6842057]The Flash[/MENTION] ) helps us :)
[Nexus 6P Android Development] DEVILOPS 007:
Cool, thanks. After I had done everything including repo sync I did source build/envsetup.sh then breakfast then 2 for angler then mka bacon is causing me the problem.
[Nexus 6P Android Development] nathanchance:
[MENTION=268386]blade[/MENTION] [MENTION=7494055]DEVILOPS 007[/MENTION] I'm sorry but I don't know what's going on... Both of those ROMs have the bacon command. What OS are you guys on? Have you taken any package updates lately?
[Nexus 6P Android Development] DEVILOPS 007:
Everything generally seems fine until I enter "mka bacon". I've posted a few logs of the output and haven't got an answer that has fixed it so far. Here's a link to what the terminal does and says. https://www.dropbox.com/s/3ekx06ir2116dq0/Chads Uber build errors?dl=0
[Nexus 6P Android Development] BIade:
Im using virtualbox on a Win7 host with a ubuntu 16 guest.

I think its due to the local_manifest i am using. Do you see any errors in that?

What I found:

1) the local manifest removes all unessessary devices, but keeps devices/google/dragon

2) the folder devices/lge/hammerhead does not contain a vendorsetup.sh

Thank you soo much for taking the time for a nap like me <3

Cheers

Blade
[Nexus 6P Android Development] AzraelsKiss:
I'm sorry... I know you said there is no possible way it could be connectivity issue, but I still say it's a connectivity issue. Most likely, your connection to gitlab is timing out because your client is trying to download too much at one time. I don't know if it's the server being overloaded or what, but it may be a random issue that you need just keep trying, or you may need to slow down your sync with 'repo sync -j1', or if you're using VirtualBox, you may need to configure it for bridged network, instead of NAT.

If you cannot find a way to resolve the issue, you may be able to build without GApps and flash GApps separately, but the new builds are designed to use the built-in GApps. Good luck!

Have a good one!
[Nexus 6P Android Development] pvtjoker42:
disregard... I'm blind..
[Nexus 6P Android Development] Fralund:
Hmm, this is a bit embarrasing.... I was just about to say that it's not likely that it's a connectin issue since I get the same error on both my work network and at home, but now it synced just fine at home. So it might very well be a connection issue at work, I will look into that.

Thank you for your time.
[Nexus 6P Android Development] AzraelsKiss:
The vendorsetup.sh is in the vendor/pure installed by the new manifest. Have you tried contacting [MENTION=5293805]GtrCraft[/MENTION] for assistance? I'm guessing it's related to the custom manifest and he may have some details that need to be looked at to get it to work properly.

Have a good one!
[Nexus 6P Android Development] DEVILOPS 007:
Hi flash, I don't mean to pester you or anything but was just wondering if you had any idea what was causing my issue and anything I can do about it. Thanks, I am constantly wiping everything and trying to get this to work but mka bacon is causing an issue every time.
[Nexus 6P Android Development] AzraelsKiss:
You've got an out-of-memory error. If you read the error in your log file, you will see that it recommends you increase the heap size. If you had read the OP, you would have seen that it recommends to read these two links for advice on your error:

http://xdaforums.com/showpost.php?p=68814797&postcount=13018

http://xdaforums.com/showthread.php?p=68675629

Be aware that if you don't have enough memory on your build box, there isn't much that can be done to force the build to complete (Google recommends 16GB, but some has had luck building with less). Good luck!

Have a good one!
[Nexus 6P Android Development] DEVILOPS 007:
I highly appreciate that mate, thank you. I am a complete noob at this and I've never done programming or coding except very basic python at school. From now on I'll look more into the errors and stuff. Thanks a lot for that! :D