yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] _neutron_:
Sooo...basically move on from sabermod? And don't ask for help?
[Android Software/Hacking General [Developers Only]] DSA:
i gave up

tried 3 different versions of ubuntu and also tried fedora - none of them will get past cloog compilation. i can build roms fine, but sabermod is a no go...so changed to another tc (you should probably do the same)
[Android Software/Hacking General [Developers Only]] Houge_Langley:
I give up too.

But, I will try my raspberry pi 2. Building arrch64 version gcc and clang.
[Android Software/Hacking General [Developers Only]] sparksco:
The funny thing about all of this is I really can not reproduce the error. I do this in my spare time as a hobby. But now people want me to jump or say how high when they threaten to stop using sabermod. You know what, go ahead **** it I'm out.
[Android Software/Hacking General [Developers Only]] sparksco:
Update:

Good news. The bug for using both pthread and graphite was in the toolchains not the kernel. It's been fixed and I've pushed the new arm-eabi-5.0 to master branch this time instead of test branch.
[Android Software/Hacking General [Developers Only]] Xileforce:
Wooo! Will try later today. Though I've still got those errors so I may be SOL still lol.
[Android Software/Hacking General [Developers Only]] sparksco:
Why not just remove the changes for the governors? Are they really that important to keep if the code is buddy anyways?
[Android Software/Hacking General [Developers Only]] Xileforce:
Because that's the touch boost code :/ the other error has to do with mako hotplug which is my main hotplug :(
[Android Software/Hacking General [Developers Only]] sparksco:
Hmm. Okay, keep the buggy features [emoji19]
[Android Software/Hacking General [Developers Only]] Xileforce:
But they work fine :( just not with GCC 5.
[Android Software/Hacking General [Developers Only]] Xileforce:
I just attempted to compile with the new gcc. Deleted my old arm-eabi-5.0 folder and cloned the new one from gitlab master branch. But I got graphite error when attempting to compile with graphite flags it says on gitlab that u pushed the new arm eabi a day ago. Maybe I messed up?
[Android Software/Hacking General [Developers Only]] sparksco:
Hmm, works OK for me. The thing for me though is I never had errors for arch/arm/mm like many others. My error was for drivers/net which is fixed now. Maybe it's because of the ARM mm patches I back ported from Linux but who knows.

Have you tired 4.9 with pthread and graphite yet? All arm-eabi has it now.
[Android Software/Hacking General [Developers Only]] Xileforce:
atm im using a custom compiled version of christophers linaro A15 TC as my 4.9.3 TC I may give the new SM 4.9 a try. :)
[Android Software/Hacking General [Developers Only]] sparksco:
I was just thinking it could be another flag you using as well. Have you tried removing all flags except for pthread and graphite? I only use -O3, pthread, graphite and cortex flags...
[Android Software/Hacking General [Developers Only]] Xileforce:
Ill try that right now

---------- Post added at 07:53 PM ---------- Previous post was at 07:47 PM ----------

No dice. still that mm graphite error :(
[Android Software/Hacking General [Developers Only]] sparksco:
OK, I have the kernel downloaded I'll try later on stock shamu kernel... As you said someone else already uses gcc 5.0 on their shamu kernel right?
[Android Software/Hacking General [Developers Only]] Xileforce:
yes and they also have mako hotplug. Not sure how they arent getting the errors. Using UberTC tho. Also using graphite but not pthreads
[Android Software/Hacking General [Developers Only]] sparksco:
Ah I misunderstood. I thought you meant before they were using sm 5.0... Well I won't be testing any hotplug as it's not my job to fix code for custom features. Just stock with the flags I mentioned before. Maybe his hotplug is fixed somehow.
[Android Software/Hacking General [Developers Only]] Xileforce:
roger that, and sorry i thought it was SM as well at first.
[Android Software/Hacking General [Developers Only]] sparksco:
Due to lack of activity in this thread I'll most likely close this in a week... Not much going on here and it's been almost week already. It doesn't seem as useful as I thought it would be and most people are using other toolchains anyways. Cheers.
[Android Software/Hacking General [Developers Only]] noname55804:
Hey,

taking part here as wel now :)

Just compiled my ROM with SM4.8 toolchains. Will try 4.9 and maybe even 5.0 later today, so I may come up with some errors/problems here ;)

Oh no, this thread has a great potential. I never saw a thread like this before and I think it can be alot of help for many people. Activity will come by time :)
[Android Software/Hacking General [Developers Only]] WhiteNeo:
Agreed. I have subscribed to this and will certainly remember when I run into issues :)

By the way, does anyone know how to install libcloog-isl on ArchLinux?
[Android Software/Hacking General [Developers Only]] fizbanrapper:
I've subscribed as well, and agree with the last two posts.

I know that for myself there's a development lull until I can get 5.1 builds up and running. I'd imagine it's the same for others.

The best part about this thread is the opportunity to communicate directly with you about your toolchain. This thread could be instrumental in getting it to become more mainstream. No idea who Mr Linaro is, or how to communicate with him!
[Android Software/Hacking General [Developers Only]] sparksco:
Well in the instructions on gitlab it says to install to /usr/lib/x86_64-linux-gnu

But maybe on arch it's just /usr/lib/x86_64-linux

You don't need Linux packages for cloog if you just install the ones on SaberMod gitlab.
[Android Software/Hacking General [Developers Only]] WhiteNeo:
I couldn't find the lib itself either. Where can I get it from? :)

Thanks for your help btw!

Been trying to build with the toolchain from gitlab and I keep running into this error, unfortunately.
[Android Software/Hacking General [Developers Only]] sparksco:
The instructions are in the OP. Please read.. It doesn't sound like you've read the readme on gitlab yet. Although arch isn't listed as a official supported distro for SaberMod in the readme, you might be able to adapt the instructions and packages for arch. I may have to update the readme for cloog again but I just had surgery so I'll take a look at it when I can.
[Android Software/Hacking General [Developers Only]] Xileforce:
Wooot! I got it to compile! Simply adding extern in front of the offending functions made it compile first try! Still can't use graphite because of the mm deal but I'm still super happy! :D ty for all the help.
[Android Software/Hacking General [Developers Only]] sparksco:
Thanks can you also submit it to Franco? I'm sure he'd like to know about this. I'm also glad to learn that extern can fix undefined references. This may help me in the future with things like this. The main functions of gcc is to help us improve our code.
[Android Software/Hacking General [Developers Only]] Xileforce:
franco scares me O_o. and idk if it has unintended consequences yet. I'll test it for a bit. Are SM prebuilts compiled optimized for A-15? If not I may attempt to compiled a build for a15 and linux 3.10.72
[Android Software/Hacking General [Developers Only]] sparksco:
What are you talking about? Your using Franco commits in your kernel.

Honestly it seems like your just going around to all the toolchain threads requesting the same implementations. All toolchains support cortex-a15 flags for kernel and ROM if that's what your asking.
[Android Software/Hacking General [Developers Only]] Xileforce:
lol was a joke. cuz hes so popular and pro. and I only hang in this thread and the hyper TC thread :P by a15 flags I meant compiling the TC with "--with-float=hard --with-fpu=neon-vfpv4 --with-cpu=cortex-a15 --with-tune=cortex-a15" Idk if they actually do anything. Just I see TC's advertised as being optimized for A15, etc like christophers and hypers. sorry if thats a dumb question.
[Android Software/Hacking General [Developers Only]] sparksco:
Oh I missed the joke.. Well what I mean is your going around asking if they all compile their toolchains the same way or with same features. Like your doing right now by asking if the toolchains are compiled with those flags. Well let me ask you this. Are you going to install the toolchains on your device? If not then how does configuring the toolchains with those flags going to make a significant improvement on your device? When you compile the ROMs and kernels that's where you should be using the flags. I add basic arch tunings for the toolchains as that's all I see the need for.
[Android Software/Hacking General [Developers Only]] Xileforce:
Lol I only asked if they were going to add support for pthreads. And yes that answers my question and makes sense thank you.
[Android Software/Hacking General [Developers Only]] sparksco:
I'm talking about how your trying to compare or compete one Toolchain against another. Not just two toolchain threads but in general. To me this seems like a really bad idea IMHO. We don't want every Toolchain being identical or else what's the point? There's already clones of toolchains out there that take on different names, we don't need more clones.

Glad the pthread thing was squared away. I try to implement new features without looking at other people's sources, mostly using Google search to find my solutions. But I don't want to add too much complications or optimizations to the toolchain builds to make them unstable or buggy.

I'll see about adding -O3 and -pthread flags to the toolchain builds though. That should optimize them some.
[Android Software/Hacking General [Developers Only]] Xileforce:
Ooo O3. And sorry, wasn't trying to compare. I'm just genuinely curious about the A15 deal. As for Pthreads support I'm always trying the latest and greatest stuff to find what works best for me. Currently that is SM 5.0, but when I heard linaromod updated I figured I would try that too if it had pthreads support. And I've been using Christopher's A15 build for months up till now :P so its sorta my staple. Can't wait to try the latest and greatest SM when it comes out. I'll be lurking.
[Android Software/Hacking General [Developers Only]] sparksco:
I forgot all about those warnings. I'll sync up to your latest changes later to push to GitHub.
[Android Software/Hacking General [Developers Only]] Xileforce:
just noticed u updated the eabi 5.0 prebuilt :) pulling that down now. I'd love to compile it myself, but im running Arch and everythings just a hassle to switch over.

edit: Having all sorts of issues on the latest prebuilt. Doesnt support stack protector anymore and is giving me other weird issues like this "as: unrecognized option '-EL'"
[Android Software/Hacking General [Developers Only]] sparksco:
Yes I'll fix the -EL error when I get home. I wanted to save some space on the size of the toolchains but apparently deleted some things that are needed... Why can't you compile toolchains on arch?
[Android Software/Hacking General [Developers Only]] Xileforce:
OK sounds cool. Cant wait to try. And I can compile on arch its just that all the stuffs different. Like all the links to files I have aren't right. Even though I have the stuff installed. May give it a shot one day. Spent like an hour trying to fix the broken shortcuts before ragequitting. Lol
[Android Software/Hacking General [Developers Only]] Synergy510:
I've been getting the same thing recently too. I changed a LOT of things and I've tried backtracking trying to figure out what's wrong. I get

Fatal error: invalid -march= option: `armv7-a'

[MENTION=2394329]sparksco[/MENTION] could you leave the commit history so we can revert to a previous build if necessary. I just realized that the current commit is the only one.
[Android Software/Hacking General [Developers Only]] sparksco:
Did you not read the OP? This thread is more for compiling your own toolchain, not using the prebuilts ones ... Or you can be patient and wait until I have time to fix it? Beating a dead horse won't get anyone anywhere though..

I also have to spend time modifying the source code before I push to prebuilts.
[Android Software/Hacking General [Developers Only]] Xileforce:
Everyone commenting about how buttery my latest kernel release is with SM 5 :)
[Android Software/Hacking General [Developers Only]] sparksco:
Cool, I pushed a new arm-eabi-5.0
[Android Software/Hacking General [Developers Only]] Xileforce:
Sweet will have to give it a shot later. Any fancy new changes?
[Android Software/Hacking General [Developers Only]] sparksco:
Not really. Mostly just reduced the size of the toolchains and made it so sync works on most of the toolchain repos now for ROM builders. I'll probably merge gcc again later on tonight. There's a lot of changes for gcc 5 every day.
[Android Software/Hacking General [Developers Only]] Xileforce:
Sounds good. Will report back later.
[Android Software/Hacking General [Developers Only]] sparksco:
Toolchains updated.
[Android Software/Hacking General [Developers Only]] Xileforce:
I synced it like 10 mins after u pushed it. Working well!
[Android Software/Hacking General [Developers Only]] txuki2005:
Hi [MENTION=2394329]sparksco[/MENTION]!

I'm trying to compile a kernel AOSP from nexus 4 with sabermod 5.0 (with 4.9 all go fine) but give me error compiling. I noticed i must modify the kernel source. Where i can see the patches for it? I am little noob on this... sorry for that.

:)
[Android Software/Hacking General [Developers Only]] bigsupersquid:
can you pastebin or quote your errors? makes it eaasier to help.
[Android Software/Hacking General [Developers Only]] txuki2005:
ok. Thanks. Sorry I forgot to put it. :eek:

https://gist.github.com/txuki2005/9343fd1e9b3b0d5f4da7​

Miles thanks.:)
[Android Software/Hacking General [Developers Only]] Hashbang173:
You kernel is not compatible with GCC 5.0

Try cherry-picking this commit onto your kernel source.
[Android Software/Hacking General [Developers Only]] sparksco:
I'll actually be working on mako kernel for a friend's ROM when google releases the kernel source for android 5.1. You'll probably encounter a lot more errors along the way.
[Android Software/Hacking General [Developers Only]] sparksco:
arm-eabi-6.0 is on gitlab
[Android Software/Hacking General [Developers Only]] fizbanrapper:
Wait, what? Did we really go through 5.X in under a month?
[Android Software/Hacking General [Developers Only]] sparksco:
5.x isn't abandoned.
[Android Software/Hacking General [Developers Only]] pattyboi:):
would there be any reason to use it compared to 5?

dope toolchains btw,always loved sabermod :D
[Android Software/Hacking General [Developers Only]] sparksco:
I'd wait until there's more changes going on in 6.0... Then you can compare and post your results here?

Thxs
[Android Software/Hacking General [Developers Only]] Targaeryan:
Hey I'm getting this error while building..

http://pastebin.com/1VbF5ZAd

Had the same error when I tried building for mako first as well..
[Android Software/Hacking General [Developers Only]] sparksco:
Yes it seems to be a issue with boostpop but I don't know what causes it...

[MENTION=4983372]Crostantin[/MENTION] has been trying to figure it out with no success...
[Android Software/Hacking General [Developers Only]] Crostantin:
seems very hard to solve :( :(...

to be honest I had this also with AOSPA and your local manifests....

I installed some packages for the enviroment (saw your message)....maybe works....
[Android Software/Hacking General [Developers Only]] sparksco:
Yeah very strange... I know at least a few other people that use the arm ROM toolchains without the issue.
[Android Software/Hacking General [Developers Only]] pattyboi:):
Alright I'll keep my eye on 6,I gotchu after the next couple releases i will have some numbers
[Android Software/Hacking General [Developers Only]] gchild320:
Hey I'm having issues cloning aarch64 4.9 & 5.0. 6.0 clones fine but I don't have a clue what I'm doing in that regard.

Edit: Nevermind I was able to DL a tarball.
[Android Software/Hacking General [Developers Only]] sparksco:
Which tarball from gitlab?
[Android Software/Hacking General [Developers Only]] sparksco:
Heh, what the hell does Debian know about arm

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dht0002a/ch01s04s03.html
[Android Software/Hacking General [Developers Only]] sparksco:
Updated both arm-eabi-5.0 and arm-eabi-6.0

For 5.0 there was around 30mb (compressed) changes

For 6.0 there was around 150mb (compressed) changes.

You might have to use ssh to clone or to use git fetch. These are very large files and git can't handle large files well with https.
[Android Software/Hacking General [Developers Only]] ZION959:
Hi ! Did you find the solution to fixed that error? I also face the same error building CM-12.1. Thanks
[Android Software/Hacking General [Developers Only]] sparksco:
What commits are you using for your ROM?
[Android Software/Hacking General [Developers Only]] ZION959:
I'm using your commits on gitlab. PA build and PA vendor
[Android Software/Hacking General [Developers Only]] sparksco:
Those commits aren't made for cm Roms.
[Android Software/Hacking General [Developers Only]] pattyboi:):
Alright bud tbanks for the info I'll be cloning soon and doing tests
[Android Software/Hacking General [Developers Only]] ZION959:
Oh sorry . just read the op again . thanks
[Android Software/Hacking General [Developers Only]] pattyboi:):
[MENTION=2394329]sparksco[/MENTION] got any idea ideas for this?:

/home/pattyboi/Documents/toolchain/saber/arm-eabi-6.0/bin/../libexec/gcc/arm-linux-gnueabi/6.0.x-sabermod/cc1: symbol lookup error: /home/pattyboi/Documents/toolchain/saber/arm-eabi-6.0/bin/../libexec/gcc/arm-linux-gnueabi/6.0.x-sabermod/cc1: undefined symbol: isl_schedule_constraints_on_domain
[Android Software/Hacking General [Developers Only]] ZION959:
Hi Sparksco

I success compiled SM 4.9 on CM 12.1 on both ROM and Kernel and I love the performance so much but Bluetooth is fc. I revert back to SM 4.8 and Bluetooth work no problems. Can you give the advice how to fixed it. Thanks
[Android Software/Hacking General [Developers Only]] sparksco:
Just use the Bluetooth from gitlab.
[Android Software/Hacking General [Developers Only]] sparksco:
I'll need a better log than that. Also why is the Toolchain in Documents?
[Android Software/Hacking General [Developers Only]] pattyboi:):
I put all my toolchains in documents/toolchain/"whatever type is" & how would I get a better log? Sorry for bugging ya
[Android Software/Hacking General [Developers Only]] ZION959:
Will do. Thanks
[Android Software/Hacking General [Developers Only]] sparksco:
Does setup wizard force close on a clean flash with 4.9?
[Android Software/Hacking General [Developers Only]] ZION959:
Yes it does.

Is something changes?

It was fine last week I went through the setup no problem. I fixed Set up wizard fc by disabled Prebuilt Chromium.
[Android Software/Hacking General [Developers Only]] ivankolev:
And how you handle it?
[Android Software/Hacking General [Developers Only]] ZION959:
Just don't flash GApps.

I will rebuild on the branch that was working tonight and see if I can pass the setup fc.
[Android Software/Hacking General [Developers Only]] ivankolev:
What do you mean by 4.9 on ROM?

SaberMod/GCC?

Cause for arm-linux-androideabi I find only 4.8 in gitlab
[Android Software/Hacking General [Developers Only]] ZION959:
Yes. SM arm-linux-androideabi 4.9

I remember now. Last time setup wizard fc cause by Prebuilt Chromium. I disable it and went through the setup fine...

I don't know of about now. I will rebuild tonight. Will keep you guys updated
[Android Software/Hacking General [Developers Only]] ivankolev:
Where you managed to get 4.9?

In gitlab this section is down.

And you disabled the setupwizard by not building it or not clean flashing?
[Android Software/Hacking General [Developers Only]] ZION959:
No I disabled Prebuilt Chromium and clobber and clean build again. Not setup wizard.

I don't know about now.

Last night I was building on 4.9 again and setup wizard was fc but I don't remember that did I disabled Chromium or not.
[Android Software/Hacking General [Developers Only]] sparksco:
Not sure I never was able to find a workaround for this. I thought people only use prebuilt chromium to speed up the build process.
[Android Software/Hacking General [Developers Only]] sparksco:
It's not hosted on gitlab because it's not ready for release status yet. You can compile it from source which is what this thread is mostly for.
[Android Software/Hacking General [Developers Only]] sparksco:
[MENTION=4712992]ZION959[/MENTION] Do you remember what gapps package you used when setup wizard last worked?
[Android Software/Hacking General [Developers Only]] ZION959:
I used this one

https://basketbuild.com/dl/devs?dl=...ormal_gapps.BETA.5.1.x.build.0.x-20150403.zip
[Android Software/Hacking General [Developers Only]] sparksco:
Sweet. I think I might have found the issue so I might have to mod gapps some. I also use slim gapps, so maybe I'll base mine on those.
[Android Software/Hacking General [Developers Only]] ZION959:
[MENTION=2394329]sparksco[/MENTION] I just build it and went through set up fine

I still ran into error with your Bluetooth on Gitlab.

I have to switch back to CM to completed the build
[Android Software/Hacking General [Developers Only]] sparksco:
hmm, any reason why it works OK now? I'll try to make a new cm based bluetooth and put it on a new branch.
[Android Software/Hacking General [Developers Only]] ZION959:
I only have the set up wizard and gapps fc only when I enabled prebuilt chromium to speed up the build.

You want to take a look at my ROM to see if you can find anything?

https://github.com/cmRemiX

Let me build one with just your SM optimization on gitlab on the same ROM without any change to see if it work or not.
[Android Software/Hacking General [Developers Only]] bigsupersquid:
first time I've seen reference to this, but

armv6 pretty hard to build for without prebuilt chromium. never did figure out why setupwizard refused to run but this makes an odd sort of sense.
[Android Software/Hacking General [Developers Only]] kogone:
starting out

i've followed the instructions from the readme on gitlab. building on mint 17.1

running "bash arm-linux-androideabi-4.9" gives me this error: http://pastebin.com/H9cYFG5U
[Android Software/Hacking General [Developers Only]] ZION959:
[MENTION=2394329]sparksco[/MENTION] this is the log when play service fc.

http://pastebin.com/S8GhpLDr
[Android Software/Hacking General [Developers Only]] sparksco:
It looks like chromium.. So using prebuilt chromium fixes the issue? I could force chromium to build with gcc 4.8...
[Android Software/Hacking General [Developers Only]] bigsupersquid:
empahais added

I had setupwizard fc's with prebuilt chromium all the way back to last february. but I only got a few builds with fresh-built libchromium late in my rom lifespan near the end of last year and didn't think to test the setupwizard with it. I was using sm 4.8 toolchain for the rom.
[Android Software/Hacking General [Developers Only]] sparksco:
Good news. I was finally able to figure out a way to make a option to disable -O3 with thumb in binary mode.

https://gitlab.com/SaberMod/android-vendor-pa/commit/72ae0aa1621c7ac081b944dc799b171cc36c154e

https://gitlab.com/SaberMod/pa-android-build/commit/0c0357cbb049cfbbb702d4f5dcad8500d8bb3419

https://gitlab.com/SaberMod/android-vendor-pa/commit/3f6fd55fd4041bfea1e2e7288391f61fb5584b67
[Android Software/Hacking General [Developers Only]] ZION959:
Man .you are genius
[Android Software/Hacking General [Developers Only]] xanaxdroid:
Yeah I switched from Arch to Ubuntu Gnome just to be able to compile the tc's. Arch is a pita when trying to do it.