yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] studymadara:
error

guys i m getting error while building

i m a newbie

i attached the screenshot please help me
[Android Software/Hacking General [Developers Only]] Hashbang173:
To install openjdk 7, remove all java related things you installed.

Then run:

sudo dnf install java-1.7.0-openjdk-devel --releasever=20 --nogpgcheck

Then, to stop dnf from updating this to java 8 when you run sudo dnf update, add

exclude=*openjdk* *java*

to the bottom of /etc/dnf/dnf.conf
[Android Software/Hacking General [Developers Only]] sparksco:
I thought java 8 was default in fedora 22 , so it's nothing we installed.
[Android Software/Hacking General [Developers Only]] deepongi:
openjdk 8 is default both on fedora 21 and 22.
[Android Software/Hacking General [Developers Only]] berryman13:
You still need to manually install openjdk-1.7.0 and stop it from updating to 1,8,0..... it will build with 1.8 but will throw errors down the line, it needs to be jdk7 right now
[Android Software/Hacking General [Developers Only]] Hashbang173:
Yeah, I'm guessing java 7 will be needed until android m.
[Android Software/Hacking General [Developers Only]] sparksco:
I haven't tried Android m preview yet (too much hype). But I'm sure you could extract a system apk and dissect it to see what java version it uses in the META folder files.
[Android Software/Hacking General [Developers Only]] brandonabandon:
target Executable: screencap (/home/brandonabandon/pa/out/target/product/maguro/obj/EXECUTABLES/screencap_intermediates/LINKED/screencap)

frameworks/base/cmds/screencap/screencap.cpp:179: error: undefined reference to 'SkBitmap::SkBitmap()'

external/skia/include/core/SkBitmap.h:342: error: undefined reference to 'SkBitmap::installPixels(SkImageInfo const&, void*, unsigned int, SkColorTable*, void (*)(void*, void*), void*)'

frameworks/base/cmds/screencap/screencap.cpp:181: error: undefined reference to 'SkDynamicMemoryWStream::SkDynamicMemoryWStream()'

frameworks/base/cmds/screencap/screencap.cpp:183: error: undefined reference to 'SkImageEncoder::EncodeStream(SkWStream*, SkBitmap const&, SkImageEncoder::Type, int)'

frameworks/base/cmds/screencap/screencap.cpp:184: error: undefined reference to 'SkDynamicMemoryWStream::copyToData() const'

frameworks/base/cmds/screencap/screencap.cpp:181: error: undefined reference to 'SkDynamicMemoryWStream::~SkDynamicMemoryWStream()'

frameworks/base/cmds/screencap/screencap.cpp:186: error: undefined reference to 'SkBitmap::~SkBitmap()'

collect2: error: ld returned 1 exit status

make: *** [/home/brandonabandon/pa/out/target/product/maguro/obj/EXECUTABLES/screencap_intermediates/LINKED/screencap] Error 1

happy 4th devs. any help with screencap error compiling for saborized aospa with sm-pa frameworks.
[Android Software/Hacking General [Developers Only]] sparksco:
I don't have that error. Just finished builds for hammerhead, mako and shamu just fine.

Edit: [MENTION=5554158]brandonabandon[/MENTION] I don't think you can use the frameworks/base from sabermod gitlab if your compiling from github.com/AOSPA-L

The frameworks/base on sabermod gitlab is from github.com/AOSPA (nexus devices). So you'd have to cherry-pick the commits to the frameworks/base from sabermod gitlab.
[Android Software/Hacking General [Developers Only]] brandonabandon:
i dl'd the sm-pa fw base zip from gitlab, and replaced the aospa fw base. i was able to compile screencap successfully by replacing skia with omni's, then new error with runtime

frameworks/base/core/jni/android_view_Surface.cpp:383: error: undefined reference to 'android::uirenderer::AnimationContext::AnimationContext(android::uirenderer::renderthread::TimeLord&)'

frameworks/base/core/jni/android_view_Surface.cpp:410: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::syncAndDrawFrame(long long, long long, float)'

frameworks/base/core/jni/android_view_Surface.cpp:404: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::updateSurface(android::sp<ANativeWindow> const&)'

frameworks/base/core/jni/android_view_Surface.cpp:391: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::RenderProxy(bool, android::uirenderer::RenderNode*, android::uirenderer::IContextFactory*)'

frameworks/base/core/jni/android_view_Surface.cpp:392: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::loadSystemProperties()'

frameworks/base/core/jni/android_view_Surface.cpp:393: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::setSwapBehavior(android::uirenderer::renderthread::SwapBehavior)'

frameworks/base/core/jni/android_view_Surface.cpp:394: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::initialize(android::sp<ANativeWindow> const&)'

frameworks/base/core/jni/android_view_Surface.cpp:397: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::setup(int, int, android::uirenderer::Vector3 const&, float, unsigned char, unsigned char)'

frameworks/base/core/jni/android/graphics/Paint.cpp:809: error: undefined reference to 'android::uirenderer::Blur::convertRadiusToSigma(float)'

collect2: error: ld returned 1 exit status

make: *** [/home/brandonabandon/pa/out/target/product/maguro/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/LINKED/libandroid_runtime.so] Error 1
[Android Software/Hacking General [Developers Only]] sparksco:
Yup don't have that error either.
[Android Software/Hacking General [Developers Only]] cornpoppy:
Hi, I have some problems on building kernel with sabermod 4.9. The vmlinux can be compiled without issues. But there are some undefined OpenMP references with modpost modules.

CC [M] drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_timer.o

CC [M] drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_trace.o

LD [M] drivers/staging/prima/wlan.o

Building modules, stage 2.

MODPOST 23 modules

ERROR: "GOMP_parallel" [drivers/staging/prima/wlan.ko] undefined!

ERROR: "omp_get_num_threads" [drivers/staging/prima/wlan.ko] undefined!

ERROR: "omp_get_thread_num" [drivers/staging/prima/wlan.ko] undefined!

/home/xing/android/cm-12.1/kernel/sony/msm8x60/scripts/Makefile.modpost:92: recipe for targ

et '__modpost' failed

make[3]: *** [__modpost] Error 1

/home/xing/android/cm-12.1/kernel/sony/msm8x60/Makefile:1212: recipe for target 'modules' f

ailed

make[2]: *** [modules] Error 2

Makefile:130: recipe for target 'sub-make' failed

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory '/home/xing/android/cm-12.1/kernel/sony/msm8x60'

I have merged your kernel makefile changes. Could you please help me take a look at it? Thanks,
[Android Software/Hacking General [Developers Only]] sparksco:
Take a look at what? I don't see a link to your kernel source. Can't really know what's causing it without a source... Also, openmp shouldn't be used on modules. None of the sabermod kernels compile with modules.
[Android Software/Hacking General [Developers Only]] cornpoppy:
Thanks for reply!

The kernel source code is here.

https://github.com/Zhang-Xing/android_kernel_sony_msm8x60

And here is kernel defconfig.

https://github.com/Zhang-Xing/andro...1/arch/arm/configs/cm_blue_hayabusa_defconfig

Should I disable openmp for kernel compile or disable modules build for kernel? Thanks.
[Android Software/Hacking General [Developers Only]] sparksco:
Your kernel might need those modules..

Only thing I can think of is adding graphite flags to modules

KBUILD_CFLAGS_MODULE := -DMODULE $(GRAPHITE_KERNEL_FLAGS)

On line 470 of the Makefile

Maybe it will work maybe not. As a last resort I would remove graphite flags.
[Android Software/Hacking General [Developers Only]] brandonabandon:
USE_OPENGL_RENDERING := TRUE add to boardconfig. Sorry I bothered. Thanks for being open-sourced.
[Android Software/Hacking General [Developers Only]] cornpoppy:
Unfortunately, it doesn't work. But if I remove these two lines from vendor/sm/device/sm_(my device).mk file, the errors are gone. However, I don't know the reason.

