yashsingh1/xdaforums huggingface dataset:
[RAZR HD Original Android Development] skeevydude:
If anyone want's to build PAC with a 3.4 kernel, here's my local manifest. Don't use gcc 4.9 yet, has out of memory bugs with android/dalvik (used all of my 8 gigs of ram and crashed).

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- REMOTES -->
<remote name="linaro" fetch="git://android.git.linaro.org/" />

<!-- REMOVALS -->
<remove-project name="android_art" />
<remove-project name="android_bootable_recovery" />
<remove-project name="android_build" />
<remove-project name="android_dalvik" />
<remove-project name="android_hardware_qcom_display-caf" />
<remove-project name="android_system_vold" />
<remove-project name="android_vendor_pac" />
<remove-project name="platform/ndk" />
<remove-project name="platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7" />
<remove-project name="platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7" />

<!-- ADDS -->
<!-- ARCHIDROID LINARO TOOLCHAINS -->
<project name="JustArchi/Linaro" path="prebuilts/gcc/linux-x86/arm/arm-eabi-4.7" remote="github" revision="4.7-eabi" />
<project name="JustArchi/Linaro" path="prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7" remote="github" revision="4.7-androideabi" />
<project name="JustArchi/Linaro" path="prebuilts/gcc/linux-x86/arm/arm-eabi-4.8" remote="github" revision="4.8-eabi" />
<project name="JustArchi/Linaro" path="prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8" remote="github" revision="4.8-androideabi" />
<project name="JustArchi/Linaro" path="prebuilts/gcc/linux-x86/arm/arm-eabi-4.9" remote="github" revision="4.9-eabi" />
<project name="JustArchi/Linaro" path="prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9" remote="github" revision="4.9-androideabi" />

<!-- Google 4.8 TOOLCHAIN -->
<!-- Uncomment the two lines, comment out both Linaro 4.8s, then repo sync to change toolchains -->
<!-- <project name="platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8" path="prebuilts/gcc/linux-x86/arm/arm-eabi-4.8" remote="aosp" revision="master" />
<project name="platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8" path="prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8" remote="aosp" revision="master" /> -->

<!-- LINARO -->
<project path="ndk" name="platform/ndk" remote="linaro" revision="refs/tags/android-4.4.3_r1.1" />

<!-- MY MODIFIEDS -->
<project name="skeevy420/android_art" path="art" remote="github" revision="pac-4.4" />
<project name="skeevy420/android_bootable_recovery" path="bootable/recovery" remote="github" revision="pac-4.4" />
<project name="skeevy420/android_build" path="build" remote="github" revision="pac-4.4" />
<project name="skeevy420/android_dalvik" path="dalvik" remote="github" revision="pac-4.4" />
<project name="skeevy420/android_hardware_qcom_display-caf" path="hardware/qcom/display-caf" remote="github" revision="pac-4.4" />
<project name="skeevy420/android_system_vold" path="system/vold" remote="github" revision="pac-4.4" />
<project name="skeevy420/android_vendor_pac" path="vendor/pac" remote="github" revision="pac-4.4-HD-test" />
</manifest>
[RAZR HD Original Android Development] Zeljko1234:
Have you built it? If yes, you may post link somewhere. Probably is better to CM11 topic, more people will see it and someone with updated phone to 4.4.2 will test it.
[RAZR HD Original Android Development] skeevydude:
Yes. Posted the build in PAC's thread over at RAZR HD Development.

I don't wanna post a non-CM rom in the CM thread.
[RAZR HD Original Android Development] Zeljko1234:
OK, thx. I have to start to follow one more thread :)
[RAZR HD Original Android Development] CWGSM3VO:
Ok, so I built 06-16 with Linaro 4.8 + optimized toolchain + NDK. Got the highest scores in Quadrant I've ever seen running CM11. Still playing with it all, but so far, so good. Thanks again [MENTION=4487948]skeevydude[/MENTION] for the XML hints.
[RAZR HD Original Android Development] CWGSM3VO:
This is what I still can't quite figure out. It works in some cases, not in others. A good example is [MENTION=4825437]Christopher83[/MENTION] linaro git, I couldn't add it/fetch it no matter how I drilled into the git pages. Can you provide more information on how to properly pick these tags for a manifest? Using the above example works fine for me as I crawled all over the Linaro git and couldn't find anything like that to put together the above line.
[RAZR HD Original Android Development] CWGSM3VO:
Not sure if it's necessary but for the Linaro NDK, check docs/texts/CHANGES.txt. There's an environment variable to export to force usage of GCC 4.8 (although, the toolchain is hardcoded in my base, I'm trying it anyways).
[RAZR HD Original Android Development] CWGSM3VO:
Managed to lay my hands on LLVM/CLANG 3.4 from Qualcomm optimized for Snapdragon SoCs. Going to try it out :)

EDIT: cool, it supports -mcpu=krait and understands that the NEON/SIMD is 128bit not 64bit wide.

EDIT: Link is here: http://broodplank.net/files/index.php?dir=&sort=name&order=desc otherwise you have to sign up with Qualcomm to download it.
[RAZR HD Original Android Development] Zeljko1234:
Looking forward for impression and download link :)
[RAZR HD Original Android Development] CWGSM3VO:
I'm not sure if I can make an impression or not. The LLVM/CLANG docs Qualcomm provides says it's a direct replacement for the NDK which I'm pulling down 4.4.4_r1 from Linaro. I've exported my NDK_TOOLCHAIN_VERSION and dropped the Qualcomm bits into place in the NDK and building as we speak. From the looks of it, it *seems* like CM is building their own LLVM and using a prebuilt CLANG so I'm not 100% sure how to inject this into the build environment other than through the NDK.
[RAZR HD Original Android Development] Zeljko1234:
Would be nice if you can make impression of rom when you tested. Is it for old bl and kernel? Maybe I can find time to test too.
[RAZR HD Original Android Development] CWGSM3VO:
Still working off the pre-kitkat bl+kernel.

EDIT: Not sure how this guy "did it", but see this reference:

http://xdaforums.com/showpost.php?p=53425219&postcount=619
[RAZR HD Original Android Development] Zeljko1234:
Ask him, looks that he's willing to help. Have you built it successfully?
[RAZR HD Original Android Development] CWGSM3VO:
Yup, just flashed it. So far so good. Unsure if it used the qualcomm bits at all yet (if at all).
[RAZR HD Original Android Development] Zeljko1234:
Faster, slower, the same? Could you upload it?
[RAZR HD Original Android Development] CWGSM3VO:
So far it seems the same to me. Running CFBench now to get a general idea. I can upload it somewhere, let me work it out in a bit here.

EDIT: I think I can hardcode llvm/clang by editting build/core/llvm_config.xml and point it to the qualcomm bits

EDIT EDIT: This is exactly where it pulls the bits from. So CM builds their own llvm/clang and drops them in the out/ path to later be used I'm guessing. --update: I think it's now compiling with the qualcomm bits --update: fell over
[RAZR HD Original Android Development] CWGSM3VO:
I think I found how to integrate the qualcomm bits into the build, got the clue from browsing the Vanir repo. See how it goes.
[RAZR HD Original Android Development] Zeljko1234:
I'm still waiting for download link...
[RAZR HD Original Android Development] CWGSM3VO:
See post #27 ;)
[RAZR HD Original Android Development] Zeljko1234:
First it bad idea to edit post to post link after you made several post after. Second, I was asking link for rom you built, not for... whatever it is :D

Maybe is there, but I just came from work and I don't see it.
[RAZR HD Original Android Development] CWGSM3VO:
Fair enough :) Here's the link: http://broodplank.net/files/snapdragon-llvm-3.4-compiler-linux64.tar.gz

I also found this repo (and a few others exactly the same):

<remote name="bart" fetch="https://github.com/bart452/" />
<project path="prebuilts/clang/linux-x86/host/msm-3.4" name="prebuilts_clang_linux-x86_host_msm-3.4" remote="bart" revision="master" />

This seems to be similar, but the first link is the x64 build but upon inspection, I believe they are the same bits.
[RAZR HD Original Android Development] Zeljko1234:
Are you kidding me or what? :D

ROM, flashable rom. You know, something you built, something what everyone can download, reboot into custom recovery, wipe and install. Usually is about 230 MB with .zip, not 73,1 MB with tar.gz :p
[RAZR HD Original Android Development] CWGSM3VO:
Crap... I kept missing this boat on this. For some reason I thought you were talking about where to get the bits. I can upload the build I thought was using the Qualcomm bits. I'll do this now and update this post. Download here: http://www.filedropper.com/cm-11-20140625-unofficial-motomsm8960
[RAZR HD Original Android Development] Zeljko1234:
I've asked you for ROM link at least 4 times today :D After all conversation we made, spend few more bytes of xda database for new post with link. Otherwise I need to periodically refresh this page :D
[RAZR HD Original Android Development] CWGSM3VO:
Blonde moment, what can I say? Here's to a few more bytes in the XDA DB :)
[RAZR HD Original Android Development] Zeljko1234:
Without link, again :D
[RAZR HD Original Android Development] CWGSM3VO:
Dude, I posted it :) Here it is again http://www.filedropper.com/cm-11-20140625-unofficial-motomsm8960
[RAZR HD Original Android Development] Zeljko1234:
LOL, in previous post you've edited. Few minutes ago, I thought that I lost my phone. Luckily, just left it in the car. Huh.
[RAZR HD Original Android Development] CWGSM3VO:
Just to follow up with the Qualcomm host bits. Found the cherry pick needed:

https://github.com/sudosurootdev/build/commit/75c707161f8a66abbee98ffe1b9cd4aca5ed2007

This will be needed with the earlier repo I posted earlier.
[RAZR HD Original Android Development] Zeljko1234:
So you're going to make new build? And post

link of rom

? ;)
[RAZR HD Original Android Development] CWGSM3VO:
Yes :)
[RAZR HD Original Android Development] Zeljko1234:
OK, then I will wait for new link :)
[RAZR HD Original Android Development] CWGSM3VO:
Currently building right now with the cherry-pick. Had to clean a few things up to fit it into CM nicely (basically, removing unused vars) but otherwise seems to be going smooth. I can't tell yet if it's using the Qualcomm LLVM/CLANG yet but I have noticed that during the build there's a lot less LLVM related messages that I would expect to see. I may not be far enough into the build yet to know for sure.

However, if I can't validate that it's using the bits, I won't upload anything. I think easiest test would be to rename the exec and re-run the build and see if it falls over (it should, if it's using the prebuilt version).
[RAZR HD Original Android Development] Zeljko1234:
Just remember to clear cc cache and make clobber or whatever you're doing.
[RAZR HD Original Android Development] CWGSM3VO:
Yup, I do that every time. Wish it was like more make-like in which I could just repo sync, make and it pulls in everything and rebuilds as necessary. Not sure if that happens if I brunch and repo sync and brunch again. But I usually do a make clean && ccache -C with a breakfast and brunch afterwards (between builds) -- just takes long in a VM (even allocating it 4 cores) to build.
[RAZR HD Original Android Development] Zeljko1234:
I was doing the same, just to be sure. Especially when you experiment with something new. What's few more minutes or hours of building if you can avoid strange behavior and building again to see is it build process or something else.
[RAZR HD Original Android Development] CWGSM3VO:
Agreed. It's still building and still unsure if it's using (or will use) the bits yet. Just waiting it out now.
[RAZR HD Original Android Development] CWGSM3VO:
OK, I think I finally got it using it. Build stopped complaining about -mtune=cortex-a15 which I've been using w/o issue up to now. I also used -Ofast and -mcpu=krait2 in llvm_config.xml as well w/o any kind of breakage in the build. I'm excited now to see it finish! :)
[RAZR HD Original Android Development] Zeljko1234:
I'm exited to see download link, hopefully not after long conversation :D:D:D

btw, thank you for your time digging into it.
[RAZR HD Original Android Development] CWGSM3VO:
It built. About to flash it now. It clearly used the Qualcomm bits for this. If all is good, I'll post a link.

---------- Post added at 03:47 PM ---------- Previous post was at 03:24 PM ----------

Can be downloaded here: http://www.filedropper.com/cm-11-20140626-unofficial-motomsm8960msm34

Build:

Linaro 4.4.4_r1 NDK w/Qualcomm Snapdragon LLVM/CLANG 3.4

Linaro GCC 4.8.3 (-O2/-Os -mfpu=neon-vfpv4 -mcpu=cortex-a15 -mtune=cortex-a15)

Linaro 4.8.3 Optimized Cortex-A15+NEON/VFPv4 toolchain (-O2/-Os -mfpu=neon-vfpv4 -mcpu=cortex-a15 -mtune=cortex-a15)

Qualcomm Snapdragon LLVM/CLANG 3.4 (-Ofast -mcpu=krait2 -march=armv7-a)

Oracle Java 1.7.0_60-b19

---------- Post added at 04:23 PM ---------- Previous post was at 03:47 PM ----------

I should note the biggest benefit I've seen so far using the toolchains, etc is battery life. Not so much that it's been extended but rather that the draw is less. Seems like apps spend less time doing this or that. Is it smoother? Seems so. Is it faster? Maybe. I noticed a few derps from the last build so I'm going to rebuild again here to make sure it doesn't alter any perceptions I already have.

EDIT: This build is DALVIK only. ART will boot-loop. See later in thread for ART capable builds.
[RAZR HD Original Android Development] Zeljko1234:
Kind a slow file hosting and without file size info during download, finally downloaded. Will test later, hopefully.

---------- Post added at 04:15 PM ---------- Previous post was at 03:35 PM ----------

ART doesn't work? Stuck on boot animation.

---------- Post added at 05:13 PM ---------- Previous post was at 04:15 PM ----------

Beside of ART, looks like that really works smoother. I'm missing some features from Carbon... Is there any black version of dialer/phone book?
[RAZR HD Original Android Development] CWGSM3VO:
Yeah ART bootlooped on me, I could see in logcat there were segfaults left and right. So dalvik only. As for color, you'd need to grab a theme. There's some that imitate the Dark Slim look on Play Store. I ended up doing a clean install because I couldn't get my calendar working (unrelated to ROM work) and it's quite speedy :)
[RAZR HD Original Android Development] Zeljko1234:
Yes, it is smoother! I haven's updated my phone for months so could be because of fresh installation (all apps are auto restored from play), CM11 (4.4.4) is more optimized in mean time and of course all tweaks you built in. Even browsing with FF is smoother.

Fanny is that Google is moving to ART and my experience with dalvik after long time is better. Apps installation is quicker and everything works smoothly. Would be great if you can manage to fix ART so we can compare.
[RAZR HD Original Android Development] Zeljko1234:
Seems that apps are more stable with Dalvik, at least CoPilot. It was crashing at the same place every time, now shows some big picture where to turn right.
[RAZR HD Original Android Development] CWGSM3VO:
I made a new build last night with more generalized opts, specifically falling back to -mfpu=neon (vs -mfpu=neon-vfpv4) and -mtune=krait2 (vs -mcpu; see docs) and I had a derp I fixed as well (specifically for llvm in where it transforms -mcpu=cortex-a15 to -march=armv7-a) and have been running it since around 6am this morning (it's 11am-ish as of this writing). Seems about the same perf-wise but I'm about to test ART here pretty quick. If that works, then I'll publish a link to the build.
[RAZR HD Original Android Development] Zeljko1234:
You have one testers, at least. Waiting for the worms (your carrier is Roger what's remind me to Roger Waters)
[RAZR HD Original Android Development] CWGSM3VO:
I own a Roger Waters shirt actually ;) Concerts.
[RAZR HD Original Android Development] Zeljko1234:
I can proudly say that I saw all of them live. First the Pink Floyd on the last tour, then Roger Waters on The Wall tour :)

Do you know that David and Roger are making new album? Not together, unfortunately.
[RAZR HD Original Android Development] CWGSM3VO:
My wife and bro-in-law saw the last tour here, I got the shirt :) To me it wasn't Floyd, so I didn't want to go. Heard it was a great show though.

ART boot-looped on me again. I should try a clean build w/o gapps and see if it works.

---------- Post added at 11:31 AM ---------- Previous post was at 11:28 AM ----------

Ok, so I'm doing a clean install w/o gapps. I'll get it booted and switch to ART. Still fighting issues with calendar (.ics) hanging my email (stock client) when trying to add to calendar so I'll be doing a few fresh installs today trying to find a gapps that works properly with this.
[RAZR HD Original Android Development] Zeljko1234:
It was great show!

I always switch to ART as soon as possible (clean rom) and use minimal gapps. Gapps should be compatible with it. Probably something else is not compatible.
[RAZR HD Original Android Development] CWGSM3VO:
I saw you post a link to the gapps you're using and mentioned they were older. Do you still have that handy? A quick search didn't turn up anything in the cm11 thread (which I think I saw you post it in)
[RAZR HD Original Android Development] Zeljko1234:
Of course, still on my gdrive as subfolder in Nexus 7 folder.
[RAZR HD Original Android Development] CWGSM3VO:
Even a clean install boot to ART loops. dex2oat is failing to generate the image for whatever reason. I have not tried an official nightly (6-27) to see if ART works with it. I'm almost about to abandon ART for now as I normally don't use it (until forced to anyways).

EDIT: Thanks for the gapps link. I think I've used this (looks like Banks GApps) as well, but I'll give it a shot.
[RAZR HD Original Android Development] Zeljko1234:
As I said several times, from my experience ART is not that good as supposed to be. I was using it since is introduced, first with n7, then Razr, g pad... and honestly the biggest difference is that apps are installing longer. Also some apps are not compatible or are unstable. Your build is noticeable faster than Carbon build (few months old) with ART.

Could you post the latest build?
[RAZR HD Original Android Development] CWGSM3VO:
Latest build: http://www.filedropper.com/cm-11-20140627-unofficial-motomsm8960
[RAZR HD Original Android Development] Zeljko1234:
105 KB/s

Gdrive is much faster.
[RAZR HD Original Android Development] CWGSM3VO:
It uploaded @ 12mbit, usually pretty quick for me D/L wise (got a 50mbit pipe)
[RAZR HD Original Android Development] Zeljko1234:
For my pipe speedtest shows 90mbps but rom is still downloading at 115kbps.

Edit: Doesn't matter, will download eventually.
[RAZR HD Original Android Development] CWGSM3VO:
I keep hitting I/O stalls of some kind. It always ends up halting the UI/input. I can mitigate it somewhat playing with the I/O scheduler + values but it's getting annoying.
[RAZR HD Original Android Development] Zeljko1234:
With the latest build? I haven't noticed that with yesterday's build. I was just going to update to the latest, maybe not :)
[RAZR HD Original Android Development] CWGSM3VO:
This has been going on for a while for me. It's like the sdcard (int/ext) is pegged because it's always during some kind of r/w operation. A good example is installing apps from Play and the entire UI freezes while it's installing for a 2-3 seconds. UI is plenty fast/smooth but I can't seem to do anything about the bottleneck/stalls which I believe are based in storage i/o requests.

May need to play with that a bit to see if I can smooth that out too.
[RAZR HD Original Android Development] Zeljko1234:
Interesting, when I flashed rom yesterday phone started to install/restore a lot of apps from play and I was surprised that UI is still very responsive. What's not the case with previous rom. Btw, I wiped all expect internal memory and sd card.
[RAZR HD Original Android Development] CWGSM3VO:
I haven't seen much of a difference there or in "benchmark" scores between builds. I've on 6-27 clean twice today and restored, it's what I expected to see performance-wise.

However, I think I might have figured out the stalls. I installed CoolTools from the Play Store and noticed the KSM daemon is constantly (and I mean constantly) soaking up cpu/io time. Either it's incorrectly tuned, or something with the build. I've disabled it for now (settings->perf) and rebooted and running a bit to see if it's the right answer.

EDIT: Looks like it, my bench scores are higher than previously whereas they were consistent between builds. Might have found my culprit.

EDIT: I should note these stalls were present even before I started messing with source/builds/etc. I always had KSM enabled too. I understand it's benefit but it's cycling too much it seems.
[RAZR HD Original Android Development] Zeljko1234:
I left it as is, means KSM on but I remember that was active in another rom I tried and drains battery. Just disabled it, will see.
[RAZR HD Original Android Development] CWGSM3VO:
I remember seeing the commit a long time ago (now) where it was enabled by default, didn't use to be. When it wasn't default, I always turned it on. But I also turned on force GPU, etc in developer options only to learn later not to *shrug* I'll run no-KSM for a while but for what I'm seeing since reboots, I haven't seen a single stall.
[RAZR HD Original Android Development] Zeljko1234:
I've turned it off but my phone lies (on the table) and dreams of green fields and rivers...
[RAZR HD Original Android Development] CWGSM3VO:
Gonna clean up the strict aliasing violations and recompile again tonight/tomorrow. Should give me some free extra speed.
[RAZR HD Original Android Development] Zeljko1234:
Ok, I will flash that build then. In mean time I'll check how it works with/without KSM.
[RAZR HD Original Android Development] Zeljko1234:
Literally I've started all apps I have on the phone and tried to stress it as much as possible. No lag (or hardly noticeable). The best experience with razr for now.

---------- Post added at 06:57 PM ---------- Previous post was at 06:46 PM ----------

I forgot to write, I still use yesterday's build (20140626) with KSM on. Many thanks for your hard work to figured out all those changes, cherry picks, libs, etc. It was worth it :)
[RAZR HD Original Android Development] CWGSM3VO:
Going well so far, only 3 makefiles to alter so far. I'm doing it the Linaro way :) See here:

https://bugs.launchpad.net/linaro-android/+bug/822113
[RAZR HD Original Android Development] Zeljko1234:
It's going to be too smooth :D
[RAZR HD Original Android Development] CWGSM3VO:
Up to 11 makefiles modified, not sure how far through the build I am as it's slow going :) Have to fix each one as I hit it and re-brunch. Once I get through that, a make clean and rebuild to validate I got them all.
[RAZR HD Original Android Development] Zeljko1234:
Great, keep your good work. In mean time I'm enjoying in your build as with new phone :)
[RAZR HD Original Android Development] CWGSM3VO:
While I tend not to, do you play any games on your phone? If so, how do they seem?
[RAZR HD Original Android Development] Zeljko1234:
Very rare but just installed Riptide GP2 and works smooth as everything else.