yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] RMarkwald:
I would suggest trying to build using 4.8 only. I've had a similar issue with 4.9, where the error is kernel related but doesn't really give any good information as to what is going wrong.

When using GCC 4.8 (and up I believe), you'll want to implement that ART fix.
[Android Software/Hacking General [Developers Only]] MattBooth:
Has anyone else managed to get stuck on this error for the i9505?

out/target/product/jflte/obj/SHARED_LIBRARIES/hwcomposer.msm8960_intermediates/hwc_fbupdate.o:hwc_fbupdate.cpp:function qhwc::FBUpdateLowRes::preRotateExtDisplay(hwc_context_t*, hwc_layer_1*, overlay::utils::Whf&, hwc_rect&, overlay::utils::eMdpFlags&, int&): error: undefined reference to 'qhwc::configRotator(overlay::Rotator*, overlay::utils::Whf&, overlay::utils::Whf const&, overlay::utils::eMdpFlags const&, overlay::utils::eTransform const&, int const&)'
out/target/product/jflte/obj/SHARED_LIBRARIES/hwcomposer.msm8960_intermediates/hwc_fbupdate.o:hwc_fbupdate.cpp:function qhwc::FBUpdateLowRes::preRotateExtDisplay(hwc_context_t*, hwc_layer_1*, overlay::utils::Whf&, hwc_rect&, overlay::utils::eMdpFlags&, int&): error: undefined reference to 'qhwc::updateSource(overlay::utils::eTransform&, overlay::utils::Whf&, hwc_rect&)'
out/target/product/jflte/obj/SHARED_LIBRARIES/hwcomposer.msm8960_intermediates/hwc_fbupdate.o:hwc_fbupdate.cpp:function qhwc::FBUpdateLowRes::prepare(hwc_context_t*, hwc_display_contents_1*, int): error: undefined reference to 'qhwc::configMdp(overlay::eek:verlay*, overlay::utils::PipeArgs const&, overlay::utils::eTransform const&, hwc_rect const&, hwc_rect const&, MetaData_t const*, overlay::utils::eDest const&)'
out/target/product/jflte/obj/SHARED_LIBRARIES/hwcomposer.msm8960_intermediates/hwc_fbupdate.o:hwc_fbupdate.cpp:function qhwc::FBUpdateLowRes::configure(hwc_context_t*, hwc_display_contents_1*, int): error: undefined reference to 'qhwc::configMdp(overlay::eek:verlay*, overlay::utils::PipeArgs const&, overlay::utils::eTransform const&, hwc_rect const&, hwc_rect const&, MetaData_t const*, overlay::utils::eDest const&)'

There's a suggestion to add -Os to the local cflags for hwcomposer's mk file.... but it doesn't change.

I'm trying Linaro 4.8 now, but I'm not confidence. Been building for hours tonight. The same config builds fine for the i9300
[Android Software/Hacking General [Developers Only]] RMarkwald:
Yep. Post 423 and 424:

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

Sent from my Moto X

---------- Post added at 08:41 PM ---------- Previous post was at 08:39 PM ----------

Sent from my Moto X
[Android Software/Hacking General [Developers Only]] MattBooth:
Thanks, I checked those posts. But, the functions that my error throws do not have "inline" before them.

bool FBUpdateLowRes::preRotateExtDisplay(hwc_context_t *ctx,
hwc_layer_1_t *layer,
ovutils::Whf &info,
hwc_rect_t& sourceCrop,
ovutils::eMdpFlags& mdpFlags,
int& rotFlags)

Is one example.

EDIT:

Realised my mistake. I was putting the -Os CFLAG in /hardware/libhardware/hwcomposer and not those qcom files. I did that and the build finished. But, didn't boot, froze on the pre-boot animation, so I'm guessing there's some kernel issues. Going to try a clean build tomorrow, before reverting to some known good parameters.
[Android Software/Hacking General [Developers Only]] bigsupersquid:
try gcc 4.7 on the kernel, mine will build with even 4.9 but won't boot built with anything over 4.7...

I like flashing a known good kernel in recovery over a boot.img that won't boot, to check if the kernel is the problem, or something else in the build.
[Android Software/Hacking General [Developers Only]] MattBooth:
This is the "known good" configuration for the ROM: https://github.com/AOSP-S4-KK/platform_device_samsung_jflte/blob/kk-4.4/BoardConfig.mk#L38 Which in Linaro 4.9 on the kernel.

I tired a clean build today. No luck. Won't boot, not even with Ktoonsez kernel for the i9505. I'll back down to 4.8 for Android and see if that changes.
[Android Software/Hacking General [Developers Only]] MattBooth:
I changed to Linaro 4.8 for Android (stuck with 4.9 for the kernel) and it boots :) Thanks all for the help

However, anyone found this in the images below? A portion of the glowpadview is missing and there is an extra line of dots towards the lock icon. It occurs on my S3 and S4 builds using the O3 flags and so on.
[Android Software/Hacking General [Developers Only]] McDope:
Have the same, thought it is caused by some code change because it didn't occur when I started building with these flags. But then again, could be the switch from O3 to Ofast maybe (edit: flags from 3.1 commit)?
[Android Software/Hacking General [Developers Only]] MattBooth:
These are the optimisations I used: https://github.com/UltimaAOSP/platform_build/commit/b1fc60d0945d8c1a01d6a24e4883dd8ba7dca24f

I've also had this FC with my settings app:

06-26 15:25:38.809 F/libc (3638): Fatal signal 7 (SIGBUS) at 0xbecf454c (code=1), thread 3638 (ultima.settings)

It's short because I'm on my phone.
[Android Software/Hacking General [Developers Only]] F4k:
It's caused by v3.1 optimizations, I can confirm this, I'd reverted to v3 and glowpad it's fine now, I think that is the -Ofast flag.
[Android Software/Hacking General [Developers Only]] JustArchi:
There's a reason why 3.1 is not announced here :p.

Don't use it, I reverted back to V3 as well.
[Android Software/Hacking General [Developers Only]] azoller1:
When I cherry pick the commit, do I also have to use your repos also? Because I saw on your local manifest file that you had some source repos for archidroid tool chain, like android build and art folders
[Android Software/Hacking General [Developers Only]] JustArchi:
As commit says, after applying it you only need to have proper toolchain. My roomservice.xml includes some examples.
[Android Software/Hacking General [Developers Only]] the.emilio:
OK. So trying to include this in my AOSP build. I was trying to locate remoteservice.xml but there is no /local_manifest folder in ./repo. All i see are the following folders... /manifests.. /manifests.git.. /project-objects.. /projects.. /repo.. and individual files named manifest.xml, project.list and .repopickle_fetchtimes. Is /local_mainfest/roomservice.xml specific to CM based builds? Or would I just create the directory /local_manifest and create roomservice.xml with the tool chain lines? Thanks in advance!
[Android Software/Hacking General [Developers Only]] JustArchi:
Exactly, just create it. AOSP doesn't contain local manifest, it's specific to custom ROMs.
[Android Software/Hacking General [Developers Only]] the.emilio:
So trying to cherry-pick the commit but keep getting fatal: bad object 0cf89401cc8092dda959b5746ec4899fda756cec

Changed my dir in terminal to /build, ran git fetch https://github.com/JustArchi/android_build.git then git cherry-pick 0cf89401cc8092dda959b5746ec4899fda756cec

Am I missing something?? Thats how I have done it in the past.
[Android Software/Hacking General [Developers Only]] JustArchi:
You didn't specify branch in git fetch. Also, before using this commit you should already be experienced with that, otherwise you'll have bigger problems really soon ;).
[Android Software/Hacking General [Developers Only]] micr0g:
Hello [MENTION=5161352]JustArchi[/MENTION] i was able to build CM for Hammerhead with your's optimizations.

But when it goes to boot logo it restart again,one time i was able to see the welcome screen but it rebooted again.

I tried to install a different kernel (ElementalX cm version) and it works fine.

I use your linaro toolchain 4.8 .With 4.7 i have no problem.

You think if i add your comits for " Not booting kernel" it will fix it?

Now i'm trying to fix ART with your commit.

Sorry for my noobish but i just start to learning from 0

Thanks for your awesome work:)
[Android Software/Hacking General [Developers Only]] Zeljko1234:
I'm running roms with those optimization on two of my devices (Razr and G Pad) and must say to all skeptics, it works! And works so damn well!

Thank you JustArchi!
[Android Software/Hacking General [Developers Only]] JustArchi:
Apply memset fixes and try again.
[Android Software/Hacking General [Developers Only]] micr0g:
Hello

I tried to fix the non boot from kernel with your fixes but still can't make it work,so i'll try your Hybrid 4.8/4.7
[Android Software/Hacking General [Developers Only]] Amplificator:
I'm trying to build a rom with the v3 optimizations in the first post, but I get this error:

target thumb C: libmmcamera_interface <= hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c: In function 'mm_camera_stop_zsl_snapshot':
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:1612:23: error: 'value' is used uninitialized in this function [-Werror=uninitialized]
control.value = *value;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:680:13: note: 'value' was declared here
int32_t value;
^
cc1: all warnings being treated as errors
build/core/binary.mk:512: recipe for target '/home/amp/DirtyUnicorns/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o' failed
make: *** [/home/amp/DirtyUnicorns/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o] Error 1
make: *** Waiting for unfinished jobs....

real 11m40.810s
user 28m37.696s
sys 8m25.976s

Any suggestions?
[Android Software/Hacking General [Developers Only]] icoolguy1995:
I think they are only warnings, you can get pass it using -w flag. Not sure though.
[Android Software/Hacking General [Developers Only]] Amplificator:
I tried adding -w to KBUILD_CFLAGS in kernel/lge/hammerhead/Makefile but I still get the same error?
[Android Software/Hacking General [Developers Only]] :
sabermod prebuilds

i've builded new sabermods last night, thought i share them with you guys

arm-eabi-4.8

arm-eabi-4.9

arm-eabi-4.10

arm-linux-androideabi-4.8

arm-linux-androideabi-4.9

arm-linux-androideabi-4.10

:laugh:
[Android Software/Hacking General [Developers Only]] micr0g:
Hello

i have the following error when i'm trying to build with Sabermod 4.8

http://pastebin.com/759DdbiF

Everything is fine when i build with LInaro or Google's toolchain.

Any help?
[Android Software/Hacking General [Developers Only]] RMarkwald:
Try this: https://github.com/DJL10-2/android_external_bash/commit/1ff746e4ce40ed7b58598b63f05b036f5b2b3120

Just remove those lines from your unicode.c file in your local repo. This worked for me.
[Android Software/Hacking General [Developers Only]] micr0g:
Thank you,trying right now:)

Edit:It works
[Android Software/Hacking General [Developers Only]] RMarkwald:
It was mentioned way earlier in this thread, but there wasn't a direct link to the commit. I cannot remember who posted the fix here, but I thought I would post the direct link so that it will help others as well.
[Android Software/Hacking General [Developers Only]] Amplificator:
I solved my previous errors but now I've run into this problem.

It's right near the end of the build.

target Strip: libgui (/home/amp/DirtyUnicorns/out/target/product/hammerhead/obj/lib/libgui.so)
target Strip: libskia (/home/amp/DirtyUnicorns/out/target/product/hammerhead/obj/lib/libskia.so)
target SharedLib: libRS (/home/amp/DirtyUnicorns/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libRS_intermediates/LINKED/libRS.so)
Install: /home/amp/DirtyUnicorns/out/target/product/hammerhead/system/lib/libgui.so
/home/amp/DirtyUnicorns/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libRS_intermediates/rsAdapter.o:frameworks/rs/rsAdapter.cpp:function __clang_call_terminate: error: undefined reference to '__cxa_begin_catch'
/home/amp/DirtyUnicorns/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libRS_intermediates/rsAdapter.o:frameworks/rs/rsAdapter.cpp:function __clang_call_terminate: error: undefined reference to 'std::terminate()'
Install: /home/amp/DirtyUnicorns/out/target/product/hammerhead/system/lib/libskia.so
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/shared_library.mk:81: recipe for target '/home/amp/DirtyUnicorns/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libRS_intermediates/LINKED/libRS.so' failed
make: *** [/home/amp/DirtyUnicorns/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libRS_intermediates/LINKED/libRS.so] Error 1
Copying: /home/amp/DirtyUnicorns/out/target/common/obj/APPS/PhotoTable_intermediates/classes-jarjar.jar
make: *** Waiting for unfinished jobs....
warning: no entries written for dimen/search_view_text_min_width
warning: no entries written for dimen/dialog_min_width_major
warning: no entries written for dimen/dialog_min_width_minor
warning: no entries written for dimen/preference_widget_width

Any suggestions?
[Android Software/Hacking General [Developers Only]] fusionjack:
try to disable the 'schedule-insns2' flag like this:

https://github.com/SlimSaber/kernel_samsung_smdk4412/commit/8f0d67eec26f23d1463b8aa91c153061c8bc2322
[Android Software/Hacking General [Developers Only]] micr0g:
Thank you guys,great support. [MENTION=1228651]fusionjack[/MENTION] it works!
[Android Software/Hacking General [Developers Only]] McDope:
Unrelated, but...

Totally unrelated to this commit, but since so much knowledge hangs around here I'm asking anyway... :D

My kernel refuses to stick to CONFIG_CPU_FREQ_DEFAULT_GOV_* settings, no matter which governor get set as default, the phone boots with interactive. Anybody have an idea what could cause that?

(source @ https://github.com/mcdope/android_kernel_sony_apq8064/commits/cm-based2, config @ https://github.com/mcdope/android_k...d2/arch/arm/configs/cm_fusion3_yuga_defconfig)
[Android Software/Hacking General [Developers Only]] JustArchi:
Check your ramdisk, mostly init.rc, init.yourboard.rc and all init.*.rc in / directory. Also check if you don't have any magic init.d tweaks in /system/etc/init.d.
[Android Software/Hacking General [Developers Only]] McDope:
Thanks, init.qcom.rc from android_device_sony_fusion3-common overwrote it.
[Android Software/Hacking General [Developers Only]] KcLKcL:
After trying to make it work in the last 2 days, finally I successfully build CM11 for my Nexus 4 with this commit. At first I tried Linaro 4.8 from JustArchi's GitHub, it wasn't working. And then I tried Google's GCC 4.8 as well, from JustArchi GitHub, and it still won't work either. Reading the thread, [MENTION=5161352]JustArchi[/MENTION] said if 4.8 didn't work, then change target gcc version to 4.7. So I tried to build using Google's GCC 4.7, and after 11 hours (yea I'm building in a Lubuntu VM, using Intel Core i3 with 4GB RAM allocated to VM + 16GB Swap lol).. It builds!

Result? Everything is FASTER. Dalvik is almost as fast as ART now. It's only a bit slower on opening apps (because yea, it needs to compile first). Then I switched to ART, and I noticed that generating the "ART cache" is MUCH MUCH FASTER now. It is indeed, you may say it's a placebo but I remember when I did a clean install of another ROM and immidiately switch to ART like I did with my build now, it took longer than with this optimization.

JustArchi, you are awesome.

I wish I could build with GCC 4.8.. But whatever, at least I've got a fast phone right now!

Also as you recommend, I brunch'd as cm_mako-user instead of cm_mako-userdebug. The ROM is unrooted but I flashed SuperSU and I got root instantly. No problems so far :D. I'll share my build later if I found no bugs :)

Oh, also guys I'd like to ask something. Since this is my first time building a ROM, and I'm so noob at git (and I'm actually learning git now because of this XD), how can I keep this commit when I do repo sync? When I repo sync, this commit keeps getting reversed and I had to cherry-pick again. When I google'd, they say git is smart enough to reapply the commit, but in fact my commit always gets reversed.
[Android Software/Hacking General [Developers Only]] JustArchi:
If you want to patch koush's Superuser to run also on user builds and not only userdebug, apply this commit from me:

https://github.com/JustArchi/Superuser/commit/6ea3b3eff4122c62a9d7b5c8b37219a61ea0298f
[Android Software/Hacking General [Developers Only]] bigsupersquid:
in your rom source base directory,

cd build

git checkout -b mybranch

<cherry-pick here>

when you repo sync, it will say 'branch mybranch does not track upstream' and leave it.

to get it back, and fetch/merge (pull) recent changes,

cd build

git checkout mybranch

git pull github cm-11.0

assuming the default branch in the repo for android_build is cm-11.0, and that its remote name is github.

you can get that info from .repo/manifest.xml

and, I too have to use gcc 4.7, any 4.8 I tried causes me linker errors and other weirdness even though it does build without error.
[Android Software/Hacking General [Developers Only]] azoller1:
I applied the art fix for the 4.8 GCC toolchain but still stuck at boot
[Android Software/Hacking General [Developers Only]] Shalzz:
Just built with the optimization for moto g and I don't see any apparent improvement after a days use but i guess the benchmarks will show a better performance.

Did u build after a make clean?

or just build the art module with mm -B
[Android Software/Hacking General [Developers Only]] azoller1:
i already built the rom with the commit and everything, and then i put in the art fix commit and built with make installclean, do i have to make clean just for the art fix?
[Android Software/Hacking General [Developers Only]] Vynikal:
My kernel built with Linaro just can't boot at all, not even enter CWM. With GCC 4.8 everything works just fine, but Linaro 4.8+ still resists.

I have applied:

- Archi's V3

- Fix to build - https://github.com/Christopher83/sa...mmit/f05a5a5fdf2b15ec130e22528bfe64065bbb1360

- Those two memset fixes.

Still can't boot. Now I am trying this https://github.com/Christopher83/sa...mmit/a0a90f91dd2cee3adf0a1650d286c7b14a0141f3

but doesn't seem to be the fix. Any help?
[Android Software/Hacking General [Developers Only]] fusionjack:
your device probably is using a same partition for kernel and recovery. so if kernel cannot boot, you also cannot boot to recovery.

try to add this: http://xdaforums.com/showpost.php?p=53886826&postcount=542
[Android Software/Hacking General [Developers Only]] Vynikal:
Yes, that's true, same partition. I will try it, thanks for response.

EDIT: Still not working :(
[Android Software/Hacking General [Developers Only]] KcLKcL:
Any idea on how to cherry-pick this? I don't have Superuser repo in my local sources :eek:

Or maybe I'm missing something..

Nevermind, actually it's in <sourcerootdir>/external/koush/Superuser/Superuser/jni lol >_<
[Android Software/Hacking General [Developers Only]] RMarkwald:
I believe it's in the folder called external/koush/Superuser.

Sent from my Moto X
[Android Software/Hacking General [Developers Only]] KcLKcL:
Yeah thanks for the reply, I just found out as you replied to my post haha, thanks a lot man
[Android Software/Hacking General [Developers Only]] pandasa123:
Can somebody help me with this? I'm building CM, using the gcc toolchain 4.8. http://pastebin.com/4gZdDf7K
[Android Software/Hacking General [Developers Only]] xboxfanj:
If the size of your zImage is larger with Linaro (and too big for your boot partition), you may want to try XZ compression if you haven't already.
[Android Software/Hacking General [Developers Only]] Vynikal:
I use lzo, anyway, the boot.img is almost exactly the same as with GCC.
[Android Software/Hacking General [Developers Only]] JustArchi:
I agree with this, XZ probably gives best speed/size ratio, especially because it's doing very well with pure binary code.

However keep in mind that some bootloaders don't go along with this, i.e. my SGS3 can't support XZ properly because bootloader can't parse it during unpacking, so beware.
[Android Software/Hacking General [Developers Only]] xboxfanj:
That's odd. Never seen that before. It's worked on my last three phones: Galaxy S, Optimus G, and my current: M8.
[Android Software/Hacking General [Developers Only]] RMarkwald:
How would one change to XZ compression?

Sent from my Moto X
[Android Software/Hacking General [Developers Only]] KcLKcL:
Oh yeah! Finally I managed to build the ROM with GCC 4.8! ART works too after applying the fix for GCC 4.8. Although I had to use GCC 4.7 for the kernel (arm-eabi) by symlinking the 4.7 arm-eabi folder and name it arm-eabi-4.8 because with GCC 4.8 it just won't compile.

But, I still can't get SuperUser build into the ROM even after applying This Commit, any idea? Rooting with SuperSU zip still works fine though =]
[Android Software/Hacking General [Developers Only]] JustArchi:
Superuser works fine for me.

You can always switch back to "userdebug" build, or try to analyze logcat, Koush was kind enough to log much.
[Android Software/Hacking General [Developers Only]] MeloEbbasta:
is recommended to apply Archi's optimizations in a sbable rom (for example m8)?
[Android Software/Hacking General [Developers Only]] micr0g:
I have to say that the speed difference on my Hammerhead with Archi's optimizations is noticeable.

i have build 3 roms, CM,AOKP,AOSP.

CM was a bit faster than stock CM but AOKP and AOSP was a lot faster on opening apps and overall smoothness, also i take bigger scores on benchmarks.

Thank you [MENTION=5161352]JustArchi[/MENTION] for your efforts.

I hope i could build with -O3 on TARGET_thumb_CFLAG.
[Android Software/Hacking General [Developers Only]] thesebastian:
Good news.

One question, do you have that AOSP build published or something? I have plans to downgrade from L preview to 4.4.4, and a build with this optimization would be nice to try.

Sent from my Nexus 5
[Android Software/Hacking General [Developers Only]] micr0g:
Sure, you can find them here https://www.mediafire.com/folder/hqwjbyg8x9bd5/JustArchi_Linaro_4.8
[Android Software/Hacking General [Developers Only]] xboxfanj:
In defconfig, change CONFIG_KERNEL_GZIP=y to # CONFIG_KERNEL_GZIP is not set

or whatever the current CONFIG_KERNEL compression is, could be LZMA or LZO or LZ4, etc.

and change # CONFIG_KERNEL_XZ is not set to CONFIG_KERNEL_XZ=y
[Android Software/Hacking General [Developers Only]] JustArchi:
This doesn't always match the rest of the dependencies. I suggest using make menuconfig.
[Android Software/Hacking General [Developers Only]] azoller1:
Also not all kernels have xz in the source, so you might need to find the patch file for xz compression, i have it on my github somewhere
[Android Software/Hacking General [Developers Only]] xboxfanj:
I believe all 3.4 kernels do.
[Android Software/Hacking General [Developers Only]] azoller1:
Weird, because I think cm's kernel for the tf300t doesn't have it
[Android Software/Hacking General [Developers Only]] nasty007:
[MENTION=5161352]JustArchi[/MENTION] is the linaro and weird playstore icons still present?
[Android Software/Hacking General [Developers Only]] JustArchi:
Yup, at least for me.
[Android Software/Hacking General [Developers Only]] KcLKcL:
Anyone here building ROM with SaberMod 4.8? I'd like to know if Google Camera's Lens Blur is giving FC on SaberMod 4.8 (Because it's Force Closing on GCC 4.8, to reproduce the FC, take a proper Lens Blur photo with Google Camera, and wait for the render, it'll FC during the rendering progress and the pic won't get saved).

If no one builds with SM 4.8, does anyone here have a SM 4.8 Toolchain that I can use straight away? I'm very confused with the SM Toolchain from the SaberMod GitHub lol), also I'd like SM 4.7 too if anyone have it :)
[Android Software/Hacking General [Developers Only]] sidneyk:
I'm building with SM 4.8, both rom and kernel on Omnirom for Asus TF101 tablet. I can't answer about the Google camera, but you can get the 2 4.8 tool chains from SM github, just look for the prebuilts, a page or 3 into his repo list.
[Android Software/Hacking General [Developers Only]] KcLKcL:
Oh yeah, thanks a lot, going to compile with SM 4.8 tonight and see if it can fix the Google Camera problem. Fingers crossed.
[Android Software/Hacking General [Developers Only]] manuel1992:
ok. I would consider to sell this to google :laugh: