yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] :
Can someone help me with this error?

Notice file: external/sepolicy/NOTICE -- /home/yeshwanthvshenoy/archicyano/out/target/product/falcon/obj/NOTICE_FILES/src//root/file_contexts.txt
/home/yeshwanthvshenoy/archicyano/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../libexec/gcc/arm-linux-androideabi/4.8.x-sabermod/cc1: error while loading s
hared libraries: libisl.so.13: cannot open shared object file: No such file or directory
bionic/libc/crt.mk:95: recipe for target '/home/yeshwanthvshenoy/archicyano/out/target/product/falcon/obj/lib/crtbegin_static1.o' failed
make: *** [/home/yeshwanthvshenoy/archicyano/out/target/product/falcon/obj/lib/crtbegin_static1.o] Error 1
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (03:59 (mm:ss)) ####
yeshwanthvshenoy@srisurya95:~/archicyano$
[Android Software/Hacking General [Developers Only]] JustArchi:
No because you don't want to even read OP.
[Android Software/Hacking General [Developers Only]] Slimegod:
How do I fix this error http://pastebin.com/rjcMCJBw
[Android Software/Hacking General [Developers Only]] akhilnarang:
Toolchain path isn't set properly.
[Android Software/Hacking General [Developers Only]] Slimegod:
I have no knowledge of setting up toolchain. Never had to before when building. How do I correctly set it.
[Android Software/Hacking General [Developers Only]] akhilnarang:
Made any changes to kernel source?? To build repo???

Set any value to CROSS_COMPILE?
[Android Software/Hacking General [Developers Only]] Slimegod:
I made changes in the kernel/Android.mk file which were needed to build the kernel needed when compiling AOSP and in the build/core/task/kernel.mk file to set the path of the kernel.
[Android Software/Hacking General [Developers Only]] sparksco:
kernel.mk is completely independent from any other Makefiles. Changing kernel Makefiles will have no affect.
[Android Software/Hacking General [Developers Only]] Slimegod:
Ok so any suggestion's then from anyone who might have a idea?
[Android Software/Hacking General [Developers Only]] :
But see this, I already have that lib

yeshwanthvshenoy@srisurya95:~$ sudo apt-get install libcloog-isl4
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcloog-isl4 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
[Android Software/Hacking General [Developers Only]] JustArchi:
Read the damn OP CAREFULLY

:rolleyes:
[Android Software/Hacking General [Developers Only]] Megatron007:
got same error ..tried both method...still error is coming :( any help would be appriciated :(
[Android Software/Hacking General [Developers Only]] akhilnarang:
I get is with hwcomposer.msm8974 now -_-

Will try this
[Android Software/Hacking General [Developers Only]] sparksco:
Same problems with hammerhead on slim rom.
[Android Software/Hacking General [Developers Only]] JustArchi:
[MENTION=2394329]sparksco[/MENTION]

Thanks a ton for SaberMod 4.9 for arm, I successfully compiled my AD with it (and my optimizations) :cool:.
[Android Software/Hacking General [Developers Only]] JustArchi:
As some of guys keep PMing me from time to time with the question "how to use toolchain XXX":

You can find all toolchains I used, use, or like to keep updated here

You can find toolchains I'm currently using here

For now, it is:

architoolchain-5.1-arm-linux-gnueabihf for arm-eabi

sabermod-4.9-arm-linux-androideabi for arm-linux-androideabi

Head over to my roomservice.xml linked above if you need help in adding any toolchains of your choice to your own local manifest.

In terms of what I suggest:

ArchiToolchain 5.1 or 4.9 for arm-eabi

SaberMod 4.9 or 4.8 for arm-linux-androideabi

Linaro is pretty inactive/outdated these days, so use at your own risk.
[Android Software/Hacking General [Developers Only]] sparksco:
I also made a easier way to use sabermod toolchains. Details in this post.

https://plus.google.com/+PaulBeeler/posts/MyeMTfMRMv8
[Android Software/Hacking General [Developers Only]] JustArchi:
Yep, thank you for that.

I'm already using it :cool:.
[Android Software/Hacking General [Developers Only]] Slimegod:
I'm getting this toolchain error compiling AOSP 4.4.4 https://pastebin.com/6t0mk4Jd. I edited everything correctly in my path for kernel and ROM.
[Android Software/Hacking General [Developers Only]] akhilnarang:
Look at the error

arm-linux-androideabi-/bin

You haven't set the exact path

Its even saying there's no such file or directory
[Android Software/Hacking General [Developers Only]] Slimegod:
This is my arm directory. I'm using Linaro-4.7 I checked to see if it's there and it is.
[Android Software/Hacking General [Developers Only]] Magnum828:
Hello. I'm trying to build CyanogenMod 12.1 for klte (Galaxy S5 International).

But this is what I get:

libexec/gcc/arm-linux-androideabi/4.9.x-sabermod/cc1: error while loading shared libraries: libmpfr.so.6: cannot open shared object file: No such file or directory

Hope you will give me help :)

Greetings.

Edit:Managed to repair this on my own :)
[Android Software/Hacking General [Developers Only]] Khaon:
You should not just edit and say it is fixed, you should provide the intel so anyone googlign up same answer , thanks to you may solve it ;).

I guess you had missing package?
[Android Software/Hacking General [Developers Only]] Magnum828:
Yup, missing packages for SaberMod. If you want to repair it just download prebuilt libs from sabermod.com :) But I ran into another error :(

http://pastebin.com/99nMsf6P

Edit: Repaired it ! :D Here you go with fix :) http://xdaforums.com/showpost.php?p=59796989&postcount=58
[Android Software/Hacking General [Developers Only]] sparksco:
There's also these from official kernel.org (not third party).

https://github.com/SaberMod/android...mmit/e9637deac028ba4f509f70a38e8adb0393729b65

https://github.com/SaberMod/android...mmit/e1555eb2aafc4602a10d862855e568b97217eb3f

There's also other patches on sabermod github kernel sources for gcc. Depending on the kernel versions. Shamu is Linux 3.10 but most others are 3.4
[Android Software/Hacking General [Developers Only]] Shoaib05:
Hey [MENTION=5161352]JustArchi[/MENTION], I have successfully compiled my 1st kernel using ArchiDroid 5.1 toolchain. Now, I want to optimize it so that it performs faster on my device. So, can your optimizations be applied to kernels? If so, how can I do it? Please :)
[Android Software/Hacking General [Developers Only]] JustArchi:
Kind of.

https://github.com/ArchiDroid/ArchiKernel/blob/smdk4412/Makefile - Analyze my makefile for "ARCHIKERNEL_*" entries if you want to check what flags I am using.

Commit mentioned in OP is for ROMs only but similar set of flags can be applied also to kernel.
[Android Software/Hacking General [Developers Only]] Slimegod:
I'm still getting this error: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-/bin/arm-linux-androideabi-gcc: No such file or directory. I followed all the steps, read a whole bunch of thread and still a no go. Even synced your toolchain source bro. Idk what else to do.
[Android Software/Hacking General [Developers Only]] JustArchi:
Your error is not related in any way to my commit so I assume you're in the wrong thread.
[Android Software/Hacking General [Developers Only]] Slimegod:
My apologies....
[Android Software/Hacking General [Developers Only]] Vynikal:
True dat! Using it too for some time, it's super fast and rock solid stable :good:
[Android Software/Hacking General [Developers Only]] Slimegod:
Where can I get the local_manifests for 4.8 toolchain for a AOSP build. I looked on JustArchi's github and there isn't any. Or do I use sabermods and just take that out and continue to sync.
[Android Software/Hacking General [Developers Only]] JustArchi:
4.8 is default, you don't need to replace any toolchain.

