Skip to content

Crossbuild for android on MacOS throws SIGABRT

Environment: Macos: 10.15.7 Target arch: aarch64-linux-android

When trying to cross build with rust stable 1.48.0 the output is:

Caused by:
  process didn't exit successfully: `/Users/huss/code/android/pEpJNIAdapter/android/external/armeabi-v7a/../build/release/build/nettle-sys-796af5563fd85ab0/build-script-build` (signal: 6, SIGABRT: process abort signal)
  --- stderr
  dyld: Library not loaded: @rpath/libclang.dylib
    Referenced from: /Users/huss/code/android/pEpJNIAdapter/android/external/armeabi-v7a/../build/release/build/nettle-sys-796af5563fd85ab0/build-script-build
    Reason: image not found

Seems like the issue was introduced by this commit: fb6c5ae1

Edited by huss
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information