yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] hell_lock:
I have never tried any other toolchain except Linaro so I guess I should try this one with my kernel. Will report later.

Thanks for your work.
[Android Software/Hacking General [Developers Only]] sparksco:
Do you have a link to a commit to enable this feature? Maybe we could collaborate with the developers of hyper toolchains here to get the issue ironed out.

Edit: Fixed
[Android Software/Hacking General [Developers Only]] fusionjack:
does something need to be setup to avoid following error? the '--icf=safe' is used quite a lot in some projects.

/home/fusionjack/slimpop/caf/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8-linaromod/bin/../lib/gcc/arm-linux-androideabi/4.8.5/../../../../arm-linux-androideabi/bin/ld: unrecognized option '--icf=safe'
/home/fusionjack/slimpop/caf/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8-linaromod/bin/../lib/gcc/arm-linux-androideabi/4.8.5/../../../../arm-linux-androideabi/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
[Android Software/Hacking General [Developers Only]] frap129:
Well, I'm not getting this error, nor is anyone else. Maybe try redownloading the toolchain
[Android Software/Hacking General [Developers Only]] CounterC:
Nice to see you here [MENTION=1228651]fusionjack[/MENTION]!

Any plans with these toolchains :p?
[Android Software/Hacking General [Developers Only]] sparksco:
No such issues here either... Looks like a problem with caf.
[Android Software/Hacking General [Developers Only]] indianpride:
you are linking with GNU LD(.....arm-linux-androideabi/bin/ld: unrecognized option '--icf=safe') which doesn't support this flag. It should be linked with Google's GOLD linker.

Source:

http://research.google.com/pubs/pub36912.html
[Android Software/Hacking General [Developers Only]] sparksco:
Actually the name of ld doesn't matter. The only thing that matters is which ld is default. There's ld.bfd (GNU ld not Google), and ld.gold (also not google). Whichever one is default will be linked to ld. The default settings are set when the toolchain is compiled from source. I don't know which one is default as I have not looked at that part of the source. I assume since it's linaromod this is a linaro setting, and also using linaro binutils which is where ld is located (again not google ld). Also this thread is for developers only. Are you a developer?
[Android Software/Hacking General [Developers Only]] indianpride:
thanks for clarifying, I was misleaded by this, that's why I wrote google's gold.
[Android Software/Hacking General [Developers Only]] fusionjack:
thanks for the response. so, if i just use the linaromod prebuilt toolchain, there is nothing i can do?

sorry for noobness
[Android Software/Hacking General [Developers Only]] Myself5:
[MENTION=2394329]sparksco[/MENTION] Sorry if I skipped it, but do you mind linking to the necessary changes needed in order to build a kernel with SaberMod 5.0? I'd love to give it a try.

Thanks in advance
[Android Software/Hacking General [Developers Only]] sparksco:
You'd have to go to the SaberMod thread, this thread is for hyper toolchains.
[Android Software/Hacking General [Developers Only]] jgcaap:
Linaro parts with sabermod.. Sounds interesting! Anyone have already a build configuration for this with optimizations? Would like to test it out.
[Android Software/Hacking General [Developers Only]] barome:
LinaroMod 4.9 is really amazing on my kernel ! Thanks a lot ! Waiting for your LinaroMod 5.0 but take your time ;) Regards
[Android Software/Hacking General [Developers Only]] CounterC:
What is your kernel?
[Android Software/Hacking General [Developers Only]] barome:
Hell's Doctor, for Nexus 4
[Android Software/Hacking General [Developers Only]] adinkwok:
If you're talking shop about kernels :P, HERE is a great place to start for getting flags. Just any SaberMod optimizations would do as well (Also for roms too!).
[Android Software/Hacking General [Developers Only]] jgcaap:
you are a machine yoshi ;) thanks
[Android Software/Hacking General [Developers Only]] barome:
Hi [MENTION=5051294]frap129[/MENTION] ! Do you plan a Hyper Toolchain LinaroMod 5.0 ? Thx for your hard work
[Android Software/Hacking General [Developers Only]] zaclimon:
Hi, is it normal that when I compile with regular SM-arm-eabi-4.9, I'm correct but when I try to compile with SMNaro-arm-eabi-4.9 I have these errors:

In file included from arch/arm/boot/compressed/../../../../lib/decompress_unxz.c:234:0,
from arch/arm/boot/compressed/decompress.c:50:
arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c: In function 'index_update.isra.3':
arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:286:1: internal compiler error: in df_reg_chain_verify_unmarked, at df-scan.c:4305

Is it really related to the compiler?
[Android Software/Hacking General [Developers Only]] frap129:
Its already up, but I had to uploaded it to BitBucket because of file size restrictions on github, here's the link https://bitbucket.org/hyper-toolchains/linaromod-arm-eabi-5.0
[Android Software/Hacking General [Developers Only]] pattyboi:):
just wanted to stop in and say thanks for the dope toolchains :good:
[Android Software/Hacking General [Developers Only]] Xileforce:
any possibility of getting pthreads support? SM added it a few days back.
[Android Software/Hacking General [Developers Only]] barome:
I have 2 build errors with LinaroMod 5.0 (I had no issue with 4.9)

arch/arm/kernel/return_address.c:65:7: error: redefinition of 'return_address'
void *return_address(unsigned int level)
^
In file included from include/linux/ftrace.h:19:0,
from arch/arm/kernel/return_address.c:12:
/home/barome/android/kernel/kernel_msm/arch/arm/include/asm/ftrace.h:48:21: note: previous definition of 'return_address' was here
extern inline void *return_address(unsigned int level)
^
make[1]: *** [arch/arm/kernel/return_address.o] Erreur 1
make[1]: *** Attente des tâches non terminées....
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
make: *** [arch/arm/kernel] Erreur 2
make: *** Attente des tâches non terminées....
CC init/initramfs.o
CC init/calibrate.o
CC init/version.o
LD init/mounts.o
init/do_mounts_rd.o: In function `return_address':
/home/barome/android/kernel/kernel_msm/arch/arm/include/asm/ftrace.h:51: multiple definition of `return_address'
init/do_mounts.o:/home/barome/android/kernel/kernel_msm/arch/arm/include/asm/ftrace.h:51: first defined here
init/do_mounts_initrd.o: In function `return_address':
/home/barome/android/kernel/kernel_msm/arch/arm/include/asm/ftrace.h:51: multiple definition of `return_address'
init/do_mounts.o:/home/barome/android/kernel/kernel_msm/arch/arm/include/asm/ftrace.h:51: first defined here
make[1]: *** [init/mounts.o] Erreur 1
[Android Software/Hacking General [Developers Only]] ZaneZam:
little change big effect, take this one and u should be good ;) :

https://github.com/zanezam/boeffla-kernel-cm-bacon/commit/ef4fea130eeb70eff4f3a549fd3f6e9b11437550
[Android Software/Hacking General [Developers Only]] frap129:
Already there!
[Android Software/Hacking General [Developers Only]] Xileforce:
Cool is it in linaromod 5 yet?
[Android Software/Hacking General [Developers Only]] sparksco:
Your welcome
[Android Software/Hacking General [Developers Only]] barome:
Hi ! thanks, now at the end of building, I have this issue :

