yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] deepongi:
all right, its done..! :cowboy:

https://github.com/infected-lp/android_build/commits/saber

https://github.com/infected-lp/android_kernel_sony_msm8974/commits/saber

https://github.com/infected-lp/vendor_sm/commits/saber

now its fully working and up-to-date with yours on gitlab.

my builds grew 20MB since my previous optimizations ... :D

thanks [MENTION=2394329]sparksco[/MENTION]!

ps: you are building with 5.1 for ROM code?
[Android Software/Hacking General [Developers Only]] sparksco:
Your still using 4.8 right? So does it really matter?
[Android Software/Hacking General [Developers Only]] deepongi:
using 4.8/4.8 for LG G Pad 8.3", and 4.9/4.9 for Xperia Z2.. i cant boot anything higher that 4.8 on the Pad.

going to compile 5.1 tonight and test it on Z2 kernel.. ill grab the fixes from your hammerhead kernel .. :p
[Android Software/Hacking General [Developers Only]] sparksco:
I actually didn't push all the ROM fixes just preparing the vendor for when it does work. There's still quite a few bugs with 5.1.
[Android Software/Hacking General [Developers Only]] deepongi:
going to try 5.1 but for kernel code, not ROM code. have to push it to gitlab, its done already. damn github and their binary size limit :mad:

edit:

with arm-eabi 5.1 compiled last night, i get thrown at me a set of errors, graphite related;

http://pastebin.com/J7Yjhe6k

(to be confirmed)

edit #2 getting the same with 4.9 built last night

http://pastebin.com/F6T6qsmD

going to try the previous set of toolchains.
[Android Software/Hacking General [Developers Only]] deepongi:
DAMN IT! :mad:

im stuck... already did the whole process twice, and i keep getting this build break after a couple of minutes;

target arm C: libext2_blkid <= external/e2fsprogs/lib/blkid/devno.c
target arm C: libext2_blkid <= external/e2fsprogs/lib/blkid/getsize.c
target arm C: libext2_blkid <= external/e2fsprogs/lib/blkid/llseek.c
target arm C: libext2_blkid <= external/e2fsprogs/lib/blkid/probe.c
target arm C: libext2_blkid <= external/e2fsprogs/lib/blkid/probe_exfat.c
clang++: error: unknown argument: '-mvectorize-with-neon-quad'
clang++: error: unknown argument: '-ftree-loop-distribution'
clang++: error: unknown argument: '-ftree-loop-if-convert'
clang++: error: unknown argument: '-ftree-loop-im'
clang++: error: unknown argument: '-ftree-loop-ivcanon'
clang++: error: unknown argument: '-fgraphite'
clang++: error: unknown argument: '-fgraphite-identity'
clang++: error: unknown argument: '-floop-flatten'
clang++: error: unknown argument: '-ftree-loop-linear'
clang++: error: unknown argument: '-floop-interchange'
clang++: error: unknown argument: '-floop-strip-mine'
clang++: error: unknown argument: '-floop-block'
target arm C: libext2_blkid <= external/e2fsprogs/lib/blkid/probe_f2fs.c
make: *** [/home/infected_/Output/cyan_12/target/product/sirius/obj/EXECUTABLES/app_process__asan_intermediates/app_main.o] Error 1
make: *** Waiting for unfinished jobs....
'

anyone got any idea?

edit: [MENTION=2394329]sparksco[/MENTION] on the hammerhead kernel on gitlab, the commits i need to work with vendor/saber are the ones from 30th of April forward right?

i just dont get it how it build ok once, and all i did was just push to my github, and then repo sync and try to build again.

edit #2

hahahahhahahah !!! :laugh:

this mofo missing commit...! - https://gitlab.com/SaberMod/pa-android-build/commit/3a6a303a3dfe4a8bbb47c312da11444500b0f73d

was driving me nuts... :eek:

now we're rolling ... :good: :D :cool: :cowboy:
[Android Software/Hacking General [Developers Only]] sparksco:
All the prebuilts have been updated. Also the toolchain sources. Do not expect arm-linux-androideabi-5.1 to work out of the box just fine.
[Android Software/Hacking General [Developers Only]] Mr.R™:
Hi [MENTION=2394329]sparksco[/MENTION] i'm having some issues, i've installed isl/mpfr/gmp/gdb/mpc/osl on ubuntu 15.04 (using the proper commands (configure make make install and autogen when needed) and now when trying to install cloog i'm getting Checking weather the c compiler works: no

It originally stated isl/osl folders are missing so i copied them into the cloog dir (i'm assuming ive already made a mistake at this point, as i have them installed i'm assuming it should use whats already installed and not need the dir in the cloog folder (correct me if i'm wrong)) and i can't for the life of me figure out whats going on. I have added usr/local/lib to my bash.rc as ld_library_path i also have path=~/bin in there as well. Have i missed something? The read me's/instructions arent as clear as i'd like so your help is much appreciated :)
[Android Software/Hacking General [Developers Only]] sparksco:
What's not clear about the instructions on the README? I've made two fresh installs of Ubuntu recently, and following those instructions have worked fine for me.
[Android Software/Hacking General [Developers Only]] Mr.R™:
They could be more clear and concise imo that's all.

Like it states for a few if you are taking the source from the git repository then run ./autogen.sh

Well i have taken it from the git repository, but what if i've downloaded it as a zip not cloned it, should i still run autogen or should i skip that because i downloaded it as a zip and didn't clone it?

With cloog, it states the same but as i know ./get_submodules.sh won't run unless it's been cloned i know i have to run autogen and get_submodules

This could all be much clearer imo.

Now to my problem which could quite possibly have been avoided if the instructions for it were clearer.

As i said, i cloned cloog, tried to run it, got an error about isl and osl being missing.

My question here is should i have to copy the isl/osl folders i got from your gitlab over or should it be using the isl/osl i have just installed via make, make install etc?

If it should be using the isl/osl i have just installed why isn't it? is there something i should of added that maybe i have missed such as a path?
[Android Software/Hacking General [Developers Only]] sparksco:
The manifest README doesn't say anywhere to run autogen.sh

I updated the README just recently, maybe check there on how to install the latest prebuilt libs.
[Android Software/Hacking General [Developers Only]] deepongi:
+1

they always did worked fine for me. dont complicate whats easy to do.

regards.

ps:

[MENTION=2394329]sparksco[/MENTION] any clue why i cant boot Z2 msm8974 with 5.1? it boots, and get two "pulses" on the cm logo, and them it stays in that bootloop.

gzip kernel compression didnt helped.
[Android Software/Hacking General [Developers Only]] :
Hi, I have compiled an AOSP based ROM for my device Falcon. I want to add SaberMod ToolChain to it. I have added Uber and compiled successfully but want to move to SaberMod. I am confused about which repos should I sync. I added the following line to my local manifest to get Uber synced :

<project path="prebuilts/gcc/linux-x86/arm/arm-eabi-4.9" name="UBERTC/arm-eabi-4.9" remote="bb" revision="master" />

I know it seems silly but can u point out the repo I need to use for SaberMod?
[Android Software/Hacking General [Developers Only]] deepongi:
sabermod dev's are only updating the toolchain prebuilts on sabermod.net

if you want to use use a git to clone, or add to manifests, you can use mine: https://github.com/infected-lp/sm_arm-eabi-4.9.x

its always updated. this case, you line on the xml will be:

<project path="prebuilts/gcc/linux-x86/arm/arm-eabi-4.9" name="infected-lp/sm_arm-eabi-4.9.x" remote="github" revision="master" />

regards.

ps: hope its ok with the devs, i providing a link to the toolchain git.
[Android Software/Hacking General [Developers Only]] ivankolev:
trying on arm-linux-androideabi-5.1

Hi, any solution on:

target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/btif_rfcomm.c

external/bluetooth/bluedroid/main/../btif/src/btif_rfcomm.c: In function 'rdut_rfcomm':

external/bluetooth/bluedroid/main/../btif/src/btif_rfcomm.c:163:21: error: comparison of constant '3' with boolean expression is always false [-Werror=bool-compare]

else if (server == 3)

Also I read somewhere your instructions on sm-tc compiling on 15.04. Should we only compile or should we only use prebuilts? Or now the case on 15.04 is closed?

Regards
[Android Software/Hacking General [Developers Only]] kogone:
i'm trying to build on arch

i keep getting errors like this:

make[3]: *** No rule to make target 'mpn/sub_n.lo', needed by 'libgmp.la'.
make[3]: *** No rule to make target 'mpn/cnd_add_n.lo', needed by 'libgmp.la'.
make[3]: *** No rule to make target 'mpn/cnd_sub_n.lo', needed by 'libgmp.la'.

i know that file comes from the libgmp-dev package, but i can't find the equivalent on aur.

can't get it to work even if i extract the files from the libgmp-dev.db and copy them in place. (like the method for copying the sabermod prebuilt libs)

any help would be appreciated!
[Android Software/Hacking General [Developers Only]] sparksco:
Well you have a lot of options. You can compile the toolchains yourself (self served). You can download and extract the ones from sabermod.net Or you can use ones compiled by other people (third party) from git mirrors.
[Android Software/Hacking General [Developers Only]] deepongi:
do you have the mirror #multiarch enabled?
[Android Software/Hacking General [Developers Only]] kogone:
i have this enabled

https://wiki.archlinux.org/index.php/Multilib

same thing right?
[Android Software/Hacking General [Developers Only]] sparksco:
It won't matter if you use the prebuilts or compile your own. The end result will be the same. For the error, I've never had it.
[Android Software/Hacking General [Developers Only]] deepongi:
yes.

https://www.archlinux.org/packages/core/i686/gmp/files/

pacman -S gmp

if you already have it installed, use yaourt, grab the first two packages: https://aur.archlinux.org/packages/?O=0&C=0&SeB=nd&K=libgmp&outdated=&SB=n&SO=a&PP=50&do_Search=Go

and try to compile. i was able to build for sirius on linux arch, but it think i wasnt able to build sabermod.
[Android Software/Hacking General [Developers Only]] Mr.R™:
It says it right here:

**-------------------------------------------------------------------**

# ** II. Building CLooG **

# **-------------------------------------------------------------------**/

If you obtained CLooG from the git repository, then you first

need to obtain the submodules and create a configure script.

./get_submodules.sh

./autogen.sh

The first step is only needed if you plan on using the isl backend.

The configure shell script attempts to guess correct values for various

system-dependent variables used during compilation. It uses those values to

create a Makefile. The file configure.ac is used to create configure by a

program called autoconf. You only need configure.ac if you want to change

it or regenerate configure using a newer version of autoconf.

The simplest way to compile this package is:

cd to the directory containing the package's source code and type

./configure

I was trying to build and install the libs for myself if that wasn't clear, i have managed to build and install gmp/isl/mpc/mpfr/osl but cloog won't play nice, all from your gitlab, i have however copied over the libs from the prebuilts just so i'm not banging my head against a wall

so you've compiled cloog from source have you? if so how?
[Android Software/Hacking General [Developers Only]] kogone:
cool thanks. that's as far as i got before posting. then started pasting in libmpg.la ... lol

ill make a request for it in AUR
[Android Software/Hacking General [Developers Only]] sparksco:
I haven't heard of anyone compiling on arch successfully. But the prebuilt toolchains should work fine on it for ROMs/kernels as long as you follow the prebuilt instructions on bitbucket.
[Android Software/Hacking General [Developers Only]] sparksco:
I've never even seen those messages in terminal before. I updated all the configure scripts for gcc and build repo. Try that. Cloog and isl etc are all compiled manually before gcc in the scripts. That's how.
[Android Software/Hacking General [Developers Only]] kogone:
here we go! https://bbs.archlinux.org/viewtopic.php?pid=1536242#p1536242

update: solved by building gmp and inserting "options=('libtool') into the PKGBUILD
[Android Software/Hacking General [Developers Only]] sparksco:
Why do you keep going off topic about arch? You know it's not a supported distro for SaberMod as it clearly says only Ubunutu is supported.

If you find solutions or are able to compile on arch, I don't mind if you post instructions. But don't expect help or support to get it working...
[Android Software/Hacking General [Developers Only]] Mr.R™:
So i'm pretty sure i've got everything in place, still can't build cloog but ive used your libs, when trying to build i keep getting the following error:

endian.h' file not found

#include <endian.h>

Is there a specific version i should be using? i can see endian.h is there so i can only assume it's a version mismatch or some such issue. All help is much appreciated :)
[Android Software/Hacking General [Developers Only]] sparksco:
It seems like your missing the google host toolchain. Mentioned in the OP.

Or refer to this post.

http://xdaforums.com/showthread.php?p=60945188
[Android Software/Hacking General [Developers Only]] deepongi:
[MENTION=2394329]sparksco[/MENTION] can you help me out on this one?

http://pastebin.com/8hsMbbqL

im not building with strict-aliasing.

what should i add to "LOCAL_DISABLE_GRAPHITE" and/or "LOCAL_DISABLE_O3" ?

been around this error for more than a hour now.... :mad:

tried almost every lib/module.

thanks!
[Android Software/Hacking General [Developers Only]] sparksco:
Nope I can't. Ask the twrp dev for assistance.
[Android Software/Hacking General [Developers Only]] sparksco:
By default strict-aliasing is turned off in vendor/sm/build/strict.mk
[Android Software/Hacking General [Developers Only]] deepongi:
i got stuck at that point, so i moved on for now. ill return to it later.

and i was about to build sabermod this morning, but sources seems to have issues.

heres the log for arm-eabi 4.8 if you wanna take a look:

http://pastebin.com/RiqS1LAP

ps: the new zip file (20150616) with the needed is installed, along with all others referred on the readme file on gitlab.

edit:

hope this helps also, the output error:
[Android Software/Hacking General [Developers Only]] marcomarinho:
come on!

do you have any idea [MENTION=2394329]sparksco[/MENTION] ?

arm-linux-androideabi-gcc: error: unrecognized command line option '-fno-slp-vectorize'
make: *** [/home/marco/build/euclidean/out/target/product/hammerhead/obj/STATIC_LIBRARIES/libpng_intermediates/png.o] Error 1
make: *** Waiting for unfinished jobs....
[Android Software/Hacking General [Developers Only]] bigsupersquid:
deleted

the post i was quoting changed
[Android Software/Hacking General [Developers Only]] marcomarinho:
oh, that one fixed by himself xD
[Android Software/Hacking General [Developers Only]] sparksco:
I'll check into it when I get home, I think I forgot to push my local changes to gitlab.
[Android Software/Hacking General [Developers Only]] sparksco:
Just do everyone knows. I'll be uploading all the toolchains to http://sabermod.com instead of sabermod.net. This is a server upgrade to use a server I actually own, unlike sabermod.net which is owned by a idiot.
[Android Software/Hacking General [Developers Only]] sparksco:
Do a thread search you might find your answer. I won't normally hand feed people links especially in a developer only forum. But since this one is a lot of pages back here ya go.

http://xdaforums.com/showthread.php?p=60950458
[Android Software/Hacking General [Developers Only]] marcomarinho:
Idk if this have anything to do with the optimizations or even the toolchain, but I searched everywhere and didn't found any problem similar :/

In file included from external/android-clat/translate.c:25:0:
external/android-clat/config.h:44:1: error: unknown type name 'in_addr_t'
in_addr_t config_select_ipv4_address(const struct in_addr *ip, int16_t prefixlen);
^
external/android-clat/config.h:47:31: error: unknown type name 'in_addr_t'
typedef int (*addr_free_func)(in_addr_t addr);
^
make: *** [/home/marco/build/euclidean/out/target/product/hammerhead/obj/EXECUTABLES/clatd_intermediates/translate.o] Error 1
make: *** Waiting for unfinished jobs....
[Android Software/Hacking General [Developers Only]] sparksco:
What version of gcc?
[Android Software/Hacking General [Developers Only]] marcomarinho:
4.9 ROM & 5.1 kernel
[Android Software/Hacking General [Developers Only]] sparksco:
Can't say I've encountered the error before...
[Android Software/Hacking General [Developers Only]] sparksco:
Quick update:

The source is now buildable again. There was a short time where things got really weird compiling on Ubuntu Vivid 15.04...

So I went to my Ubuntu trusty 14.04 distro and was able to update the source and compile successfully.

In addition, I was also able to backport some gcc trunk and aosp patches to the gcc 4.9.3 branch. These patches should help with vectorization flag optimizations.

We are now updated to isl 0.15! This handles graphite flags in gcc 5.1/6.0

To see more detailed info on all changes visit saberlab

arm-linux-androideabi-4.9 has already been updated and is available here

The rest of the kernel toolchains and aarch64-linux-android-4.9 should appear on the saber site later on this morning.

P.S.

Happy Father's Day to all you dads out there!
[Android Software/Hacking General [Developers Only]] shoey63:
Sunday

September 6 for us Aussies :p
[Android Software/Hacking General [Developers Only]] deepongi:
i think fathers day was in March here in Portugal.. :D
[Android Software/Hacking General [Developers Only]] marcomarinho:
Yup [emoji4]
[Android Software/Hacking General [Developers Only]] sparksco:
Let me know next year and I'll make some special updates for you guys :D

Just consider this year a late father's day update :p
[Android Software/Hacking General [Developers Only]] sparksco:
[MENTION=1077833]infected_[/MENTION] I found the bug where strict-aliasing was enabled even if it wasn't enabled just like you said...

The change is in this commit.

Also to everyone in general:

I wanted to see if anyone has had issues compiling the kernel on Ubuntu Vivid 15.04, with a strange error that points to scripts/basic/fixdeps.c.

If so, I think I found a fix for it here.
[Android Software/Hacking General [Developers Only]] kenzolo:
prebuilts/gcc/linux-x86/arm/arm-eabi-5.1/bin/../libexec/gcc/arm-linux-gnueabi/5.1.x-sabermod/cc1: error while loading shared libraries: libisl.so.15: cannot open shared object file: No such file or directory

I think I need to install libisl.so.15, but where I can find the package?
[Android Software/Hacking General [Developers Only]] sparksco:
I keep getting unknown type errors in my kernel now for hammerhead but not the rom. Really strange. Are you also using Ubuntu Vivid? I'm also at a loss here on what the cause is.
[Android Software/Hacking General [Developers Only]] deepongi:
make sure you have ubuntu toolchain test ppa added to your distro, and install these libs:

http://www.mediafire.com/download/cp01d4ktmndk92m/sabermod-prebuilts-20150616.zip

regards.

OT edit:

anyone ever had font rendering issues on Chrome (Linux) ?! The fonts are all blurry... and i mean, its only on Chrome, the rest is all fine.
[Android Software/Hacking General [Developers Only]] marcomarinho:
Ubuntu 14.04... I searched all over the net and didn't found anyone who had this error --' strange

I will build only the kernel to see if is that the problem
[Android Software/Hacking General [Developers Only]] kenzolo:
thanks,

just last question,where I need to paste "include" folder of this zip?
[Android Software/Hacking General [Developers Only]] sparksco:
You sure your on 14.04? Some people say they're on 14.04 and have no issues...

I'm going to reinstall with 14.04. Once I get everything set up I'll report back.
[Android Software/Hacking General [Developers Only]] marcomarinho:
Yup :) okay, thanks :D
[Android Software/Hacking General [Developers Only]] deepongi:
lib = /usr/lib/x86_64-linux-gnu

include = /usr/include/x86_64-linux-gnu
[Android Software/Hacking General [Developers Only]] sparksco:
While we're at it, don't forget shared too.
[Android Software/Hacking General [Developers Only]] afi1982:
[MENTION=2394329]sparksco[/MENTION] can you please reupload this file sabermod-prebuilts_20150520-1_all.deb ?

the old google drive link is not working
[Android Software/Hacking General [Developers Only]] marcomarinho:
Read the first post please!

Why do you want older prebuilts?
[Android Software/Hacking General [Developers Only]] Joeisgood99:
Device specific optimisation for sm-tc (HTC m7)

Fantastic thread!

Im very new to building tool chains.

I have compiled Kangaroo kernel and stock kernel using Christopher83s linaro 4.9 tool chain and google 4.8, tool chains.

I Want to compile a tool chain specific for my device, HTC ONE (m7) cpu=v7a, arm-eabi. board=APQ8064. I have sync repo and now looking at build scripts in sm-tc/ smbuild/arm/arm-eabi-5.1

looking at post #3

When building a saborMod toolchain, at what stage and where do I add the relevant values from my get.prop to make the tool chain optimised for my device as opposed to the sm pre-built equivalent.

Thanks.
[Android Software/Hacking General [Developers Only]] sparksco:
Sure I'll upload a zip and instructions for latest prebuilts.

I think what he means in the third post is you can edit the build scripts in smbuild. Simply by adding it in gcc configuration.
[Android Software/Hacking General [Developers Only]] sparksco:
For prebuilt libraries to compile the toolchains and also be able to compile roms/kernels with the toolchains, see the updated README.md.

https://gitlab.com/SaberMod/sabermod-manifest

Also a quick access to the download link can be found on http://sabermod.com/prebuilt-libs/
[Android Software/Hacking General [Developers Only]] deepongi:
shouldnt the libs go to x86_64-linux-gnu on both /lib and /include on the prebuilt zip? i just duplicated my files...

now i have them on /usr/lib/x86_64-linux-gnu && /usr/include/x86_64-linux-gnu and also now on /usr/lib and /usr/include
[Android Software/Hacking General [Developers Only]] sparksco:
It shouldn't matter where they go. If you prefer it in x86_64-linux-gnu you can put it there instead. You can also delete any duplicate files you have.
[Android Software/Hacking General [Developers Only]] marcomarinho:
[MENTION=2394329]sparksco[/MENTION] do you know anything about this ? http://pastebin.com/MGgciqH1
[Android Software/Hacking General [Developers Only]] sparksco:
I'm compiling toolchains and roms on fedora now and everything just works. But I'll continue to update the Ubuntu toolchains.
[Android Software/Hacking General [Developers Only]] deepongi:
how did you solved the openjdk7 issue? fedora 21 and 22 dont have it in their repos. fedora 20 has it. and you can also edit /build to remove check for jdk 7 and add experimental support for jdk 8, like i did.

https://github.com/infected-lp/android_build/commit/27a95bf58eadb2ec72ef6f4b5341e614042886af

then just: export EXPERIMENTAL_USE_JAVA8=true
[Android Software/Hacking General [Developers Only]] sparksco:
I installed the openjdk7 from fedora 20 and removed openjdk8 on fedora 22. Is openjdk8 functional? Regards.
[Android Software/Hacking General [Developers Only]] sparksco:
A couple updates (one for rom and one for gcc 4.9.4).

https://plus.google.com/+PaulBeeler/posts/eED5WhoF1oc

https://plus.google.com/+PaulBeeler/posts/dyDKB61Nrsg
[Android Software/Hacking General [Developers Only]] deepongi:
last time i tried on fedora 22, i wasnt able to compile. the build would break right at start.
[Android Software/Hacking General [Developers Only]] sparksco:
[MENTION=4630246]Hashbang173[/MENTION] helped me get java set up right. I don't remember all the commands I did to install it but he'd probably be able to help out more there then I would. I also don't remember all the packages I installed to get set up for building the toolchains and roms. That's why I haven't updated a README yet for fedora for the toolchains...