GRAPHITE_KERNEL_FLAGS := \

-floop-parallelize-all \

-ftree-parallelize-loops=$(PRODUCT_THREADS) \

-fopenmp

Thank you for providing the great toolchains and optimizations.
[Android Software/Hacking General [Developers Only]] sparksco:
Kernels that use prima drivers have this problem. It's the same thing for mako (nexus 4). You shouldn't notice a lot of performance loss.
[Android Software/Hacking General [Developers Only]] cornpoppy:
I see. Thanks for your explanation!
[Android Software/Hacking General [Developers Only]] lacus:
Is there mirror links to download prebuits? I'm getting super slow speed on sabermod.com

Thanks
[Android Software/Hacking General [Developers Only]] sparksco:
I just downloaded a rom from there in hardly any time at all. Only took me about 5 minutes. What country are you in? And no I don't have the time to maintain mirrors all the time.
[Android Software/Hacking General [Developers Only]] lacus:
I see, i only get 5-10KBps. I'm from Indonesia.

Ah well, i think i'll let it download over night.

Thank you for your response.
[Android Software/Hacking General [Developers Only]] sparksco:
I emailed support let's see if they can fix it. To me this is unacceptable on their end.
[Android Software/Hacking General [Developers Only]] sparksco:
Quick update this weeks toolchains were delayed. If you were wondering why it's because I'm working on some new updates that include a new gcc for gcc 4.9 toolchains.

https://plus.google.com/+PaulBeeler/posts/573roE9eh7J

Prebuilt toolchains on http://sabermod.com should be up tonight or tomorrow for all versions.
[Android Software/Hacking General [Developers Only]] deepongi:
going to test the 4.9 google hybrid, compiling now.

good idea to let the users choose which GCC to use.
[Android Software/Hacking General [Developers Only]] sparksco:
Are you on fedora? Did I say it was ready?
[Android Software/Hacking General [Developers Only]] deepongi:
you're right, it isnt :D

and no, im on ubuntu 14.04.2 base.

checking for x86_64-linux-gnu-gnatmake... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations. Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
http://gcc.gnu.org/install/prerequisites.html for additional info. If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files. They may be located in separate packages.

Compiling sabermod toolchain arm-linux-androideabi-4.9 ...
./arm-linux-androideabi-4.9: line 313: ./build-failed: No such file or directory
[Android Software/Hacking General [Developers Only]] sparksco:
I know, no need for a log or explanation. It will be ready when it's ready. No ETA.
[Android Software/Hacking General [Developers Only]] brandonabandon:
howdy devs, my saberized aospa build for maguro is bootlooping, any ideas? http://pastebin.com/QjTJNi59

W/linker ( 1199): libEGL_POWERVR_SGX540_120.so: unused DT entry: type 0xf arg 0x54e

W/linker ( 1199): libIMGegl_SGX540_120.so: unused DT entry: type 0xf arg 0x898

W/linker ( 1199): libsrv_um_SGX540_120.so: unused DT entry: type 0xf arg 0xeb9

D/libEGL ( 1199): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so

W/linker ( 1199): libGLESv1_CM_POWERVR_SGX540_120.so: unused DT entry: type 0xf arg 0xd66

W/linker ( 1199): libusc_SGX540_120.so: unused DT entry: type 0xf arg 0x2dc

W/linker ( 1199): libGLESv2_POWERVR_SGX540_120.so: unused DT entry: type 0xf arg 0xe4b

W/linker ( 1199): libGLESv1_CM_POWERVR_SGX540_120.so: unused DT entry: type 0xf arg 0xd66

W/linker ( 1199): libusc_SGX540_120.so: unused DT entry: type 0xf arg 0x2dc

D/libEGL ( 1199): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so

W/linker ( 1199): libGLESv2_POWERVR_SGX540_120.so: unused DT entry: type 0xf arg 0xe4b