LD .tmp_vmlinux1
drivers/built-in.o: In function `.LANCHOR2':
msm_iommu_dev.c:(.data+0x119b4): undefined reference to `kgsl_iommu_sync_lock'
msm_iommu_dev.c:(.data+0x119b8): undefined reference to `kgsl_iommu_sync_unlock'
make: *** [.tmp_vmlinux1] Erreur 1

Any idea ?
[Android Software/Hacking General [Developers Only]] ZaneZam:
yeah fix should be this one:

@@ -993,7 +993,7 @@ static int kgsl_iommu_init_sync_lock(struct kgsl_mmu *mmu)
*
* Return - int - number of commands.
*/
-inline unsigned int kgsl_iommu_sync_lock(struct kgsl_mmu *mmu,
+static inline unsigned int kgsl_iommu_sync_lock(struct kgsl_mmu *mmu,
unsigned int *cmds)
{
struct kgsl_device *device = mmu->device;
@@ -1063,7 +1063,7 @@ inline unsigned int kgsl_iommu_sync_lock(struct kgsl_mmu *mmu,
*
* Return - int - number of commands.
*/
-inline unsigned int kgsl_iommu_sync_unlock(struct kgsl_mmu *mmu,
+static inline unsigned int kgsl_iommu_sync_unlock(struct kgsl_mmu *mmu,
unsigned int *cmds)
{
struct kgsl_device *device = mmu->device;

copied from my "bigger" gcc 5.0 fix commit from here (if u get anything else in addition check it out ;) ):

https://github.com/zanezam/boeffla-kernel-cm-bacon/commit/5236526cf8f1586c2afe29d827568e6afa2a0042
[Android Software/Hacking General [Developers Only]] txuki2005:
Deleted
[Android Software/Hacking General [Developers Only]] pattyboi:):
[MENTION=5051294]frap129[/MENTION] which toolchain has the pthread fix? i tried linaromod but it errors out for me.
[Android Software/Hacking General [Developers Only]] txuki2005:
Deleted. Sorry i know not supported yet. Back to 4.9.
[Android Software/Hacking General [Developers Only]] roshan2989:
im getting this error when compiling with Sabernaro 4.9..and im able to compile perfectly with christopher 4.9 toolchain..do i need any patches related to sabernaro?

In file included from arch/arm/boot/compressed/../../../../lib/decompress_unxz.c:233:0,
from arch/arm/boot/compressed/decompress.c:50:
arch/arm/boot/compressed/../../../../lib/xz/xz_crc32.c: In function 'xz_crc32':
arch/arm/boot/compressed/../../../../lib/xz/xz_crc32.c:59:1: internal compiler error: in df_reg_chain_verify_unmarked, at df-scan.c:4305
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
scripts/Makefile.build:307: recipe for target 'arch/arm/boot/compressed/decompress.o' failed
make[2]: *** [arch/arm/boot/compressed/decompress.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/preshot2989/falcon/arch/arm/boot/Makefile:60: recipe for target 'arch/arm/boot/compressed/vmlinux' failed
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
/home/preshot2989/falcon/arch/arm/Makefile:310: recipe for target 'zImage-dtb' failed
make: *** [zImage-dtb] Error 2
[Android Software/Hacking General [Developers Only]] frap129:
Hyper is back baby! Now with 5.1. Builds of 4.9 will be refreshed within the coming week
[Android Software/Hacking General [Developers Only]] Shoaib05:
I am also getting the same error but I don't know how to implement your fix. Can you tell me? Please :)
[Android Software/Hacking General [Developers Only]] ZaneZam:
if it is exact the same error the you just have to edit the source file "msm_iommu_dev.c" like i posted:

search for :

"inline unsigned int kgsl_iommu_sync_lock(struct kgsl_mmu *mmu,"

and change it to:

"static inline unsigned int kgsl_iommu_sync_lock(struct kgsl_mmu *mmu,"

search for :

"inline unsigned int kgsl_iommu_sync_unlock(struct kgsl_mmu *mmu,"

and change it to:

"static inline unsigned int kgsl_iommu_sync_unlock(struct kgsl_mmu *mmu,"

thats it actually ;)
[Android Software/Hacking General [Developers Only]] Shoaib05:
Actually, my error is like this---

shoaib05@NextGen-PC:~$ cd ~/android/kernel_source

shoaib05@NextGen-PC:~/android/kernel_source$ make -j8 ARCH=arm CROSS_COMPILE=arm-eabi-

CHK include/linux/version.h

CHK include/generated/utsrelease.h

make[1]: `include/generated/mach-types.h' is up to date.

CALL scripts/checksyscalls.sh

CHK include/generated/compile.h

CHK kernel/config_data.h

GEN .version

CHK include/generated/compile.h

UPD include/generated/compile.h

CC init/version.o

LD init/built-in.o

LD .tmp_vmlinux1

drivers/built-in.o:(.data+0x5c10): undefined reference to `kgsl_iommu_sync_lock'

drivers/built-in.o:(.data+0x5c14): undefined reference to `kgsl_iommu_sync_unlock'

make: *** [.tmp_vmlinux1] Error 1

shoaib05@NextGen-PC:~/android/kernel_source$
[Android Software/Hacking General [Developers Only]] ZaneZam:
after editing the source? because this would be the fix for exact that error ;)
[Android Software/Hacking General [Developers Only]] Shoaib05:
No, I haven't applied your fix yet. By the way, where is that msm.c file located in the kernel source which you have mentioned?
[Android Software/Hacking General [Developers Only]] ZaneZam:
for example here : /drivers/gpu/msm/kgsl_iommu.c

Gesendet von meinem A0001 mit Tapatalk
[Android Software/Hacking General [Developers Only]] Shoaib05:
Yeah, I have compiled successfully. :D :D :D
[Android Software/Hacking General [Developers Only]] slim80:
[MENTION=5051294]frap129[/MENTION] Linaro 4.9.4 2015.06 is out.

Are you planning to update the LinaroMod source?

I use your toolchain for to compile my S4 kernel and all works fine.

Thanks for your work mate.

:)
[Android Software/Hacking General [Developers Only]] Joeisgood99:
How did you go [MENTION=4217103]zaclimon[/MENTION] ?

Im getting the same error building the last verson of Kangaroo Kernel with SaberNaro-arm-eabi-4.9. code below.

OBJCOPY arch/arm/boot/Image

Kernel: arch/arm/boot/Image is ready

AS arch/arm/boot/compressed/head.o

LZ4 arch/arm/boot/compressed/piggy.lz4

AS arch/arm/boot/compressed/piggy.lz4.o

CC arch/arm/boot/compressed/misc.o

CC arch/arm/boot/compressed/decompress.o

In file included from arch/arm/boot/compressed/../../../../lib/decompress_unlz4.c:19:0,

from arch/arm/boot/compressed/decompress.c:53:

include/linux/decompress/mm.h: In function 'free.isra.0':

include/linux/decompress/mm.h:41:1: internal compiler error: in df_reg_chain_verify_unmarked, at df-scan.c:4305

}

^

Please submit a full bug report,
[Android Software/Hacking General [Developers Only]] zaclimon:
I ended up using another toolchain as this one just wasn't working.

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Android Software/Hacking General [Developers Only]] someshthakur:
Will this toolchains support arm64 ?
[Android Software/Hacking General [Developers Only]] jgcaap:
tryiing this one out :)

Also trying your clang :D thanks man great job
[Android Software/Hacking General [Developers Only]] PunkUnity:
Any new projects happening? Updates on some toolchains or anything?
[Android Software/Hacking General [Developers Only]] frap129:
I haven't had time to keep Hyper Toolchains going because of school and life, but I recently decided to rework Hyper Toolchains from the ground up. New prebuilts should be up later this week of every combination of Uber, SaberMod, and Linaro.
[Android Software/Hacking General [Developers Only]] adinkwok:
For any devs that do not want to wait for prebuilts, you can build your own combinations by syncing the source here.
[Android Software/Hacking General [Developers Only]] frap129:
Hyper Toolchains has been updated! All of the prebuilts have been uploaded, and the OP has been reworked to reflect the changes. Note that CPU optimized toolchains wont be uploaded, because then I would have to build 120 different toolchains. You can use the standard -mtune=your_cpu flag to do the exact same thing, or build the toolchains your self. Tutorial on building hyper is coming soon.

Goals for next toolchain upload (Most likely a few weeks)

Enable LTO

Enable bionic libs

Add prebuilt libgomp to versions where its broken

