Skip to content
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

Warning: unable to strip library #3063

Closed
cristianoccazinsp opened this issue Jul 14, 2020 · 10 comments
Closed

Warning: unable to strip library #3063

cristianoccazinsp opened this issue Jul 14, 2020 · 10 comments

Comments

@cristianoccazinsp
Copy link

cristianoccazinsp commented Jul 14, 2020

Goals

Compile for Android

Expected Results

No warnings

Actual Results

Warning received:

Unable to strip library '.../node_modules/realm/android/build/intermediates/merged_native_libs/debug/out/lib/armeabi-v7a/librealmreact.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../node_modules/realm/android/build/intermediates/merged_native_libs/debug/out/lib/x86/librealmreact.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../node_modules/realm/android/build/intermediates/merged_native_libs/debug/out/lib/arm64-v8a/librealmreact.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../node_modules/realm/android/build/intermediates/merged_native_libs/debug/out/lib/x86_64/librealmreact.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.

Seems harmless, but would like to know if we can get rid of it any time soon.

Steps to Reproduce

Just build

Code Sample

Version of Realm and Tooling

  • Realm JS SDK Version: 6.0.2
  • Node or React Native: ? React Native
  • Client OS & Version: ? Mac OS / Android APK (any version)
  • Which debugger for React Native: None
@cristianoccazinsp
Copy link
Author

cristianoccazinsp commented Jul 14, 2020

More compile warnings, these seem a bit worse:

Task :realm:stripDebugDebugSymbols
Compatible side by side NDK version was not found.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libhermes-inspector.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libbugsnag-ndk.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libnative-filters.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libfbjni.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libreactnativeblob.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libnative-imagetranscoder.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libjsijniprofiler.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libjsinspector.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libfolly_json.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libglog.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libimagepipeline.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libfolly_futures.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libhermes-executor-debug.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libc++_shared.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/libbugsnag-plugin-android-anr.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/armeabi-v7a/librealmreact.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/x86/libfbjni.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/arm64-v8a/libnative-imagetranscoder.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/x86_64/libjsijniprofiler.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/x86_64/libjsinspector.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/x86_64/libfolly_json.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/x86_64/libglog.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/x86_64/libimagepipeline.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/x86_64/libglog_init.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/x86_64/libhermes-executor-debug.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/x86_64/libhermes-executor-release.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/x86_64/libreactnativejni.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/devDebug/out/lib/x86_64/libyoga.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.

Note: This seems the result of upgrading to React Native 0.63

UPDATE: Looks like upgrading the Android NDK version (from Android studio) removes the warning. Still investigating if new issues are added after this update.

@kneth
Copy link
Contributor

kneth commented Jul 15, 2020

@cristianoccazinsp Please tell us which NDK version you are using. Moreover, do you see the issue if Realm is not included?

@cristianoccazinsp
Copy link
Author

As far as I know, I didn't install any NDK, so the version installed probably was downloaded automatically (with Android studio 3.x ?). After realizing this, I installed the "side-by-side NDK" from Android studio (version 21.3.6528147) and the warning went away.

@kneth
Copy link
Contributor

kneth commented Aug 17, 2020

We are a bit picky when it comes to NDK - mostly because we are linking against OpenSSL, Realm Core and Realm Sync.

@ash514
Copy link

ash514 commented Aug 21, 2020

Can anyone solve these problem?

@luizwhite
Copy link

I just did a fresh install and also got these lines

Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libfbjni.so' due to missing strip tool for ABI 'X86'. Packaging it as is
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libreactnativeblob.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libhermes-inspector.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libreactnativejni.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libnative-filters.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libjscexecutor.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libfolly_futures.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libfolly_json.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libhermes-executor-release.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libhermes-executor-debug.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libimagepipeline.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libjsijniprofiler.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libglog_init.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86/libjsinspector.so' due to missing strip tool for ABI 'X86'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/armeabi-v7a/libc++_shared.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/armeabi-v7a/libglog.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/armeabi-v7a/libnative-imagetranscoder.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/armeabi-v7a/libhermes-executor-debug.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/armeabi-v7a/libjsc.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/armeabi-v7a/libimagepipeline.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/armeabi-v7a/libfb.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/armeabi-v7a/libjsinspector.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/armeabi-v7a/libyoga.so' due to missing strip tool for ABI 'ARMEABI_V7A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libc++_shared.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libhermes-inspector.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libreactnativejni.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libglog.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libjscexecutor.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libfolly_futures.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libfolly_json.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libhermes-executor-release.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libhermes-executor-debug.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libjsc.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libimagepipeline.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libc++_shared.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libfbjni.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libreactnativeblob.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libhermes-inspector.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libreactnativejni.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libglog.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libnative-filters.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libjscexecutor.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libfolly_futures.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libjsijniprofiler.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libglog_init.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
Unable to strip library '.../android/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libjsinspector.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.

@luizwhite
Copy link

@kneth Why is this closed?

@bmunkholm
Copy link
Contributor

It was closed because the issue for the reporter was resolved. Please see how in his latest response.
Did you try that as well?
(that said, it's better to create a new issue with a link to this issue and with all details of what you have tried, rather than commenting on a closed issue).
Thanks!

@sugaith
Copy link

sugaith commented Feb 23, 2021

Same here.. updated Android Studio and ...

Execution failed for task ':realm:stripDebugDebugSymbols'.

No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

Installing all NDKs did not work

@kneth
Copy link
Contributor

kneth commented Feb 25, 2021

@sugaith You might have missed to set up the required environment variables. See https://github.com/realm/realm-js/blob/master/contrib/building.md#instructions-for-macos for an introduction to set up your environment.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants