|
From: | Frederik Seiffert |
Subject: | Crash in ___lldb_unnamed_symbol / cannot locate symbol "__start___objc_selectors" on Android |
Date: | Mon, 1 Jul 2019 14:14:24 +0200 |
Hi, I’ve been working on using a more up-to-date Clang with the Android toolchain (in order to use the 2.0 Objective-C runtime), and managed to integrate the Clang r353983 prebuilt into NDK r20. While this seems to work well so far when targeting armeabi-v7a, I am getting the following errors when targeting arm64. 1. When using Qt to build a simple test app with Objective C, I’m getting the following runtime error when launching the app: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__start___objc_selectors" referenced by "/data/app/org.qtproject.example.Qt_test-izIXM5mKlm3teJ8swIY-gQ==/lib/arm64/libQt-test.so"... libQt-test here is the native library containing some basic C++ and Objective C code. This is linked against libobjc and libgnustep-base. What could be a reason for this symbol to be missing? 2. When using Android Studio to run the hello-objectivec sample app with the new Clang/NDK, I am getting a segmentation fault (SEGV_ACCERR) with the following backtrace. This seems to be triggered by any first time Objective C code is run.
As I cannot really make sense of either of these I would appreciate anyone’s thoughts on them. Frederik |
[Prev in Thread] | Current Thread | [Next in Thread] |