Add prebuilt MCLinker
[Android Software/Hacking General [Developers Only]] MichelBorgess:
who the best compiler for battery ?
[Android Software/Hacking General [Developers Only]] MichelBorgess:
too much micro lags in my kerne using this toolchains..
[Android Software/Hacking General [Developers Only]] PunkUnity:
[MENTION=5051294]frap129[/MENTION] get busy again bro? I did too! Thanks for bringing the toolchains back to life. I hate to keep bugging you, but if you need any help we have a pretty bad ass group of people of all levels of android on a slack chat, if you're interested in really good feedback and testers with experience. Hit me up with a pm if so. Very laid back group that is pretty active. Got a few good people in there for sure!
[Android Software/Hacking General [Developers Only]] frap129:
Ill definitely think about it! I'm pushing updated toolchains right now, should be finished in a few hours.
[Android Software/Hacking General [Developers Only]] frap129:
All 40 had 'micro lags'? wow
[Android Software/Hacking General [Developers Only]] frap129:
All 40 toolchains have been updated and uploaded!

Goals met for this upload:

* Fully enabled LTO

* Enabled bionic libs

Goals for next upload:

* Add libgomp

* Add MCLinker
[Android Software/Hacking General [Developers Only]] PWn3R:
Hey [MENTION=5051294]frap129[/MENTION], I'm trying to compile RenderKernel using your toolchains, and I've tried several of the variations. I'm running into either an arm-eabi command not supported -pthread message, or when I switch to others, my graphite optimizations blow up. Any thoughts?
[Android Software/Hacking General [Developers Only]] frap129:
Remove the -fopenmp flag. Due to the lack of libgomp support in both my toolchains and uber (since it's broken in most builds) pthread and OpenMP don't work. I'm currently looking into the use of prebuilt libgomp, but it would be out of date and not up to standards with OpenMP 4.0, which is why it's taking so long. Should be supported in the next upload
[Android Software/Hacking General [Developers Only]] PWn3R:
Hey - thanks for the fast response [MENTION=5051294]frap129[/MENTION] - I just did some grep'in and it looks like pthread is all over in this kernel source, and he says he uses your toolchain. I will try to find where he has that flag if it's in there, but if not, I don't think this thing will even build without pthread.
[Android Software/Hacking General [Developers Only]] frap129:
He uses an older build I personally compiled for him I believe
[Android Software/Hacking General [Developers Only]] Adromir:
Any Chance there will be Toolchains for aarch64 soon?
[Android Software/Hacking General [Developers Only]] frap129:
I have scripts available for them, if you build your own, but currently only 4.9 works. Still looking into it.
[Android Software/Hacking General [Developers Only]] Fieah:
Hi [MENTION=5051294]frap129[/MENTION]

Can you please make another mirror for Hyper toochains?

Now the prebuilt can't be downloaded from Bitbucket.

Thank you. :)

https://bitbucket.org/hyper-toolchains/arm-eabi-6.x/get/SMxU.zip
[Android Software/Hacking General [Developers Only]] frap129:
No. Just clone it via git. git clone <URL> -b <branch you want>
[Android Software/Hacking General [Developers Only]] kpirnie:
Must be an issue over at bitbucket

Got a:

Cloning into '.'...
error: RPC failed; curl 52 Empty reply from server
fatal: The remote end hung up unexpectedly

Error while making the attempt just now...

Hopefully they get their collective butts in gear over there ;)

Thanks for throwing these all together mate... looking forward to making my attempt at compiling :D

EDIT: I'll try forking it... maybe that will help....

---------- Post added at 02:51 PM ---------- Previous post was at 02:16 PM ----------

Yep. Forking it worked
[Android Software/Hacking General [Developers Only]] WILMANS2M:
hi all,

First i am completely newbie on building kernel. But as there is lack of kernel dvp for my phone (SM-G903F), i'd like to build one on my own.

I want to use Hypertoolchain but....

