You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this error while trying to run an app linking libfoundation and libdispatch
dlopen failed: cannot locate symbol "__atomic_fetch_add_4" referenced by "/data/app/com.example.addswift-1/lib/arm/libdispatch.so
Full error:
11-29 15:59:36.788 2983-2983/com.example.addswift E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.addswift, PID: 2983
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__atomic_fetch_add_4" referenced by "/data/app/com.example.addswift-1/lib/arm/libdispatch.so"...
at java.lang.Runtime.loadLibrary0(Runtime.java:977)
at java.lang.System.loadLibrary(System.java:1530)
at com.example.addswift.MainActivity.<clinit>(MainActivity.java:43)
at java.lang.Class.newInstance(Native Method)
at android.app.Instrumentation.newActivity(Instrumentation.java:1078)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2538)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
The text was updated successfully, but these errors were encountered:
If this is still occurring, then `target_link_libraries(dispatch atomic)` under a check for android should do the right thing. But, I do believe that the libdispatch tests pass on android now.
Additional Detail from JIRA
md5: 7fe497740fe239a09fe9cb6daa9a5a05
Issue Description:
I got this error while trying to run an app linking libfoundation and libdispatch
dlopen failed: cannot locate symbol "__atomic_fetch_add_4" referenced by "/data/app/com.example.addswift-1/lib/arm/libdispatch.so
Full error:
11-29 15:59:36.788 2983-2983/com.example.addswift E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.addswift, PID: 2983
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__atomic_fetch_add_4" referenced by "/data/app/com.example.addswift-1/lib/arm/libdispatch.so"...
at java.lang.Runtime.loadLibrary0(Runtime.java:977)
at java.lang.System.loadLibrary(System.java:1530)
at com.example.addswift.MainActivity.<clinit>(MainActivity.java:43)
at java.lang.Class.newInstance(Native Method)
at android.app.Instrumentation.newActivity(Instrumentation.java:1078)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2538)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
The text was updated successfully, but these errors were encountered: