yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] sparksco:
Another update :D

I added options in the toolchain build scripts to optimize for cortex-a15 (some arm devices), and cortex-a53 (arm64/aarch64).

https://gitlab.com/SaberMod/sabermod-build-scripts/commit/11d271bbbdb693eec74bcaec8aab413500c75217

https://gitlab.com/SaberMod/toolchain-build/commit/8aa0e4efe9f30ad4616a908647a1de0d003b641e
[Android Software/Hacking General [Developers Only]] sparksco:
Prebuilts have been updated on sabermod.com

There is now Ubuntu, fedora and rom-kernel prebuilts.

I've done all the testing I can on fedora for today and everything works OK..

I have a suggested workaround for Debian based systems.

1. Install libcloog-isl-dev

sudo apt-get install libcloog-isl-dev

2. Install new prebuilts for Ubuntu.

Please let me know if it works.

[MENTION=1077833]infected_[/MENTION]
[Android Software/Hacking General [Developers Only]] deepongi:
sadly no.. i made a clean install of my distro (14.04.2 based), installed all the needed and correct packages (aosp/cm12.1 and your needed sabermod packages also), installed the package libcloog-isl-dev, and then placed the ubuntu prebuilts libs on /usr, but still breaks compiling.

terminal log - http://pastebin.com/SUETJxap

arm-eabi-4.9 script log - http://pastebin.com/ptuQHe5X
[Android Software/Hacking General [Developers Only]] sparksco:
I will try on Ubuntu this weekend...
[Android Software/Hacking General [Developers Only]] sparksco:
Another status update!

https://plus.google.com/+PaulBeeler/posts/WfmjnhKVTMA
[Android Software/Hacking General [Developers Only]] sparksco:
Ubuntu should work fine now! The issues was manifest was syncing the wrong branch of cloog...
[Android Software/Hacking General [Developers Only]] deepongi:
yep! confirmed working.

SUCCESS: *****************ㄅㄩςς∑ㄅㄅ*****************

GCC has successfully built
The toolchain is located at:
/home/infected_/tmp/arm-linux-gnueabi-4.9

*****************ㄅㄩςς∑ㄅㄅ*****************

going to test-drive the new optimizations.
[Android Software/Hacking General [Developers Only]] sparksco:
For older devices select "no" for the new optimizations... Krait devices should work fine with the rom patch though in build repo.
[Android Software/Hacking General [Developers Only]] sparksco:
Guys bad news... I upgraded to windows 10 pro and virtualbox is no longer supported for me to update the Ubuntu toolchains. I did update arm before the win10 pro upgrade for both 4.8 and 4.9. They are still generic (no extra optimizations). But regardless I won't be updating the Ubuntu rom toolchains for awhile I guess until virtualbox is supported in win10, or I find a alternative vm to use that works on win10... The other option is to compile them from source and maybe someone else will update them and post them here for others to use.

I will continue to update the fedora branch though.

Edit: win10 has its own vm so I'm going to try that. Wish me luck!
[Android Software/Hacking General [Developers Only]] decatf:
It is possible to convert from VirtualBox to VMWare. I have been using VMWare Player on Windows 10 without any problems.
[Android Software/Hacking General [Developers Only]] sparksco:
Yup I'll give that a try if hyper-v in windows 10 doesn't work...

Edit:. Hyper-v seems to work ok...
[Android Software/Hacking General [Developers Only]] balint933:
Hello! Any fix for this problem: http://pastebin.com/2q7mSBzJ ?

I experience this error only with arm-linux-androideabi-5.1 and 5.2, ubuntu 14.10.
[Android Software/Hacking General [Developers Only]] sparksco:
Hi. No error on Ubuntu trusty/based OS or fedora 22 on my end.
[Android Software/Hacking General [Developers Only]] idprophecy:
Hi guys,

Let me know what do you think about that !

(Please consider that I am noob and I don't have too much knowledges to make something well-made)

:)

https://github.com/iDPropheCy/Automated-Compilation-Script-of-Sabermod-Toolchain
[Android Software/Hacking General [Developers Only]] sparksco:
Thanks but we already have automated scripts... Did you follow the instructions from the first post? You do know this is a developer only thread right!? This thread is located in developer only section of xda. So if your a noob I'm assuming your not a developer?
[Android Software/Hacking General [Developers Only]] idprophecy:
I didn't think noob as total beginner, I am learning how to compile things and it goes well, that's what I mean.

