[Android Software Development] yuweng:
My Master Shifu [MENTION=4878287]_that[/MENTION], manage to build a static x86 gdb( i686-pc-linux-gnu ), seems to be working on my Intel X3, finally got some hint as why it doesn't boot up, need your expertise on this, couldn't understand all these source code thingy... :o

i push the whole TWRP ramdisk to stock 3e, push all symbols to sbin, start sbin/recovery then on another terminal, push gdb, pull recovery log to see the running pid & attach it to gdb.

Omni android-4.4

adb shell
root@Sf3g_mrd5_p1_v2:/ # ./gdb
GNU gdb (GDB) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) attach 137
Attaching to process 137
Reading symbols from /sbin/recovery...done.
Reading symbols from /sbin/linker...(no debugging symbols found)...done.
Reading symbols from /sbin/libc.so...done.
Reading symbols from /sbin/libstdc++.so...done.
Reading symbols from /sbin/libm.so...done.
Reading symbols from /sbin/libz.so...done.
Reading symbols from /sbin/liblog.so...done.
Reading symbols from /sbin/libcutils.so...done.
Reading symbols from /sbin/libselinux.so...done.
Reading symbols from /sbin/libtar.so...done.
Reading symbols from /sbin/libutil-linux.so...done.
Reading symbols from /sbin/libblkid.so...done.
Reading symbols from /sbin/libpng.so...done.
Reading symbols from /sbin/libft2.so...done.
Reading symbols from /sbin/libjpeg.so...done.
Reading symbols from /sbin/libgccdemangle.so...done.
Reading symbols from /sbin/libcorkscrew.so...done.
Reading symbols from /sbin/libutils.so...done.
Reading symbols from /sbin/libminuitwrp.so...done.
Reading symbols from /sbin/libmincrypttwrp.so...done.
Reading symbols from /sbin/libfusesideload.so...done.
Reading symbols from /sbin/libminadbd.so...done.
Reading symbols from /sbin/libmtdutils.so...done.
Reading symbols from /sbin/libminzip.so...done.
Reading symbols from /sbin/libaosprecovery.so...done.
Reading symbols from /sbin/libcrecovery.so...done.
Reading symbols from /sbin/libstlport.so...done.
Reading symbols from /sbin/libsparse.so...done.
Reading symbols from /sbin/libext4_utils.so...done.
Reading symbols from /sbin/libusbhost.so...done.
Reading symbols from /sbin/libtwrpmtp.so...done.
Reading symbols from /sbin/libcrypto.so...done.
Reading symbols from /sbin/libhardware.so...done.
Reading symbols from /sbin/libcryptfslollipop.so...done.
Reading symbols from /sbin/libopenaes.so...done.
poll () at bionic/libc/arch-x86/syscalls/poll.S:15
15	bionic/libc/arch-x86/syscalls/poll.S: No such file or directory.
(gdb) set follow-fork-mode child
(gdb) set detach-on-fork off
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
poll () at bionic/libc/arch-x86/syscalls/poll.S:15
15	in bionic/libc/arch-x86/syscalls/poll.S
(gdb) bt
#0 poll () at bionic/libc/arch-x86/syscalls/poll.S:15
#1 0x774a5b32 in ev_get (ev=0x7fd80b6c, timeout_ms=1000)
at bootable/recovery/minuitwrp/events.c:761
#2 0x77711598 in InputHandler::processInput (timeout_ms=1000,
this=0x777af160 <input_handler>) at bootable/recovery/gui/gui.cpp:259
#3 loopTimer (input_timeout_ms=1000) at bootable/recovery/gui/gui.cpp:584
#4 runPages (page_name=page_name@entry=0x7778a9f1 "system_readonly",
stop_on_page_done=stop_on_page_done@entry=1)
at bootable/recovery/gui/gui.cpp:645
#5 0x777142dd in gui_startPage (page_name=0x7778a9f1 "system_readonly",
allow_commands=1, stop_on_page_done=1)
at bootable/recovery/gui/gui.cpp:972
#6 0x776a86f5 in main (argc=1, argv=0x7fd80f84)
at bootable/recovery/twrp.cpp:346
(gdb)

Omni android-5.0

__ppoll () at bionic/libc/arch-x86/syscalls/__ppoll.S:28
28	bionic/libc/arch-x86/syscalls/__ppoll.S: No such file or directory.
(gdb) set follow-fork-mode child
(gdb) set detach-on-fork off
(gdb) c
Continuing.

^C
Program received signal SIGINT, Interrupt.
__ppoll () at bionic/libc/arch-x86/syscalls/__ppoll.S:28
28	in bionic/libc/arch-x86/syscalls/__ppoll.S
(gdb) bt
#0 __ppoll () at bionic/libc/arch-x86/syscalls/__ppoll.S:28
#1 0x775d4d65 in poll (fds=fds@entry=0x772e5e60 <ev_fds>, fd_count=2,
ms=ms@entry=1000) at bionic/libc/bionic/poll.cpp:45
#2 0x772cea09 in ev_get (ev=0x7fd21cd0, timeout_ms=1000)
at bootable/recovery/minuitwrp/events.c:761
#3 0x7774719a in InputHandler::processInput (
this=this@entry=0x777de160 <input_handler>,
timeout_ms=timeout_ms@entry=1000) at bootable/recovery/gui/gui.cpp:259
#4 0x777479b0 in loopTimer (input_timeout_ms=1000)
at bootable/recovery/gui/gui.cpp:584
#5 runPages (page_name=page_name@entry=0x777becb1 "system_readonly",
stop_on_page_done=stop_on_page_done@entry=1)
at bootable/recovery/gui/gui.cpp:645
#6 0x7774a6e5 in gui_startPage (page_name=0x777becb1 "system_readonly",
allow_commands=1, stop_on_page_done=1)
at bootable/recovery/gui/gui.cpp:972
#7 0x776d832b in main (argc=1, argv=0x7fd225b4)
at bootable/recovery/twrp.cpp:346
(gdb)

Both omni & cm source seems to point to the same error...

cm-11.0

poll () at [URL="https://github.com/CyanogenMod/android_bionic/blob/cm-11.0/libc/arch-x86/syscalls/poll.S#l15"]bionic/libc/arch-x86/syscalls/poll.S:15[/URL]
15	bionic/libc/arch-x86/syscalls/poll.S: No such file or directory.

Omni android-4.4

poll () at [URL="https://github.com/omnirom/android_bionic/blob/android-4.4/libc/arch-x86/syscalls/poll.S#l15"]bionic/libc/arch-x86/syscalls/poll.S:15[/URL]
15	bionic/libc/arch-x86/syscalls/poll.S: No such file or directory.

cm-12.0

__ppoll () at [URL="https://github.com/CyanogenMod/android_bionic/blob/cm-12.0/libc/arch-x86/syscalls/__ppoll.S#l28"]bionic/libc/arch-x86/syscalls/__ppoll.S:28[/URL]
28	bionic/libc/arch-x86/syscalls/__ppoll.S: No such file or directory.

Omni android-5.0

__ppoll () at [URL="https://github.com/omnirom/android_bionic/blob/android-5.0/libc/arch-x86/syscalls/__ppoll.S#l28"]bionic/libc/arch-x86/syscalls/__ppoll.S:28[/URL]
28	bionic/libc/arch-x86/syscalls/__ppoll.S: No such file or directory.

View attachment 3617730

View attachment 3617731

Picture from fb2png color is also distorted.

View attachment 3617732

View attachment 3617733

While the color looks fine on the device itself.

On both cm-12.0 & Omni android-5.0, i also have to remark #TW_INCLUDE_FB2PNG := true for it to build.

build/core/executable_internal.mk:66: recipe for target '/home/wyuweng/omni/out/target/product/7_lite/obj/RECOVERY_EXECUTABLES/fb2png_intermediates/LINKED/fb2png' failed
make: *** [/home/wyuweng/omni/out/target/product/7_lite/obj/RECOVERY_EXECUTABLES/fb2png_intermediates/LINKED/fb2png] Error 1
make: *** Waiting for unfinished jobs....

#### make failed to build some targets (02:09 (mm:ss)) ####

Thanks in Advance, my Master Shifu _that... :highfive: