rust-crypto icon indicating copy to clipboard operation
rust-crypto copied to clipboard

Symbol rust_crypto_util_fixed_time_eq_asm missing for aarch64 builds

Open zacstewart opened this issue 8 years ago • 3 comments

I might have the wrong place, but I think I've narrowed a failing build down to this helper function not being compiled for arm64.

I'm trying to build a project that depends on rust-crypto for multiple Apple iOS targets and combine the archives using lipo. Everything seems to go well until building the final product with XCode:

undefined symbols for architecture arm64:
  "_rust_crypto_util_fixed_time_eq_asm", referenced from:
      crypto::util::fixed_time_eq::hd6fee48f285f2cc2 in libcomm.a(crypto-b53f4f52658d6577.0.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

If I remove arm64 from my XCode targets (leaving arm7 and arm7s) it works fine. Is it possible that this function only compiles for 32-bit ARM architecture?

zacstewart avatar Aug 14 '16 15:08 zacstewart

I think I may have a fix for this. Opening a PR.

zacstewart avatar Aug 14 '16 16:08 zacstewart

I stumbled upon the same issue. Is there any reason, why pr with the fix is not merged?

debris avatar Feb 20 '17 09:02 debris

@debris rust-crypto is no longer maintained. RustCrypto aims to succeed it.

newpavlov avatar May 31 '17 23:05 newpavlov