-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix arm issues with gdb, aria2 and libhdf5 (octave) and mpd #3452
Conversation
I would strongly recommend building our own zlib (#3455) instead patching Makefiles if the former also avoid the same problem the latter addresses. |
Also, we should probably consistently use CPPFLAGS as it appears that we want the flags to be used for both clang and clang++? |
I need feedback from testing though since some interactions are only going to show up on further testing. |
66b0093
to
61785d9
Compare
Should we just ditch this condition and always use termux-packages/scripts/build/termux_step_setup_toolchain.sh Lines 51 to 55 in 61785d9
Also can we have -fexception by default, for at least arm maybe?
|
packages/gmic/build.sh
Outdated
@@ -16,7 +16,11 @@ termux_step_configure() { | |||
|
|||
termux_step_make() { | |||
cd src/ | |||
make cli | |||
if [ $TERMUX_ARCH = "arm" ]; then | |||
make cli LIBS=" -lunwind -L/data/data/com.termux/files/usr/lib -lfftw3 -lfftw3_threads -lcurl -lpng16 -lz -ljpeg -ltiff -lGraphicsMagick++ -lGraphicsMagick" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to say this is no better than #2588, sorry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its not meant to be better its the only way iv gotten gmic to run properly on arm. Using zlib from your pr didn't work even if built with -fexceptions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Didn't work" doesn't really tell anything. You need to at least show that gmic is and is only linked to libz.so.1
(or maybe the symlink libtermuz.so
) but segfault still originates from it (the zlib). The former may not be the case if some hardcoded -lz
is used at the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't originate there its caused because the static libunwind.a isn't linked propertly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not even sure what you mean. Actually there is even a note seeming to hint that we should avoid linking libraries against libgcc.a and libunwind.a (and now we may only need to exclude libgcc.a as it's a linker script to both the real libgcc and libunwind).
And still you are not showing any log (on what linkage the gmic has and how things have/have not changed with a zlib built by ourselves).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
current gmic
Program received signal SIGSEGV, Segmentation fault.
0xf7189c3c in __gnu_Unwind_Resume () from /system/lib/libz.so
built on your zlib branch
Program received signal SIGSEGV, Segmentation fault.
0xf7407020 in __gnu_Unwind_Resume () from /system/lib/libm.so
its not linking properly since it looks kind of like this.
android/ndk#889
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well you gmic was still linked against /system/lib/libz.so
, so
Don't recommend -fexceptions as default as it increases install size. We need to keep things small especially for arm. |
there is another fix for this. adding also if you want to see and understand what is happening for yourself in an easy to do manner. |
well you then ask "how could this affect mpd?" |
android/ndk#379 |
No description provided.