I wanted to show you my work, thanks for reply.
[Android Software/Hacking General [Developers Only]] sparksco:
Oh ok thanks! I'll have a look when I have time but right now I'm very busy this week. Hopefully by the weekend I'll have time to take a look at it and test it out :)
[Android Software/Hacking General [Developers Only]] sparksco:
Guys hyper-v works and is set up, so development back to normal again :)
[Android Software/Hacking General [Developers Only]] letmeputdatipin:
FYI, virtualbox seems to be working on windows 10 now, building cm on Ubuntu right now, thank u lord!
[Android Software/Hacking General [Developers Only]] sparksco:
What's wrong with hyper-v?
[Android Software/Hacking General [Developers Only]] letmeputdatipin:
Nothing, I was just pointing out that it's working! :D
[Android Software/Hacking General [Developers Only]] sparksco:
That's cool. I actually find hyper-v works a little better with less lag... It's fairly smooth as far as performance.
[Android Software/Hacking General [Developers Only]] brandonabandon:
sm build

Hello, I successfully compiled smaicp ROM for maguro. I'm looking to saberize if possible. Can someone help with the device.mk? I'm not sure how to adjust the THREADS options and flags for an acceptable build. I'm compiling with self-built toolchains, sm-4.8 for ROM with graphite and linaro 4.7 (crosstool) for kernel.
[Android Software/Hacking General [Developers Only]] lukino563:
when i use sabermod compiler it gets me these errors

arch/arm/boot/compressed/decompress.o: In function `memzero':

/home/ubuntu/android/kernel-saber/arch/arm/boot/compressed/../../../../lib/decompress_unxz.c:198: undefined reference to `GOMP_parallel'

/home/ubuntu/android/kernel-saber/arch/arm/boot/compressed/../../../../lib/decompress_unxz.c:198: undefined reference to `GOMP_parallel'

arch/arm/boot/compressed/decompress.o: In function `xz_dec_reset._loopfn.1':

/home/ubuntu/android/kernel-saber/arch/arm/boot/compressed/../../../../lib/xz/xz_dec_lzma2.c:371: undefined reference to `omp_get_num_threads'

/home/ubuntu/android/kernel-saber/arch/arm/boot/compressed/../../../../lib/xz/xz_dec_lzma2.c:371: undefined reference to `omp_get_thread_num'

/home/ubuntu/android/kernel-saber/arch/arm/boot/compressed/../../../../lib/xz/xz_dec_lzma2.c:371: undefined reference to `__aeabi_ldivmod'

/home/ubuntu/android/kernel-saber/arch/arm/boot/compressed/../../../../lib/xz/xz_dec_lzma2.c:371: undefined reference to `__aeabi_ldivmod'

arch/arm/boot/compressed/decompress.o: In function `xz_dec_reset._loopfn.0':

/home/ubuntu/android/kernel-saber/arch/arm/boot/compressed/../../../../lib/decompress_unxz.c:198: undefined reference to `omp_get_num_threads'

/home/ubuntu/android/kernel-saber/arch/arm/boot/compressed/../../../../lib/decompress_unxz.c:198: undefined reference to `omp_get_thread_num'

/home/ubuntu/android/kernel-saber/arch/arm/boot/compressed/../../../../lib/decompress_unxz.c:198: undefined reference to `__aeabi_ldivmod'

