Closed simc closed 1 year ago
It seems like it tries to use x86 headers when built for ios arm. Also, this looks suspicious: ld: warning: object file (libcrypto.a(aesv8-armx64.S.o)) was built for newer iOS version (14.4) than being linked (7.0)
@ghedo could you chime in? Have you seen something like this with quiche?
Here is the failing workflow: https://github.com/isar/isar-core/runs/2173692157?check_suite_focus=true
Any hint how to solve this would be greatly appreciated 👍
@inikulin why do you say it's compiling for x86? The relevant error I see is
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
and combined with the 7.0 warning that makes me think it's just trying to target too old a version of iOS.
It seems like it tries to use x86 headers when built for ios arm.
Indeed, this is the case. bindgen
needs to be told to use iOS sysroot instead of the host macOS one. It's also complicated with that builds for simulators have a different sysroot.
I almost got it working, stand by for a PR.
I'm getting the following error when I try to build
boring
for iOS. Do you have an idea what went wrong?Error
``` ... Compiling boring-sys v1.1.0 error: failed to run custom build command for `boring-sys v1.1.0` Caused by: process didn't exit successfully: `/Users/runner/work/isar-core/isar-core/dart-ffi/target/release/build/boring-sys-a0cbecad694041d4/build-script-build` (exit code: 101) --- stdout running: "xcrun" "--show-sdk-path" "--sdk" "iphoneos" exit code: 0 running: "xcrun" "--show-sdk-path" "--sdk" "iphoneos" exit code: 0 running: "cmake" "/Users/runner/.cargo/git/checkouts/boring-dfc6e3788abbaf96/80c04df/boring-sys/deps/boringssl" "-DCMAKE_OSX_ARCHITECTURES=arm64" "-DCMAKE_OSX_SYSROOT=iphoneos" "-DCMAKE_ASM_FLAGS=-fembed-bitcode " "-DCMAKE_INSTALL_PREFIX=/Users/runner/work/isar-core/isar-core/dart-ffi/target/aarch64-apple-ios/release/build/boring-sys-9d553a3ff05eb868/out" "-DCMAKE_C_FLAGS= -fembed-bitcode -fPIC --target=aarch64-apple-ios -arch arm64 -miphoneos-version-min=7.0 -isysroot /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -fembed-bitcode" "-DCMAKE_C_COMPILER=/usr/bin/clang" "-DCMAKE_CXX_FLAGS= -fPIC --target=aarch64-apple-ios -arch arm64 -miphoneos-version-min=7.0 -isysroot /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -fembed-bitcode" "-DCMAKE_CXX_COMPILER=/usr/bin/clang++" "-DCMAKE_ASM_COMPILER=/usr/bin/clang" "-DCMAKE_BUILD_TYPE=Release" -- The C compiler identification is AppleClang 12.0.0.12000032 -- The CXX compiler identification is AppleClang 12.0.0.12000032 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- The ASM compiler identification is Clang -- Found assembler: /usr/bin/clang -- Configuring done -- Generating done -- Build files have been written to: /Users/runner/work/isar-core/isar-core/dart-ffi/target/aarch64-apple-ios/release/build/boring-sys-9d553a3ff05eb868/out/build running: "cmake" "--build" "." "--target" "bssl" "--config" "Release" "--" Scanning dependencies of target ssl [ 0%] Building CXX object CMakeFiles/ssl.dir/src/ssl/bio_ssl.cc.o Scanning dependencies of target crypto [ 1%] Building ASM object CMakeFiles/crypto.dir/ios-aarch64/crypto/chacha/chacha-armv8.S.o [ 1%] Building ASM object CMakeFiles/crypto.dir/ios-aarch64/crypto/fipsmodule/aesv8-armx64.S.o [ 1%] Building ASM object CMakeFiles/crypto.dir/ios-aarch64/crypto/fipsmodule/armv8-mont.S.o [ 2%] Building ASM object CMakeFiles/crypto.dir/ios-aarch64/crypto/fipsmodule/ghash-neon-armv8.S.o [ 2%] Building ASM object CMakeFiles/crypto.dir/ios-aarch64/crypto/fipsmodule/ghashv8-armx64.S.o [ 2%] Building ASM object CMakeFiles/crypto.dir/ios-aarch64/crypto/fipsmodule/sha1-armv8.S.o [ 3%] Building ASM object CMakeFiles/crypto.dir/ios-aarch64/crypto/fipsmodule/sha256-armv8.S.o [ 3%] Building ASM object CMakeFiles/crypto.dir/ios-aarch64/crypto/fipsmodule/sha512-armv8.S.o [ 3%] Building ASM object CMakeFiles/crypto.dir/ios-aarch64/crypto/fipsmodule/vpaes-armv8.S.o [ 4%] Building ASM object CMakeFiles/crypto.dir/ios-aarch64/crypto/test/trampoline-armv8.S.o [ 5%] Building CXX object CMakeFiles/ssl.dir/src/ssl/d1_both.cc.o [ 5%] Building C object CMakeFiles/crypto.dir/err_data.c.o [ 5%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_bitstr.c.o [ 6%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_bool.c.o [ 6%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_d2i_fp.c.o [ 6%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_dup.c.o [ 7%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_enum.c.o [ 7%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_gentm.c.o [ 7%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_i2d_fp.c.o [ 8%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_int.c.o [ 8%] Building CXX object CMakeFiles/ssl.dir/src/ssl/d1_lib.cc.o [ 8%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_mbstr.c.o [ 8%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_object.c.o [ 9%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_octet.c.o [ 9%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_print.c.o [ 9%] Building CXX object CMakeFiles/ssl.dir/src/ssl/d1_pkt.cc.o [ 9%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_strnid.c.o [ 10%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_time.c.o [ 10%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_type.c.o [ 10%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_utctm.c.o [ 11%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/a_utf8.c.o [ 12%] Building CXX object CMakeFiles/ssl.dir/src/ssl/d1_srtp.cc.o [ 12%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/asn1_lib.c.o [ 12%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/asn1_par.c.o [ 13%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/asn_pack.c.o [ 13%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/f_enum.c.o [ 13%] Building CXX object CMakeFiles/ssl.dir/src/ssl/dtls_method.cc.o [ 13%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/f_int.c.o [ 14%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/f_string.c.o [ 14%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/tasn_dec.c.o [ 14%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/tasn_enc.c.o [ 14%] Building CXX object CMakeFiles/ssl.dir/src/ssl/dtls_record.cc.o [ 15%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/tasn_fre.c.o [ 15%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/tasn_new.c.o [ 15%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/tasn_typ.c.o [ 16%] Building CXX object CMakeFiles/ssl.dir/src/ssl/handoff.cc.o [ 17%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/tasn_utl.c.o [ 17%] Building C object CMakeFiles/crypto.dir/src/crypto/asn1/time_support.c.o [ 17%] Building C object CMakeFiles/crypto.dir/src/crypto/base64/base64.c.o [ 18%] Building C object CMakeFiles/crypto.dir/src/crypto/bio/bio.c.o [ 18%] Building CXX object CMakeFiles/ssl.dir/src/ssl/handshake.cc.o [ 18%] Building C object CMakeFiles/crypto.dir/src/crypto/bio/bio_mem.c.o [ 18%] Building C object CMakeFiles/crypto.dir/src/crypto/bio/connect.c.o [ 19%] Building C object CMakeFiles/crypto.dir/src/crypto/bio/fd.c.o [ 19%] Building C object CMakeFiles/crypto.dir/src/crypto/bio/file.c.o [ 19%] Building C object CMakeFiles/crypto.dir/src/crypto/bio/hexdump.c.o [ 19%] Building CXX object CMakeFiles/ssl.dir/src/ssl/handshake_client.cc.o [ 20%] Building C object CMakeFiles/crypto.dir/src/crypto/bio/pair.c.o [ 20%] Building C object CMakeFiles/crypto.dir/src/crypto/bio/printf.c.o [ 20%] Building C object CMakeFiles/crypto.dir/src/crypto/bio/socket.c.o [ 21%] Building C object CMakeFiles/crypto.dir/src/crypto/bio/socket_helper.c.o [ 21%] Building C object CMakeFiles/crypto.dir/src/crypto/blake2/blake2.c.o [ 21%] Building C object CMakeFiles/crypto.dir/src/crypto/bn_extra/bn_asn1.c.o [ 22%] Building C object CMakeFiles/crypto.dir/src/crypto/bn_extra/convert.c.o [ 23%] Building CXX object CMakeFiles/ssl.dir/src/ssl/handshake_server.cc.o [ 23%] Building C object CMakeFiles/crypto.dir/src/crypto/buf/buf.c.o [ 23%] Building C object CMakeFiles/crypto.dir/src/crypto/bytestring/asn1_compat.c.o [ 24%] Building C object CMakeFiles/crypto.dir/src/crypto/bytestring/ber.c.o [ 24%] Building C object CMakeFiles/crypto.dir/src/crypto/bytestring/cbb.c.o [ 24%] Building C object CMakeFiles/crypto.dir/src/crypto/bytestring/cbs.c.o [ 25%] Building C object CMakeFiles/crypto.dir/src/crypto/bytestring/unicode.c.o [ 25%] Building CXX object CMakeFiles/ssl.dir/src/ssl/s3_both.cc.o [ 25%] Building C object CMakeFiles/crypto.dir/src/crypto/chacha/chacha.c.o [ 25%] Building C object CMakeFiles/crypto.dir/src/crypto/cipher_extra/cipher_extra.c.o [ 26%] Building C object CMakeFiles/crypto.dir/src/crypto/cipher_extra/derive_key.c.o [ 26%] Building C object CMakeFiles/crypto.dir/src/crypto/cipher_extra/e_aesccm.c.o [ 26%] Building C object CMakeFiles/crypto.dir/src/crypto/cipher_extra/e_aesctrhmac.c.o [ 27%] Building C object CMakeFiles/crypto.dir/src/crypto/cipher_extra/e_aesgcmsiv.c.o [ 27%] Building CXX object CMakeFiles/ssl.dir/src/ssl/s3_lib.cc.o [ 27%] Building C object CMakeFiles/crypto.dir/src/crypto/cipher_extra/e_chacha20poly1305.c.o [ 27%] Building C object CMakeFiles/crypto.dir/src/crypto/cipher_extra/e_null.c.o [ 28%] Building C object CMakeFiles/crypto.dir/src/crypto/cipher_extra/e_rc2.c.o [ 29%] Building CXX object CMakeFiles/ssl.dir/src/ssl/s3_pkt.cc.o [ 29%] Building C object CMakeFiles/crypto.dir/src/crypto/cipher_extra/e_rc4.c.o [ 29%] Building C object CMakeFiles/crypto.dir/src/crypto/cipher_extra/e_tls.c.o [ 30%] Building C object CMakeFiles/crypto.dir/src/crypto/cipher_extra/tls_cbc.c.o [ 30%] Building C object CMakeFiles/crypto.dir/src/crypto/cmac/cmac.c.o [ 30%] Building C object CMakeFiles/crypto.dir/src/crypto/conf/conf.c.o [ 31%] Building C object CMakeFiles/crypto.dir/src/crypto/cpu-aarch64-fuchsia.c.o [ 31%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_aead_ctx.cc.o [ 31%] Building C object CMakeFiles/crypto.dir/src/crypto/cpu-aarch64-linux.c.o [ 31%] Building C object CMakeFiles/crypto.dir/src/crypto/cpu-aarch64-win.c.o [ 32%] Building C object CMakeFiles/crypto.dir/src/crypto/cpu-arm-linux.c.o [ 32%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_asn1.cc.o [ 32%] Building C object CMakeFiles/crypto.dir/src/crypto/cpu-arm.c.o [ 32%] Building C object CMakeFiles/crypto.dir/src/crypto/cpu-intel.c.o [ 33%] Building C object CMakeFiles/crypto.dir/src/crypto/cpu-ppc64le.c.o [ 33%] Building C object CMakeFiles/crypto.dir/src/crypto/crypto.c.o [ 34%] Building C object CMakeFiles/crypto.dir/src/crypto/curve25519/curve25519.c.o [ 34%] Building C object CMakeFiles/crypto.dir/src/crypto/curve25519/spake25519.c.o [ 35%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_buffer.cc.o [ 35%] Building C object CMakeFiles/crypto.dir/src/crypto/dh_extra/dh_asn1.c.o [ 35%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_cert.cc.o [ 36%] Building C object CMakeFiles/crypto.dir/src/crypto/dh_extra/params.c.o [ 36%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_cipher.cc.o [ 36%] Building C object CMakeFiles/crypto.dir/src/crypto/digest_extra/digest_extra.c.o [ 37%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_file.cc.o [ 37%] Building C object CMakeFiles/crypto.dir/src/crypto/dsa/dsa.c.o [ 37%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_key_share.cc.o [ 38%] Building C object CMakeFiles/crypto.dir/src/crypto/dsa/dsa_asn1.c.o [ 38%] Building C object CMakeFiles/crypto.dir/src/crypto/ec_extra/ec_asn1.c.o [ 38%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_lib.cc.o [ 38%] Building C object CMakeFiles/crypto.dir/src/crypto/ec_extra/ec_derive.c.o [ 39%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_privkey.cc.o [ 40%] Building C object CMakeFiles/crypto.dir/src/crypto/ec_extra/hash_to_curve.c.o [ 40%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_session.cc.o [ 40%] Building C object CMakeFiles/crypto.dir/src/crypto/ecdh_extra/ecdh_extra.c.o [ 40%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_stat.cc.o [ 40%] Building C object CMakeFiles/crypto.dir/src/crypto/ecdsa_extra/ecdsa_asn1.c.o [ 41%] Building C object CMakeFiles/crypto.dir/src/crypto/engine/engine.c.o [ 42%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_transcript.cc.o [ 42%] Building C object CMakeFiles/crypto.dir/src/crypto/err/err.c.o [ 42%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_versions.cc.o [ 42%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/digestsign.c.o [ 42%] Building CXX object CMakeFiles/ssl.dir/src/ssl/ssl_x509.cc.o [ 43%] Building CXX object CMakeFiles/ssl.dir/src/ssl/t1_enc.cc.o [ 44%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/evp.c.o [ 44%] Building CXX object CMakeFiles/ssl.dir/src/ssl/t1_lib.cc.o [ 44%] Building CXX object CMakeFiles/ssl.dir/src/ssl/tls13_both.cc.o [ 44%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/evp_asn1.c.o [ 44%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/evp_ctx.c.o [ 45%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/p_dsa_asn1.c.o [ 45%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/p_ec.c.o [ 46%] Building CXX object CMakeFiles/ssl.dir/src/ssl/tls13_client.cc.o [ 46%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/p_ec_asn1.c.o [ 46%] Building CXX object CMakeFiles/ssl.dir/src/ssl/tls13_enc.cc.o [ 47%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/p_ed25519.c.o [ 47%] Building CXX object CMakeFiles/ssl.dir/src/ssl/tls13_server.cc.o [ 47%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/p_ed25519_asn1.c.o [ 48%] Building CXX object CMakeFiles/ssl.dir/src/ssl/tls_method.cc.o [ 48%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/p_rsa.c.o [ 48%] Building CXX object CMakeFiles/ssl.dir/src/ssl/tls_record.cc.o [ 49%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/p_rsa_asn1.c.o [ 49%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/p_x25519.c.o [ 49%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/p_x25519_asn1.c.o [ 50%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/pbkdf.c.o [ 50%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/print.c.o [ 50%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/scrypt.c.o [ 51%] Building C object CMakeFiles/crypto.dir/src/crypto/evp/sign.c.o [ 51%] Building C object CMakeFiles/crypto.dir/src/crypto/ex_data.c.o [ 51%] Building C object CMakeFiles/crypto.dir/src/crypto/fipsmodule/bcm.c.o [ 52%] Linking CXX static library libssl.a [ 52%] Built target ssl [ 53%] Building C object CMakeFiles/crypto.dir/src/crypto/fipsmodule/fips_shared_support.c.o [ 53%] Building C object CMakeFiles/crypto.dir/src/crypto/fipsmodule/is_fips.c.o [ 53%] Building C object CMakeFiles/crypto.dir/src/crypto/hkdf/hkdf.c.o [ 54%] Building C object CMakeFiles/crypto.dir/src/crypto/hpke/hpke.c.o [ 54%] Building C object CMakeFiles/crypto.dir/src/crypto/hrss/hrss.c.o [ 54%] Building C object CMakeFiles/crypto.dir/src/crypto/lhash/lhash.c.o [ 55%] Building C object CMakeFiles/crypto.dir/src/crypto/mem.c.o [ 55%] Building C object CMakeFiles/crypto.dir/src/crypto/obj/obj.c.o [ 55%] Building C object CMakeFiles/crypto.dir/src/crypto/obj/obj_xref.c.o [ 56%] Building C object CMakeFiles/crypto.dir/src/crypto/pem/pem_all.c.o [ 56%] Building C object CMakeFiles/crypto.dir/src/crypto/pem/pem_info.c.o [ 56%] Building C object CMakeFiles/crypto.dir/src/crypto/pem/pem_lib.c.o [ 57%] Building C object CMakeFiles/crypto.dir/src/crypto/pem/pem_oth.c.o [ 57%] Building C object CMakeFiles/crypto.dir/src/crypto/pem/pem_pk8.c.o [ 57%] Building C object CMakeFiles/crypto.dir/src/crypto/pem/pem_pkey.c.o [ 58%] Building C object CMakeFiles/crypto.dir/src/crypto/pem/pem_x509.c.o [ 58%] Building C object CMakeFiles/crypto.dir/src/crypto/pem/pem_xaux.c.o [ 58%] Building C object CMakeFiles/crypto.dir/src/crypto/pkcs7/pkcs7.c.o [ 59%] Building C object CMakeFiles/crypto.dir/src/crypto/pkcs7/pkcs7_x509.c.o [ 59%] Building C object CMakeFiles/crypto.dir/src/crypto/pkcs8/p5_pbev2.c.o [ 59%] Building C object CMakeFiles/crypto.dir/src/crypto/pkcs8/pkcs8.c.o [ 60%] Building C object CMakeFiles/crypto.dir/src/crypto/pkcs8/pkcs8_x509.c.o [ 60%] Building C object CMakeFiles/crypto.dir/src/crypto/poly1305/poly1305.c.o [ 60%] Building C object CMakeFiles/crypto.dir/src/crypto/poly1305/poly1305_arm.c.o [ 61%] Building C object CMakeFiles/crypto.dir/src/crypto/poly1305/poly1305_vec.c.o [ 61%] Building C object CMakeFiles/crypto.dir/src/crypto/pool/pool.c.o [ 61%] Building C object CMakeFiles/crypto.dir/src/crypto/rand_extra/deterministic.c.o [ 62%] Building C object CMakeFiles/crypto.dir/src/crypto/rand_extra/forkunsafe.c.o [ 62%] Building C object CMakeFiles/crypto.dir/src/crypto/rand_extra/fuchsia.c.o [ 62%] Building C object CMakeFiles/crypto.dir/src/crypto/rand_extra/passive.c.o [ 63%] Building C object CMakeFiles/crypto.dir/src/crypto/rand_extra/rand_extra.c.o [ 63%] Building C object CMakeFiles/crypto.dir/src/crypto/rand_extra/windows.c.o [ 63%] Building C object CMakeFiles/crypto.dir/src/crypto/rc4/rc4.c.o [ 64%] Building C object CMakeFiles/crypto.dir/src/crypto/refcount_c11.c.o [ 64%] Building C object CMakeFiles/crypto.dir/src/crypto/refcount_lock.c.o [ 64%] Building C object CMakeFiles/crypto.dir/src/crypto/rsa_extra/rsa_asn1.c.o [ 65%] Building C object CMakeFiles/crypto.dir/src/crypto/rsa_extra/rsa_print.c.o [ 65%] Building C object CMakeFiles/crypto.dir/src/crypto/siphash/siphash.c.o [ 65%] Building C object CMakeFiles/crypto.dir/src/crypto/stack/stack.c.o [ 66%] Building C object CMakeFiles/crypto.dir/src/crypto/thread.c.o [ 66%] Building C object CMakeFiles/crypto.dir/src/crypto/thread_none.c.o [ 66%] Building C object CMakeFiles/crypto.dir/src/crypto/thread_pthread.c.o [ 67%] Building C object CMakeFiles/crypto.dir/src/crypto/thread_win.c.o [ 67%] Building C object CMakeFiles/crypto.dir/src/crypto/trust_token/pmbtoken.c.o [ 67%] Building C object CMakeFiles/crypto.dir/src/crypto/trust_token/trust_token.c.o [ 68%] Building C object CMakeFiles/crypto.dir/src/crypto/trust_token/voprf.c.o [ 68%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/a_digest.c.o [ 68%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/a_sign.c.o [ 69%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/a_strex.c.o [ 69%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/a_verify.c.o [ 69%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/algorithm.c.o [ 70%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/asn1_gen.c.o [ 70%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/by_dir.c.o [ 70%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/by_file.c.o [ 71%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/i2d_pr.c.o [ 71%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/rsa_pss.c.o [ 71%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/t_crl.c.o [ 72%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/t_req.c.o [ 72%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/t_x509.c.o [ 72%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/t_x509a.c.o [ 73%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509.c.o [ 73%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_att.c.o [ 73%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_cmp.c.o [ 74%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_d2.c.o [ 74%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_def.c.o [ 75%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_ext.c.o [ 75%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_lu.c.o [ 75%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_obj.c.o [ 76%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_r2x.c.o [ 76%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_req.c.o [ 76%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_set.c.o [ 77%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_trs.c.o [ 77%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_txt.c.o [ 77%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_v3.c.o [ 78%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_vfy.c.o [ 78%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509_vpm.c.o [ 78%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509cset.c.o [ 79%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509name.c.o [ 79%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509rset.c.o [ 79%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x509spki.c.o [ 80%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_algor.c.o [ 80%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_all.c.o [ 80%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_attrib.c.o [ 81%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_crl.c.o [ 81%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_exten.c.o [ 81%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_info.c.o [ 82%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_name.c.o [ 82%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_pkey.c.o [ 82%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_pubkey.c.o [ 83%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_req.c.o [ 83%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_sig.c.o [ 83%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_spki.c.o [ 84%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_val.c.o [ 84%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_x509.c.o [ 84%] Building C object CMakeFiles/crypto.dir/src/crypto/x509/x_x509a.c.o [ 85%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/pcy_cache.c.o [ 85%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/pcy_data.c.o [ 85%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/pcy_lib.c.o [ 86%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/pcy_map.c.o [ 86%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/pcy_node.c.o [ 86%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/pcy_tree.c.o [ 87%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_akey.c.o [ 87%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_akeya.c.o [ 87%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_alt.c.o [ 88%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_bcons.c.o [ 88%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_bitst.c.o [ 88%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_conf.c.o [ 89%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_cpols.c.o [ 89%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_crld.c.o [ 89%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_enum.c.o [ 90%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_extku.c.o [ 90%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_genn.c.o [ 90%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_ia5.c.o [ 91%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_info.c.o [ 91%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_int.c.o [ 91%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_lib.c.o [ 92%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_ncons.c.o [ 92%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_ocsp.c.o [ 92%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_pci.c.o [ 93%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_pcia.c.o [ 93%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_pcons.c.o [ 93%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_pmaps.c.o [ 94%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_prn.c.o [ 94%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_purp.c.o [ 94%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_skey.c.o [ 95%] Building C object CMakeFiles/crypto.dir/src/crypto/x509v3/v3_utl.c.o [ 95%] Linking C static library libcrypto.a [ 95%] Built target crypto Scanning dependencies of target bssl [ 95%] Building CXX object CMakeFiles/bssl.dir/src/tool/args.cc.o [ 95%] Building CXX object CMakeFiles/bssl.dir/src/tool/ciphers.cc.o [ 96%] Building CXX object CMakeFiles/bssl.dir/src/tool/client.cc.o [ 96%] Building CXX object CMakeFiles/bssl.dir/src/tool/const.cc.o [ 96%] Building CXX object CMakeFiles/bssl.dir/src/tool/digest.cc.o [ 97%] Building CXX object CMakeFiles/bssl.dir/src/tool/fd.cc.o [ 97%] Building CXX object CMakeFiles/bssl.dir/src/tool/file.cc.o [ 97%] Building CXX object CMakeFiles/bssl.dir/src/tool/generate_ed25519.cc.o [ 98%] Building CXX object CMakeFiles/bssl.dir/src/tool/genrsa.cc.o [ 98%] Building CXX object CMakeFiles/bssl.dir/src/tool/pkcs12.cc.o [ 98%] Building CXX object CMakeFiles/bssl.dir/src/tool/rand.cc.o [ 99%] Building CXX object CMakeFiles/bssl.dir/src/tool/server.cc.o [ 99%] Building CXX object CMakeFiles/bssl.dir/src/tool/sign.cc.o [ 99%] Building CXX object CMakeFiles/bssl.dir/src/tool/speed.cc.o [100%] Building CXX object CMakeFiles/bssl.dir/src/tool/tool.cc.o [100%] Building CXX object CMakeFiles/bssl.dir/src/tool/transport_common.cc.o [100%] Linking CXX executable bssl [100%] Built target bssl cargo:root=/Users/runner/work/isar-core/isar-core/dart-ffi/target/aarch64-apple-ios/release/build/boring-sys-9d553a3ff05eb868/out cargo:rustc-link-search=native=/Users/runner/work/isar-core/isar-core/dart-ffi/target/aarch64-apple-ios/release/build/boring-sys-9d553a3ff05eb868/out/build/ cargo:rustc-link-lib=static=crypto cargo:rustc-link-lib=static=ssl cargo:rustc-cdylib-link-arg=-Wl,-undefined,dynamic_lookup --- stderr ios arch=aarch64 add CMAKE_OSX_ARCHITECTURES=arm64 ios arch=aarch64 add CMAKE_OSX_SYSROOT=iphoneos ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) ld: warning: object file (libcrypto.a(aesv8-armx64.S.o)) was built for newer iOS version (14.4) than being linked (7.0) ld: warning: object file (libcrypto.a(armv8-mont.S.o)) was built for newer iOS version (14.4) than being linked (7.0) ld: warning: object file (libcrypto.a(ghashv8-armx64.S.o)) was built for newer iOS version (14.4) than being linked (7.0) ld: warning: object file (libcrypto.a(sha1-armv8.S.o)) was built for newer iOS version (14.4) than being linked (7.0) ld: warning: object file (libcrypto.a(sha256-armv8.S.o)) was built for newer iOS version (14.4) than being linked (7.0) ld: warning: object file (libcrypto.a(sha512-armv8.S.o)) was built for newer iOS version (14.4) than being linked (7.0) ld: warning: object file (libcrypto.a(chacha-armv8.S.o)) was built for newer iOS version (14.4) than being linked (7.0) /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_intptr_t.h:32:9: error: unknown type name '__darwin_intptr_t' /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/endian.h:37:2: error: architecture not supported fatal error: too many errors emitted, stopping now [-ferror-limit=] /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture, err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported, err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported, err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_intptr_t.h:32:9: error: unknown type name '__darwin_intptr_t', err: true /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/endian.h:37:2: error: architecture not supported, err: true fatal error: too many errors emitted, stopping now [-ferror-limit=], err: true thread 'main' panicked at 'Unable to generate bindings: ()', /Users/runner/.cargo/git/checkouts/boring-dfc6e3788abbaf96/80c04df/boring-sys/build.rs:249:39 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace [ERROR cargo_lipo] Failed to build "isar-core-dart-ffi" for "aarch64-apple-ios": Executing "/Users/runner/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/cargo" "--color" "auto" "build" "-p" "isar-core-dart-ffi" "--target" "aarch64-apple-ios" "--release" "--lib" finished with error status: exit code: 101 mv: rename target/universal/release/libisar_core_dart_ffi.a to libisar_ios.a: No such file or directory ```
The Android and Linux build work fine 🤔