Currently i have installed Ubuntu 16.04, have downloaded & extracted kernel sources and downloaded this toolchain (following this tuto: http://xdaforums.com/chef-central/android/guide-switching-to-custom-toolchain-t2927662):

git clone https://android.git.linaro.org/git-.../aarch64/aarch64-linux-android-4.9-linaro.git prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-linaro-4.9

First question: how to switch to hyper repo (please write all the git clone line please). I see in github, prebuilts/aarch64/gcc-6.x/bin/ but don't know how to use).

for ex, how to use hypertoolchain LxU ?

2nd second: If i already downloaded a toolchain, i just have to delete to download folder (here prebuilts/*) ?

3rd: Can i make changes on sources and then changing repo ? What happens to the changed sources, do i have to make changes again or it keeps the one i made ?

4th: I have 5.1.1 rom (LL) & 6.01 (MM). What version do i need (gcc 4.9, 5.3, 6...) ?

Sorry for newbie question but can't find an answer.

I thank you all for answers.
[Android Software/Hacking General [Developers Only]] pfederighi:
Hello. I thought it would be fun to try a new toolchain. So far I've been unable to download the arm-linux-androideabi-4.9 branches (I'm working on a KK build). I've tried downloading, cloning, and forking and then cloning. I've tried https and ssh. Any ideas? Thanks.
[Android Software/Hacking General [Developers Only]] optimumpro:
To work around this issue: create a free account on bitbucket; fork the hyper repo and then clone your fork. It works for me. Just make sure to use -b and whatever branch you want, otherwise you will always get the main branch...
[Android Software/Hacking General [Developers Only]] WILMANS2M:
Can you please make another mirror for Hyper toochains?

Now the prebuilt can't be downloaded from Bitbucket.I've tried downloading, cloning, and forking and then cloning

Thank you
[Android Software/Hacking General [Developers Only]] pfederighi:
Alas, I have, in fact, tried that, but to no avail. Perhaps I'll try it again soon. Maybe BitBucket was having a bad day. Thanks.
[Android Software/Hacking General [Developers Only]] spookcity138:
git clone [url_of_remote] --branch [branch_name] --single-branch

Works for me
[Android Software/Hacking General [Developers Only]] WILMANS2M:
Will try thanks. Works on Debian too ?

Envoyé de mon GT-I9505 en utilisant Tapatalk
[Android Software/Hacking General [Developers Only]] spookcity138:
I would assume that it does. Good luck!
[Android Software/Hacking General [Developers Only]] WILMANS2M:
I suppose by url remote you mean "bitbucket / armeabi" and by branch "LxU, UxL...." that's it ?

Envoyé de mon SM-G903F en utilisant Tapatalk
[Android Software/Hacking General [Developers Only]] spookcity138:
As an example..The command I used to grab arm-linux-androideabi-4.9 LxSM was...

git clone https://bitbucket.org/hyper-toolchains/arm-linux-androideabi-4.9 --branch LxSM --single-branch

So yeah,you're right
[Android Software/Hacking General [Developers Only]] WILMANS2M:
[MENTION=7065337]spookcity138[/MENTION] Really thank you. It worked :)

[MENTION=5051294]frap129[/MENTION] First thanks for this. 2nd hope you will release an aarch64 too as unfortunately my phone (SM-903F) needs a 64bits kernel :(
[Android Software/Hacking General [Developers Only]] khan_frd2002:
[MENTION=5051294]frap129[/MENTION] any chances for arm64?
[Android Software/Hacking General [Developers Only]] WILMANS2M:
Already asked.

Envoyé de mon SM-T800 en utilisant Tapatalk
[Android Software/Hacking General [Developers Only]] Mata99:
Which toolchain recommended me to use for performance (I want build for nexus 4)?
[Android Software/Hacking General [Developers Only]] winxuser:
[MENTION=5051294]frap129[/MENTION] is UBER and saber the only 7.0 gcc toolchains at the moment??
[Android Software/Hacking General [Developers Only]] Jole7:
[MENTION=5051294]frap129[/MENTION] hi can you make Hyper Toolchains 64-bit compatible please i'm interesting using them on OnePlus 3. Thanks!
[Android Software/Hacking General [Developers Only]] frap129:
Yes

No. If you scroll a few messages up and look at what [MENTION=4804493]Adromir[/MENTION] posted, you'll see why.