/home/ubuntu/android/kernel-saber/arch/arm/boot/compressed/../../../../lib/decompress_unxz.c:198: undefined reference to `__aeabi_ldivmod'

what should i do ?
[Android Software/Hacking General [Developers Only]] USBhost:
Can I see the kernel source
[Android Software/Hacking General [Developers Only]] sparksco:
Just so you know, there really isn't much updates for 4.8 anymore. Gnu pretty much stopped development on it. You should consider using 4.9 for arm if possible.
[Android Software/Hacking General [Developers Only]] brandonabandon:
Thanks, I will try.
[Android Software/Hacking General [Developers Only]] Synergy510:
If you added these flags to your device.mk's kernel graphite flags, you should remove them:

https://github.com/xsynergy510x/and...mmit/35332318711859d0bb1d7bb1bface4d35fb292f9
[Android Software/Hacking General [Developers Only]] lukino563:
I already fixed it, but thanx
[Android Software/Hacking General [Developers Only]] deepongi:
finally i am able to compile v500 with 4.9, both rom code and kernel... :victory:

heres my sm_device.mk - https://github.com/infected-lp/vendor_sm/blob/saber/device/sm_awifi.mk

I grabbed [MENTION=4829924]Synergy510[/MENTION] device mk for S4 and adapted it to v500, thanks for the source.

working like a charm.. :good:

regards.
[Android Software/Hacking General [Developers Only]] brandonabandon:
looking to saberize aicp for n4. im using mako kernel from sabermod gitlab and stock aicp device tree. first error was in gralloc, head_id_mask undefined, i reverted the commits to heap_mask in qcom. later, an error which appears to be kernel related

hardware/qcom/media/default/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2173:17: error: 'struct venc_entropycfg' has no member named 'entropysel'

entropy_cfg.entropysel = VEN_ENTROPY_MODEL_CABAC;

is this kernel known compatible with cm roms?
[Android Software/Hacking General [Developers Only]] sparksco:
Looks rom related to me. What toolchain are you using?

[MENTION=4630246]Hashbang173[/MENTION] might know more..
[Android Software/Hacking General [Developers Only]] sparksco:
Just so everyone knows a few things.

Support was dropped for Ubuntu Utopic and Vivid. Strange errors started popping up. Ubuntu trusty is still supported and any other Debian based on Trusty should work fine. Fedora 22 is also known to work and is also supported.
[Android Software/Hacking General [Developers Only]] brandonabandon:
Using the latest 4.9 sabermod toolchain [MENTION=5138538]saber[/MENTION]mod gitlab
[Android Software/Hacking General [Developers Only]] lukino563:
-ftree-parallelize-loops=2 - when i have this in makefile then it gives me errors, but this -floop-parallelize-all doesnt give me error
[Android Software/Hacking General [Developers Only]] lukino563:
when I try to compile with thumb-2 mode it gets me this errors

arch/arm/mach-msm/fiq_glue.S: Assembler messages:

arch/arm/mach-msm/fiq_glue.S:36: Error: Thumb load/store multiple does not support {reglist}^ -- `stmia sp,{r8-r14}^'

arch/arm/mach-msm/fiq_glue.S:64: Error: r13 not allowed here -- `subne sp,r7,#(4*3)'

arch/arm/mach-msm/fiq_glue.S:67: Error: Thumb encoding does not support an immediate here -- `msr cpsr_c,#(0x00000013|0x00000080|0x00000040)'

arch/arm/mach-msm/fiq_glue.S:69: Error: r13 not allowed here -- `sub sp,r7,#12'

arch/arm/mach-msm/fiq_glue.S:86: Error: Thumb encoding does not support an immediate here -- `msr cpsr_c,#(0x00000011|0x00000080|0x00000040)'

arch/arm/mach-msm/fiq_glue.S:94: Error: r15 not allowed here -- `movs pc,r11'

arch/arm/mach-msm/fiq_glue.S:104: Error: Thumb encoding does not support an immediate here -- `msr cpsr_c,#(0x00000011|0x00000080|0x00000040)'

arch/arm/mach-msm/idle-v7.S: Assembler messages:

arch/arm/mach-msm/idle-v7.S:86: Error: SP not allowed in register list -- `stmia r0!,{r4-r14}'

arch/arm/mach-msm/idle-v7.S:180: Error: SP not allowed in register list -- `ldmfd r0,{r4-r14}'

arch/arm/mach-msm/idle-v7.S:235: Error: SP not allowed in register list -- `ldmdb r1!,{r4-r14}'

any tips ?
[Android Software/Hacking General [Developers Only]] sparksco:
[MENTION=3897358]lukino563[/MENTION] use pastebin for errors... I've said this many many times now. Less clutter on the thread. Also you should provide more information like device etc...
[Android Software/Hacking General [Developers Only]] lukino563:
ok sorry for the mess, linux kernel 3.4.108, thumb-2 mode, sabermod 5.2 toolchain and I tried linaro 4.9.4 too but no success
[Android Software/Hacking General [Developers Only]] sparksco:
Those two flags are meant to be used together. If you use separately it's not really doing anything useful...
[Android Software/Hacking General [Developers Only]] sparksco:
Thumb isn't really good to use IMHO. That's why I use -marm ...
[Android Software/Hacking General [Developers Only]] lukino563:
I fixed only idle-v7.S errors, but no fiq_glue.S
[Android Software/Hacking General [Developers Only]] brandonabandon:
bootloop with sabermod mako kernel. the mako stock kernel is working. compiling with latest 4.9 from the sm site. aospa with all forked sources from sm gitlab. untouched sm vendor. any ideas? 5.1 tc also fails with bootloop.

the aospa rom for mako being hosted on sabermod.com has the bootloop.
[Android Software/Hacking General [Developers Only]] sparksco:
OK thanks for reporting. I had only uploaded that one mako build for testing, but my tester ended up having some hardware issues with his device so he couldn't test. The one on sabermod.com has a kernel compiled with 4.9. I'll test more kernel changes on github.com/SaberMod this weekend. Your using this forked manifest right?

https://gitlab.com/SaberMod/pa-manifest
[Android Software/Hacking General [Developers Only]] JustArchi:
Can we expect any update to 4.9 androideabi, Paul? :)
[Android Software/Hacking General [Developers Only]] sparksco:
-frtti is enabled in the toolchains. I had the same issues when I compiled kernels on Ubuntu vivid, that's why I switched to fedora.
[Android Software/Hacking General [Developers Only]] brandonabandon:
should i recompile 5.1 or switch distro? 22 is burned dvd giving i/o error on sr0, and i need plop to boot from external. good grief. so if fedora fails, where would i add fno-rtti? \

nm. looks as though gcc is frtti plagued.
[Android Software/Hacking General [Developers Only]] Hashbang173:
For your fedora related error, I would recommend putting the fedora installer on a flash drive using this
[Android Software/Hacking General [Developers Only]] brandonabandon:
i think my pets confiscated my flash drives'
[Android Software/Hacking General [Developers Only]] sparksco:
Actually I forgot but I just looked at the code and its only needed for gcc >=5.1.0

https://gitlab.com/SaberMod/toolchain-build/blob/master/Makefile.in#L175
[Android Software/Hacking General [Developers Only]] sparksco:
All toolchains have been updated on http://sabermod.com

All 4.8 toolchains are final and are labeled as final. If you use the latest sabermod vendor for Android roms you'll need to download arm-linux-androideabi-4.8-final.tar.xz

arm-linux-androideabi-5.2 might also be required soon. This is the start of the hybrid rom experiment.
[Android Software/Hacking General [Developers Only]] brandonabandon:
so 5.1.1 build would not need the flags? or are you unsure?
[Android Software/Hacking General [Developers Only]] brandonabandon:
the cxxflags for frtti

ifeq (yes,$(GCC_MIN_VERSION_5_1_0))

export CFLAGS_FOR_TARGET= -fexceptions

export CXXFLAGS_FOR_TARGET= -frtti

endif

ifeq (yes,$(GCC_MIN_VERSION_5_2_0))

export CFLAGS_FOR_TARGET= -fexceptions

export CXXFLAGS_FOR_TARGET= -frtti

endif

ifeq (no,$(GCC_MIN_VERSION_6_0_0))

export CFLAGS_FOR_TARGET= -fexceptions

export CXXFLAGS_FOR_TARGET= -frtti

endif

no 5.1.1
[Android Software/Hacking General [Developers Only]] sparksco:
Like I said anything >=5.1.0
[Android Software/Hacking General [Developers Only]] brandonabandon:
do you think rather export CXXFLAGS_FOR_TARGET= -fno-rtti would break?
[Android Software/Hacking General [Developers Only]] sparksco:
Why? are you using -fno-rtti? Please just get to the point already Jesus lol. And if you could try out the latest mako kernel changes with gcc 4.8.

https://github.com/SaberMod/lge-kernel-mako/commits/sm-lp1
[Android Software/Hacking General [Developers Only]] brandonabandon:
i thought not implementing -fno-rtti with 5+ builds was breaking ubuntu, etc. will try kernel with 4.8 after 5.1.1 repo syncs. in case if im misunderstood, im looking to compile the 5.1.1 tc with applying -fno-rtti flags so i can build with trusty, if possible.

edit. gitlab commit history for mako kernel is not current?

edit. overlooked the github link
[Android Software/Hacking General [Developers Only]] sparksco:
I'm not sure I don't use Ubuntu. Might work, but if your using 4.8 or 4.9 for the kernel it shouldn't matter. If you repo sync it should update the kernel automatically.
[Android Software/Hacking General [Developers Only]] brandonabandon:
fsanitize is unrecognized so i commented it out. the other commits are required as i compiled before with 5.1,4.9,4.8. however, i was using gitlab kernel, not github. anyhow, i used 4.8 final from gitlab. if you want, i will back off as i hosted my pa build on n4 forum, before i realized you were actively developing for it. otherwise i would like to push a new build, hopefully with 5.1.1 and the sm kernel. of course if you dont mind.
[Android Software/Hacking General [Developers Only]] sparksco:
I don't have any errors on my end with fsanitize. Anyways if you follow the manifest you should have everything you need to compile the kernel inline. I was actually already planning on releasing this to the nexus 4 forums, as I did all the work for porting sabermod to it. I don't really keep up on what's posted and what's not. Who post what and who doesn't.
[Android Software/Hacking General [Developers Only]] brandonabandon:
no problem. i will see to it my thread is closed. i didnt build inline because my machine is slow. i always get weird errors when building w/o source. thanks for this.
[Android Software/Hacking General [Developers Only]] sparksco:
Yeah that's probably why you have errors. I only developed the kernel for inline since that's how I build it. I honestly haven't even tried a standalone yet. The kernel only builds inline once unless you do a clean build each time... If you want to keep the thread open that's fine with me since you have the device. I was only going to post it since no one could.
[Android Software/Hacking General [Developers Only]] brandonabandon:
I relisted the ROM. Thanks.
[Android Software/Hacking General [Developers Only]] ztotherad:
Hey, I don't know if I'm doing this right or what, but I can't seem to completely sync sabermod toolchain manifest from either gitlab (have an account) or github. I'm running Ubuntu 14.04 LTS with all the required packages that are listed. It stops at binutils-gdb and can't sync it from sourcewage. I'm not sure if it's my ubuntu box or just the servers that aren't allowing me to complete this.
[Android Software/Hacking General [Developers Only]] sparksco:
GDB was removed so there's no gdb to sync to... Binutils is from a gnu server so I'm not sure why you can't sync to that.
[Android Software/Hacking General [Developers Only]] ztotherad:
Let me try to repo sync and I'll post the output of the terminal. I haven't tried repo sync -f yet, idk if that'd help at all though.

here's the output of my terminal:

ztotherad@buildb0x:~/sm-tc$ repo sync -j4
Fetching project ISL.git
Fetching project sabermod-sysroot.git
Fetching project ccache
Fetching project llvm
Fetching projects: 3% (1/28) Fetching project clang
Fetching projects: 7% (2/28) Fetching project ISL.git
Fetching project sabermod-manifest.git
Fetching projects: 10% (3/28) Fetching project toolchain-build.git
Fetching projects: 14% (4/28) Fetching project MPFR.git
Fetching projects: 17% (5/28) Fetching project OSL.git
Fetching projects: 21% (6/28) Fetching project polly
Fetching projects: 25% (7/28) Fetching project sabermod-build-scripts.git
Fetching projects: 28% (8/28) Fetching project perl
Fetching projects: 32% (9/28) Fetching project mclinker
Fetching projects: 35% (10/28) Fetching project yasm
Fetching projects: 39% (11/28) Fetching project repo
Fetching projects: 42% (12/28) Fetching project MPC.git
Fetching projects: 46% (13/28) Fetching project binutils-gdb
Fetching projects: 50% (14/28) Fetching project valgrind
Fetching projects: 53% (15/28) Fetching project benchmark
Fetching projects: 57% (16/28) Fetching project GCC_SaberMod
Fetching projects: 60% (17/28) Fetching project avr-libc
Fetching projects: 64% (18/28) Fetching project gold
Fetching projects: 67% (19/28) Fetching project sabermod-prebuilts.git
Fetching projects: 71% (20/28) Fetching project BinUtils.git
Fetching projects: 75% (21/28) Fetching project CLOOG.git
remote: Counting objects: 2, done
remote: Finding sources: 100% (96/96)
remote: Total 96 (delta 40), reused 96 (delta 40)
From https://gerrit.googlesource.com/git-repo
163fdbf..9ff2ece stable -> origin/stable
* [new tag] v1.12.27 -> v1.12.27
* [new tag] v1.12.28 -> v1.12.28
Fetching projects: 78% (22/28) Fetching project python
Fetching projects: 82% (23/28) Fetching project GMP.git
Fetching projects: 96% (27/28) fatal: unable to connect to sourceware.org:
sourceware.org[0: 209.132.180.131]: errno=Connection timed out

fatal: unable to connect to sourceware.org:
sourceware.org[0: 209.132.180.131]: errno=Connection timed out

error: Cannot fetch binutils-gdb

error: Exited sync due to fetch errors
ztotherad@buildb0x:~/sm-tc$
[Android Software/Hacking General [Developers Only]] gchild320:
Try to re-init, repo is being force updated frequently and breaking.
[Android Software/Hacking General [Developers Only]] ztotherad:
should I try it through gitlab or github though?
[Android Software/Hacking General [Developers Only]] gchild320:
Gitlab
[Android Software/Hacking General [Developers Only]] ztotherad:
yeah, that's what i repo init again and it's stuck at 96% but hasn't errored out yet.. idk how the hell to fix it though, lol.

edit: yup, now the damn thing is erroring out again trying to connect to sourcware.org

editDOS: yeah, still a no go through sabermod on gitlab. idk what the hell to do and how to fix it unfortunately, lol.
[Android Software/Hacking General [Developers Only]] sparksco:
Sourceware from gnu has nothing to do with gitlab. You can try this it might work.

$ nslookup sourceware.org

$ sudo gedit /etc/host

At the bottom of the file paste the 12 digit IP address followed by sourceware.org

123.456.789.101 sourceware.org

Save and close the file. Reboot may be required.
[Android Software/Hacking General [Developers Only]] ztotherad:
awesome I'll try it after I finish building this kernel and able to reboot.

Thank you, and I'll report back if it still doesn't work.

edit: yeah, adding that to my hosts file didn't work at all... I'm not even sure what to do anymore, lol.
[Android Software/Hacking General [Developers Only]] sparksco:
No issues here
[Android Software/Hacking General [Developers Only]] ztotherad:
yeah, i have no idea what the hell the problem is. are you running fedora or Ubuntu?
[Android Software/Hacking General [Developers Only]] sparksco:
I use both.
[Android Software/Hacking General [Developers Only]] ztotherad:
are you using ubuntu 14.04 per chance? cause there's got to be a reason why i can't sync it up to my computer.. maybe i should try fedora and see if i can possibly get it all to install that way lol. thank you again for your help sir
[Android Software/Hacking General [Developers Only]] sparksco:
Well 14.04 is the Ubuntu sabermod supports... So yes 14.04. I believe I already updated the README.md if you follow the links in the OP...

Edit

Nope I didn't update it I'll update it now.
[Android Software/Hacking General [Developers Only]] ztotherad:
I'll try it when i get home tonight and see if i can get it to finally sync so i can build some killer sm toolchains for my kernel I'm trying to build
[Android Software/Hacking General [Developers Only]] deepongi:
./remove_crappy_long_post.sh

was having a issue, but i sorted it out.. :)

btw, those who cant build CM today, and are using x86_64-linux-glibc2.15-4.8, you'll need these two commits:

http://review.cyanogenmod.org/#/c/108816/ | http://review.cyanogenmod.org/#/c/108819/

regards.
[Android Software/Hacking General [Developers Only]] brandonabandon:
im building for cm base http://stackoverflow.com/questions/32424290/cm12-1-cmsdk-gradle-build-error. this occurs with ubuntu and fedora. i add https://github.com/NamelessRom/android_build/search?utf8=✓&q=org.cyanogenmod.platform to core_minimal.mk and same error. im using slim build from sm gitlab. rom builds fine with stock /build. i have diffed the repo without success. any advice?