D/libEGL ( 1199): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so

W/linker ( 1199): libpvrANDROID_WSEGL_SGX540_120.so: unused DT entry: type 0xf arg 0x112

--------- beginning of crash

E/AndroidRuntime( 439): *** FATAL EXCEPTION IN SYSTEM PROCESS: MountService#onDaemonConnected

E/AndroidRuntime( 439): java.lang.IllegalArgumentException: Failed to find storage device at /storage/emulated/0

E/AndroidRuntime( 439): at android.os.Environment.isExternalStorageEmulated(Environment.java:791)

E/AndroidRuntime( 439): at android.os.Environment.isExternalStorageEmulated(Environment.java:775)

E/AndroidRuntime( 439): at com.android.server.pm.PackageManagerService.isExternalMediaAvailable(PackageManagerService.java:8555)

E/AndroidRuntime( 439): at com.android.server.pm.PackageManagerService.startCleaningPackages(PackageManagerService.java:8595)

E/AndroidRuntime( 439): at com.android.server.pm.PackageManagerService.updateExternalMediaStatusInner(PackageManagerService.java:13595)

E/AndroidRuntime( 439): at com.android.server.pm.PackageManagerService.scanAvailableAsecs(PackageManagerService.java:13508)

E/AndroidRuntime( 439): at com.android.server.MountService$3.run(MountService.java:864)

I/Process ( 439): Sending signal. PID: 439 SIG: 9

a build with 4.9 doesnt boot past bootloader. the said build with 4.8 and disabled graphite.
[Android Software/Hacking General [Developers Only]] sparksco:
Status update

https://plus.google.com/+PaulBeeler/posts/WzgvuZP9uEr
[Android Software/Hacking General [Developers Only]] deepongi:
i wasn't even close to ask for an ETA, i know how things roll, in case you haven't noticed so far.

and yes, it will be ready when its ready, couldn't expect less.

regards.
[Android Software/Hacking General [Developers Only]] DSA:
ETA requests are by far one of the most irritating things on here...such an ungrateful act

Its up there with not reading the first post which is an epidemic on xda
[Android Software/Hacking General [Developers Only]] sparksco:
I know, I was simply putting it out it there that I don't know when it will be ready. The new GDB 7.10 has been giving me trouble but I think I'm on the right path to getting it to work. Once the fedora branch is fully tested on all gcc versions I'll merge updates for Ubuntu. I treat the fedora branch as the main development branch which is why I test new changes there first.

Agreed! I run into new issues all the time that take time to figure out and debug.

It's not to be mean and make the source unusable by any means :)
[Android Software/Hacking General [Developers Only]] sparksco:
I'm not sure what you mean. The kernel was build with gcc 4.9?

Honestly after looking at the log it looks like a crash because it can't find your storage. Most likely that would be strictly a rom issue.
[Android Software/Hacking General [Developers Only]] sparksco:
Source is updated and prebuilt toolchains are up. All the arm 4.9 toolchains are built with the Google hybrid gcc toolchains for this week's updates. enjoy!
[Android Software/Hacking General [Developers Only]] brandonabandon:
I Think its source related, as the same results occur w/o saberizing. I.e. original source. Humour me, I read a few posts earlier saberizing was designed for aospa-l, you however mentioned, I believe, saberizing is for aospa. [MENTION=2394329]sparksco[/MENTION]

Edit: i compiled builds with 4.8 and 4.9 for both ROM and kernel.
[Android Software/Hacking General [Developers Only]] deepongi:
getting a build break with the new google GCC 4.9 hybrid

Install: /home/infected_/Output/cyan_12/target/product/sirius/system/bin/tune2fs
Install: /home/infected_/Output/cyan_12/target/product/sirius/system/framework/bouncycastle.jar
target SharedLib: nfc_nci.pn54x.default (/home/infected_/Output/cyan_12/target/product/sirius/obj/SHARED_LIBRARIES/nfc_nci.pn54x.default_intermediates/LINKED/nfc_nci.pn54x.default.so)
target Strip: libavformat (/home/infected_/Output/cyan_12/target/product/sirius/obj/lib/libavformat.so)
target SharedLib: libpixelflinger (/home/infected_/Output/cyan_12/target/product/sirius/obj/SHARED_LIBRARIES/libpixelflinger_intermediates/LINKED/libpixelflinger.so)
Install: /home/infected_/Output/cyan_12/target/product/sirius/system/xbin/puncture_fs
target Strip: backtrace_test (/home/infected_/Output/cyan_12/target/product/sirius/obj/EXECUTABLES/backtrace_test_intermediates/backtrace_test)
Construct recovery from boot
mkdir -p /home/infected_/Output/cyan_12/target/product/sirius/obj/PACKAGING/recovery_patch_intermediates/
PATH=/home/infected_/Output/cyan_12/host/linux-x86/bin:$PATH /home/infected_/Output/cyan_12/host/linux-x86/bin/imgdiff /home/infected_/Output/cyan_12/target/product/sirius/boot.img /home/infected_/Output/cyan_12/target/product/sirius/recovery.img /home/infected_/Output/cyan_12/target/product/sirius/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
Copying: /home/infected_/Output/cyan_12/target/common/obj/JAVA_LIBRARIES/framework_intermediates/emma_out/lib/classes-jarjar.jar
target Strip: libantradio (/home/infected_/Output/cyan_12/target/product/sirius/obj/lib/libantradio.so)
target Strip: libutils (/home/infected_/Output/cyan_12/target/product/sirius/obj/lib/libutils.so)
Install: /home/infected_/Output/cyan_12/target/product/sirius/system/lib/libhardware_legacy.so
Install: /home/infected_/Output/cyan_12/target/product/sirius/system/lib/libicui18n.so
Install: /home/infected_/Output/cyan_12/target/product/sirius/system/lib/libbcinfo.so
Install: /home/infected_/Output/cyan_12/target/product/sirius/system/app/Galaxy4/Galaxy4.apk
Install: /home/infected_/Output/cyan_12/target/product/sirius/system/app/HoloSpiralWallpaper/HoloSpiralWallpaper.apk
[B]Error: inflate failed [invalid distance too far back] at file offset [3788575]
imgdiff only supports gzip kernel compression, did you try CONFIG_KERNEL_LZO?
failed to break apart source image[/B]
make: *** [/home/infected_/Output/cyan_12/target/product/sirius/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p] Error 1
make: *** Waiting for unfinished jobs....
Install: /home/infected_/Output/cyan_12/target/product/sirius/system/app/NoiseField/NoiseField.apk
target SharedLib: libnfc-nci (/home/infected_/Output/cyan_12/target/product/sirius/obj/SHARED_LIBRARIES/libnfc-nci_intermediates/LINKED/libnfc-nci.so)

#### make failed to build some targets (10:42 (mm:ss)) ####

infected_@infected-labs /mnt/Building/cyan_12 $

the tools were compiled from sabermod gitlab sources and gave no error while compiling.
[Android Software/Hacking General [Developers Only]] sparksco:
I don't use 4.9 for the kernel only the rom. I'm pretty sure all of Google's kernels use gzip. I use 4.9 on the kernel for the nexus 4 but that also uses gzip compression (Google kernel). But if you use the gnu based 4.9 it works fine right? You could use that instead. Or change kernel compression to gzip. Pretty sure we've been through all this kernel compression stuff before so it should be nothing new for you. And next time can you use pastebin? Mobile view doesn't hide the code. Thanks.
[Android Software/Hacking General [Developers Only]] deepongi:
so this new "hybrid" then.. is only compatible with nexus devices and kernels that use gzip?

i try to understand your fascination with gzip kernel compression instead of lz4, but i just cant.
[Android Software/Hacking General [Developers Only]] sparksco:
What fascination? I use the default kernel compressions which just happens to be gzip. And so do 90% of Linux kernels. Why? Because it just works. Maybe you should contact Linux.org and Google and ask them why they use it lol. You know you have a lot of other options like that ones I mentioned that you so conveniently ignored.
[Android Software/Hacking General [Developers Only]] deepongi:
users of SaberMod toolchain dont work for Linux.org or Google, and also their correspondig devices that uses LZ4 comrpession, also dont belong to Linux.org and Google...

your toolchain, your call.

already compiling "normal" sabermod.
[Android Software/Hacking General [Developers Only]] sparksco:
I don't think it will be changing in the future for future reference. Also you gain almost nothing by using lz4 besides a slightly faster boot (maybe a few seconds). So IMO the tradeoff for lz4 and a toolchain that's made more for Android is worth it. Your kernel your call.

If this issue had anything to do with any code I've written in the gcc I'd be more than happy to take responsibility for it. But it's not related to anything I've modified outside of Google or Android gcc code that causes this issue. Most of the code I've changed is for graphite which this isn't related to. So I honestly can't take the blame here.
[Android Software/Hacking General [Developers Only]] sparksco:
I said your device was not supported on aospa but it is on aospa-l. I don't own any aospa-l devices therefore I don't use it or develop on it.
[Android Software/Hacking General [Developers Only]] sparksco:
Gcc 5.2 is released!
[Android Software/Hacking General [Developers Only]] brandonabandon:
^ i assumed otherwise as this post was not addressed. maybe, maybe not. maguro doesnt appear to be supported by aospa-l for non-nexus anyhow.
[Android Software/Hacking General [Developers Only]] sparksco:
Best to ask pa... Maybe it was dropped completely.
[Android Software/Hacking General [Developers Only]] marcomarinho:
I know that probably isn't related with this thread, but if anyone know how to fix how be awesome xD Compiling with 4,9 ROM & 5.1 kernel toolchains... For hammerhead
[Android Software/Hacking General [Developers Only]] sparksco:
If your not using sabermod toolchains then your in the wrong thread. If you know it's unrelated then why are you posting here?
[Android Software/Hacking General [Developers Only]] marcomarinho:
Yes, I'm using sabermod optimizations & toolchains... And I said that maybe wasn't related, not for sure...
[Android Software/Hacking General [Developers Only]] sparksco:
Hard to say but most of the time java stuff isn't related.
[Android Software/Hacking General [Developers Only]] deepongi:
http://pastebin.com/3SJdhFLT

ever had any of this on the hammerhead?

was testing 5.2 for kernel.

edit: found the fix; https://github.com/katinatez/androi...mmit/5974cd375544d5d29a625ec395a970bb67f2d929

your gitlab is damn slow ATM, timing out, cant check hammerhead kernel.
[Android Software/Hacking General [Developers Only]] sparksco:
You could of checked github and those aren't the "fixes" I use.
[Android Software/Hacking General [Developers Only]] deepongi:
tomato, tomato...

and same thing than 5.1 ... stuck at CM boot logo after two "pulses"...

back to good old 4.9 .. :good:
[Android Software/Hacking General [Developers Only]] sparksco:
I think there is a huge difference but I've only tested it with graphite thus far. So it's hard to say if the performance boost are from gcc5 or graphite, or both lol. I'll have to test the kernel with pthreads for a day or two to compare and see if there's a noticeable difference or not. Do you also plan on testing in a similar way?
[Android Software/Hacking General [Developers Only]] Ross Korolov:
Hi bro)) you invited me and Im here! Great thred, with good job,bro!
[Android Software/Hacking General [Developers Only]] Xileforce:
Yea I may try that. I don't even know how to disable Pthreads though lol. Im not seeing the flag anywhere in my makefiles. Tomorrow I'm going to just try negating all the graphite flags at the end of my main make files. That should make sure none slip through. Now u got me all excited for 5.0!
[Android Software/Hacking General [Developers Only]] shoey63:
Great thread. Subscribed