filecoin-project / filecoin-ffi

C and CGO bindings for Filecoin's Rust libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aarch64-apple-ios

apple94586 opened this issue · comments

➜ filecoin-ffi git:(master) ✗ rustup show
Default host: x86_64-apple-darwin
rustup home: /Users/xx/.rustup

installed toolchains

stable-x86_64-apple-darwin
nightly-2020-03-19-x86_64-apple-darwin (default)
nightly-x86_64-apple-darwin
1.8.0-x86_64-apple-darwin

installed targets for active toolchain

aarch64-apple-ios
x86_64-apple-darwin

active toolchain

nightly-2020-03-19-x86_64-apple-darwin (default)
rustc 1.44.0-nightly (f509b26a7 2020-03-18)

➜ filecoin-ffi git:(master) ✗

Where should I configure aarch64-apple-ios and then build the static library to support aarch64-apple-ios..

  • cargo --version
    cargo 1.44.0-nightly (7019b3ed3 2020-03-17)
  • for x in '${optimized_release_rustc_target_features[@]}'
  • __target_feature=+adx,
  • for x in '${optimized_release_rustc_target_features[@]}'
  • __target_feature=+sha,+adx,
  • for x in '${optimized_release_rustc_target_features[@]}'
  • __target_feature=+sse2,+sha,+adx,
  • for x in '${optimized_release_rustc_target_features[@]}'
  • __target_feature=+avx2,+sse2,+sha,+adx,
  • for x in '${optimized_release_rustc_target_features[@]}'
  • __target_feature=+avx,+avx2,+sse2,+sha,+adx,
  • for x in '${optimized_release_rustc_target_features[@]}'
  • __target_feature=+sse4.2,+avx,+avx2,+sse2,+sha,+adx,
  • for x in '${optimized_release_rustc_target_features[@]}'
  • __target_feature=+sse4.1,+sse4.2,+avx,+avx2,+sse2,+sha,+adx,
  • '[' standard = optimized ']'
    ++ cat rust-toolchain
  • ./scripts/build-release.sh filcrypto nightly-2020-03-19
  • main filcrypto nightly-2020-03-19
  • [[ -z filcrypto ]]
  • [[ -z nightly-2020-03-19 ]]
    ++ mktemp
  • __build_output_log_tmp=/var/folders/xv/7mxn08dn06qbs4g6lr992mpr0000gn/T/tmp.py8jtO67
  • trap '{ rm -f $__build_output_log_tmp; }' EXIT
  • local '__rust_flags=--print native-static-libs --target aarch64-apple-ios -C target_cpu=native'
  • RUSTFLAGS='--print native-static-libs --target aarch64-apple-ios -C target_cpu=native'
  • cargo +nightly-2020-03-19 build --release
  • tee /var/folders/xv/7mxn08dn06qbs4g6lr992mpr0000gn/T/tmp.py8jtO67
    error: cannot produce proc-macro for const-random-macro v0.1.8 as the target x86_64-apple-darwin does not support these crate types
  • rm -f /var/folders/xv/7mxn08dn06qbs4g6lr992mpr0000gn/T/tmp.py8jtO67
    make: *** [.install-filcrypto] Error 101
    ➜ filecoin-ffi git:(master) ✗