Or you can use my aosp-* branch similar way to using sabermod's.
[Android Software/Hacking General [Developers Only]] Slimegod:
I noticed your AOSP branch doesn't contain both in one source, unless I'm mistaken I would do it separately.
[Android Software/Hacking General [Developers Only]] JustArchi:
Because AOSP doesn't include them in one source either.
[Android Software/Hacking General [Developers Only]] Slimegod:
I got you. So once repo synced no additional changes are needed in any makefiles as stated earlier in you're thread, well with the exception of your comment of course.
[Android Software/Hacking General [Developers Only]] JustArchi:
Read commit description if you're unsure.
[Android Software/Hacking General [Developers Only]] LuCiolla90:
Hi.

I'd like to try this mod.

I have an italian s3 neo with the latest resurrection remix on android 5.1.1: which version i have to use?
[Android Software/Hacking General [Developers Only]] DSA:
do you understand what this mod actually is?
[Android Software/Hacking General [Developers Only]] LuCiolla90:
Sorry, there is the version for lollipop.
[Android Software/Hacking General [Developers Only]] DSA:
are you compiling resurrection remix from source?
[Android Software/Hacking General [Developers Only]] LuCiolla90:
The rom is developed by [MENTION=5630829]sreinst1[/MENTION]

Here is the link: http://xdaforums.com/galaxy-s3-neo/development/rom-ressurection-remix-s3-neo-t3123799
[Android Software/Hacking General [Developers Only]] sreinst1:
Correction: I do NOT develop the ROM, I only build it. For the developers, see "Team" here: http://www.resurrectionremix.com/
[Android Software/Hacking General [Developers Only]] DSA:
I don't think you understand what this mod is.

Its not something to flash, its for people compiling ROMs from source to include in the build process (hence the "commit" word in the thread title)
[Android Software/Hacking General [Developers Only]] LuCiolla90:
Thanks for your time and sorry for my noobness.
[Android Software/Hacking General [Developers Only]] Slimegod:
I'm still getting this error "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-/bin/arm-linux-androideabi-: No such file or directory" even after I've made my edits to the files.
[Android Software/Hacking General [Developers Only]] Vynikal:
This definitely isn't name of the folder with the toolchain. It should be /arm-eabi-4.8 or /arm-linux-androideabi-4.9 or sth.
[Android Software/Hacking General [Developers Only]] JustArchi:
And I repeat again that your problem is not related to commit here or any of the toolchains which is available here but to your ROM and source tree.
[Android Software/Hacking General [Developers Only]] sparksco:
Ever feel like this?
[Android Software/Hacking General [Developers Only]] balint933:
Hello!

I'm getting the following error : http://pastebin.com/FAikLneJ with these optimizations, bot only since I installed Ubuntu 15.04 dualboot with windows, It worked in windows+virtualbox, I tried the change -march flag, and deleting -march=native, but this error always coems back. Without the optimization build works.

CM12.1 for titan

Intel® Core™ i7-4700MQ CPU

Please help me. thanks
[Android Software/Hacking General [Developers Only]] sparksco:
Those optimizations aren't related to this thread. SaberMod does not use march=native
[Android Software/Hacking General [Developers Only]] balint933:
if you check the commit, it adds "-march=native" to HOST-linux files. what -march flag should i use?

The commit changes core/combo/HOST_linux-x86.mk file from -march=prescott to -march=native what is the difference?
[Android Software/Hacking General [Developers Only]] sombree:
I've succefully build CM11 for gt-i9515 with sabermod's gcc 4.8 and these optimizations but i have strange issue - extSdcard is accessible but i can see only some folders and files (yes - it's formatted with exFAT; yes - i checked it on PC and rest of folders and files are there and they aren't damaged). I did built with exFAT fixes (-Os flag in few places) but problem persist. any ideas how to fix this?

Edit: Problem solved

I've applied these commits + addeed -Os flag to the system/vold/Android.mk:

https://github.com/CyanogenMod/android_external_exfat/commit/82c66279aea954faa06d224e66bce5f30331b4c0

https://github.com/CyanogenMod/android_external_exfat/commit/cfb63703c1f1bcc6f7e027290156c4e8d4f05030

https://github.com/CyanogenMod/android_external_fuse/commit/81b1cc26b41b25afd2d8e09dce1bad4969016066

https://github.com/CyanogenMod/android_external_fuse/commit/04950575c363570aefba125fb774dbf91354844a
[Android Software/Hacking General [Developers Only]] JustArchi:
I've just released version 4.1 of my commit.

This is rather a misc change, that only includes fixing of march=native for HOST target, and enabling -fgraphite -fgraphite-identity as my toolchain doesn't ICEs at them anymore.

I also changed my default suggested androideabi toolchain from SaberMod 4.8 to UBERTC 4.9, as SM recently introduced upstream Google ICEs I don't like. Remember that you don't need to follow toolchains of my choice, it's best to use the ones you like the most, after you build your first working version with AD optimizations applied :). Just keep in mind that flags that work for me, may not work for you, and vice versa.

Happy O3ing! :cool:
[Android Software/Hacking General [Developers Only]] sparksco:
Um... When/Where was it said that sabermod was switching to Google gcc? That one release was only a test toolchain, and I was on vacation when you started demanding I fix a bug in Google's gcc. If you download the latest toolchains it's based on sabermod gcc. You couldn't just use the previous version meanwhile? Also why did you not use sabermod 4.9 previously instead of 4.8!? BTW the ICEs you mentioned are only in Google's 4.9 gcc. So why you suggest moving from 4.8 sm to 4.9 uber makes no sense, since sm 4.8 never used Google's gcc in the first place. 4.9 works fine for me and many many others... Of course it's your choice what you use, just seemed kind of random so was wondering what the rational was behind it..

Edit: Disregard post please. Really don't give a s**t.
[Android Software/Hacking General [Developers Only]] JustArchi:
1. I didn't say that SM was switching to Google GCC, I said that I don't like some changes you've introduced in latest version.

2. I never ever demanded anything from any developer, if you think otherwise then please reread your own thread. You took it too personal.

3. Toolchains that are suggested are the ones I'm currently using. If you didn't notice yet, I always repeat multiple times that every user should use what he finds the best, and my suggestions are only suggestions, I could as well suggest using Google's GCC 4.6 if I had a reason.

4. I'm getting better results with UBERTC, my users also notice that. That's my main reason, I always try to find the best solution, not stay on something that works, as it can work better.

Don't be jealous, because there is really no need to start a toolchain war, and I really don't want to start it either. I recommend toolchains that are currently working for me best, and nobody has to agree with me that they're the only true choices and everyone has to use them.
[Android Software/Hacking General [Developers Only]] Travisholt92:
[MENTION=5161352]JustArchi[/MENTION] Taking the high road and not feeding into the battle that [MENTION=2394329]sparksco[/MENTION] is trying to start over a misunderstanding/hurt feelings over you not using SM.

I want to thank you BOTH for the work that you two have done. With all of the work that the two of you have putting, you help to ensure that Stock gets put to shame with every software update that every manufacturer releases.

Sincerely, thank you.
[Android Software/Hacking General [Developers Only]] sparksco:
1. It kind of sounded like it the way you said it.

2. At first it seemed like it. If you go back and read you really wanted me to take care of the issue knowing it was based on Google's gcc. But then we came to the conclusion it was something in the Google gcc.

4. You mentioned this in your original post? Don't think so.

Jealous? Toolchain war? Nah I never had those intention so not sure where you got that from. I have nothing to be jealous of lol. :rolleyes:
[Android Software/Hacking General [Developers Only]] Travisholt92:
The fact that you're overly defensive about everything says otherwise.
[Android Software/Hacking General [Developers Only]] sparksco:
I set the record straight on some of the matters he brought up.

The fact that your trolling says otherwise.
[Android Software/Hacking General [Developers Only]] kotzir:
[MENTION=5161352]JustArchi[/MENTION], I am building with your optimizations, but get some fc's after that, and many crashes on boot

*CM12.1 source
[Android Software/Hacking General [Developers Only]] JustArchi:
Logcat or didn't happen.
[Android Software/Hacking General [Developers Only]] kotzir:
Of course, I know the rules, I was just in a hurry. Moreover the device is stuck at the bootanimation, so the crashes is just a guess of what might be happening. I would like to test the optimizations on KitKat, should I use V3? What about toolchains? Can I use the ones on the OP?
[Android Software/Hacking General [Developers Only]] JustArchi:
Older commits are provided for reference only, I do not support them anymore.

Unless you provide me a log we can only guess what is happening, e.g. ART segfaulting. As stated you're applying these optimizations at your own risk, but I do provide some minimal support regarding possible help when I might know what is happening. There's no physical way to test every available toolchain, ROM and device, therefore latest "released" commit is what works for me, with the toolchains mentioned in the commit as suggested ones, while building specific ROM for specific device. This will probably be enough for ~80% other developers using my optimization for their own projects, but there will be always 20% developers left in need to apply their own fixes.
[Android Software/Hacking General [Developers Only]] akhilnarang:
[MENTION=5161352]JustArchi[/MENTION] any chance you could provide a diff between the commits of 4.0 and 4.1?

Thanks
[Android Software/Hacking General [Developers Only]] JustArchi:
Do it yourself ;).
[Android Software/Hacking General [Developers Only]] cornpoppy:
Bluetooth Problems

Hi, [MENTION=5161352]JustArchi[/MENTION]. I'm trying to use your optimizations to build cm-12.1 rom. Currently everything is good except bluetooth. When I turn it on, it is keeping crash and restarting.

Here is my logcat:

http://pastebin.com/8MZJTM01

It happens with both V4 and V4.1. The toolchains I use are architoolchain-4.9-arm-linux-gnueabihf-cortex_a9_neon and uber-4.9-arm-linux-androideabi.

Could you please help me figure out what courses this issue? Thank you!
[Android Software/Hacking General [Developers Only]] JustArchi:
I can't see any segfault here related to optimizations. Not to mention that BT works fine for me.
[Android Software/Hacking General [Developers Only]] cornpoppy:
Hi, [MENTION=5161352]JustArchi[/MENTION]. Thanks for your reply! I agree with you. I don't think this problem is caused by optimizations.

Just like last time I got similar "F/libc ... Fatal signal 7 (SIGBUS) ..." problem for Google Play service crash. Finally It is solved by using the patch from your libcore source (https://github.com/ArchiDroid/android_libcore/commit/73098e8a00487b055a569760a43fd6fde342d703)

Do you have any idea which package caused this problem? android_external_bluetooth_bluedroid, android_packages_apps_Bluetooth, libcore or something else? Thank you!
[Android Software/Hacking General [Developers Only]] JustArchi:
Actually libcore patch was for a segfault, SIGBUS was an effect which resulted from that SIGSEGV.

I don't know the root cause, you may want to force back to -Os for THUMB or force it locally per every BT package (such as bluedroid).
[Android Software/Hacking General [Developers Only]] cornpoppy:
I will try it. Thanks for your suggestions!
[Android Software/Hacking General [Developers Only]] cornpoppy:
Thank you, [MENTION=5161352]JustArchi[/MENTION]! The problem is gone after setting -Os for bluedroid.
[Android Software/Hacking General [Developers Only]] JustArchi:
Glad it was that easy :).
[Android Software/Hacking General [Developers Only]] reS28raM:
Trying optimizations v4.1 with GCC 5 for the stock kernel on CM 12.1 I was expecting some compilation issues due to the flags, instead I got this:

In file included from /home/reS28raM/Android/CyanogenMod/kernel/lge/hammerhead/include/linux/compiler.h:48:0,
from /home/reS28raM/Android/CyanogenMod/kernel/lge/hammerhead/include/linux/stddef.h:4,
from /home/reS28raM/Android/CyanogenMod/kernel/lge/hammerhead/include/linux/posix_types.h:4,
from /home/reS28raM/Android/CyanogenMod/kernel/lge/hammerhead/include/linux/types.h:17,
from /home/reS28raM/Android/CyanogenMod/kernel/lge/hammerhead/include/linux/page-flags.h:8,
from /home/reS28raM/Android/CyanogenMod/kernel/lge/hammerhead/kernel/bounds.c:9:
/home/reS28raM/Android/CyanogenMod/kernel/lge/hammerhead/include/linux/compiler-gcc.h:100:30: fatal error: linux/compiler-gcc5.h: No such file or directory
compilation terminated.
make[3]: *** [kernel/bounds.s] Errore 1
make[2]: *** [prepare0] Errore 2
make[1]: *** [sub-make] Errore 2
make[1]: uscita dalla directory "/home/reS28raM/Android/CyanogenMod/kernel/lge/hammerhead"
make: *** [TARGET_KERNEL_BINARIES] Errore 2
[Android Software/Hacking General [Developers Only]] JustArchi:
This is related directly with using GCC 5.X for the kernel. That's one of the reasons why only 4.9 is suggested.

https://github.com/ArchiDroid/ArchiKernel/commit/4b422cf44f33718ec62bdec64ebce94f8425dbba

https://github.com/ArchiDroid/ArchiKernel/commit/4ed2ffb427b35b66f053e60fd32427ba5ff4c421

Mandatory, you may need other fixes as well.
[Android Software/Hacking General [Developers Only]] reS28raM:
Then I'll stay with 4.9 I hope to have it compiled this evening. And now that I said it... Lol

Thanks for the quick response. :D
[Android Software/Hacking General [Developers Only]] TaRsY:
Hi JustArchi!

With 4.1 I had similar FC's like cornpoppy had, Bluetooth Share FC all the time.

Setting back ARCHIDROID_GCC_CFLAGS_THUMB := -Os instead of -O3 solved the issue, but I'd liket to use -Os only for that particular package. Could you please help me how to do that?

Thank you in advance!

TaRsY
[Android Software/Hacking General [Developers Only]] sombree:
You need to add -Os flag to bdroid_CFLAGS in [your source tree]/external/bluetooth/bluedroid/Android.mk ;)
[Android Software/Hacking General [Developers Only]] JustArchi:
In general as I repeat multiple times, my optimizations are the deepest ones as they change whole Android build process from Os to O3, something which is not done by other (placebo) commits, that's why some people can face build problems related to that.

Changing O3 back to Os should solve 99.9% problems, but of course it's better to locate only one broken package or binary and change O3 to Os only there. Local CFLAGS override Global CFLAGS.
[Android Software/Hacking General [Developers Only]] JustArchi:
I was able to reproduce that issue on my Xperia M, while not being able to do so on Galaxy S3. Looks like something Snapdragon-specific or so.

Anyway, narrowed it down to main part of bluetooth.default.so.

So instead of adding whole bluedroid to force -Os, you can add only that local module (named bluetooth.default).

https://github.com/ArchiDroid/andro...mmit/932c01b05465fbf1ae3933efa915902b7f30aec9

This will provide a little less performance impact, as we're forcing -Os for less packages, therefore keeping more on O3 one :).

Of course, proper fix would require finding a culprit and changing it in the code itself, but "ain't nobody got time for that?". Previous O3-related issues (ART and webp) were fixed in the Lollipop release, so I'm being optimistic and waiting for release of Android M :).

But sure, if somebody fixes a culprit through the code, please share the commit so we can all benefit that. Until then, forcing Os on that specific part will not hurt anyway :cool:.