madztheo / noir-react-native-starter

A simple template to generate ZK proofs with Noir on mobile using React Native
MIT License
20 stars 4 forks source link

Compilation Errors for iOS and Android. #3

Open anudit opened 4 months ago

anudit commented 4 months ago

Hey, I am trying to run madztheo/noir_rs and compiling for archs like armv7-linux-androideabi but errors out at bb-rs 64bit compiles well for android.

Minimal Repro: https://github.com/anudit/noir-single Android error logs: https://gist.github.com/anudit/1b5beb79dcff69d76fe30f2838b6c41a iOS error logs: https://gist.github.com/anudit/9ce131936dd8dac672a2a5f439d60899

madztheo commented 4 months ago

Hey! For now, this has only been optimised for arm64-v8a (i.e. aarch64-linux-android target) on Android. It's used by the most recent Android phones, hence the choice to focus on this one first. The build configuration needs to be changed to support armeabi-v7a, so for now it will fail to build for this target. However, the number of devices using armeabi-v7a (i.e. armv7-linux-androideabi) is non-negligible so support will be added soon. Other architectures can be safely ignored.

As for iOS, only the architecture used by devices is supported at the moment, i.e. aarch64-apple-ios target, and not the one for the simulator, which is the one used in your case. Not entirely sure if it's worth supporting it, it could facilitate development but it's not relevant for distribution.

anudit commented 4 months ago

Thanks for the details @madztheo ,

Could you point me to where I can make the changes in the build config to add support for armeabi-v7a ? x86 &x86_64 are probably negligible. Also would love to be able to compile and test other parts of the app on the iOS emulator. Happy to send a PR for it.

Thanks for the awesome work so far!

madztheo commented 4 months ago

Sure! The building process is managed by build.rs in bb_rs which you can find here https://github.com/madztheo/aztec-packages/blob/v0.38.0/barretenberg/bb_rs/build.rs

It builds the Rust bindings to Barretenberg, which are then used by noir_rs to generate and verify proofs with Noir. You'll see different configurations for different targets and can start to plug the ones you want. Make sure to start from the branch v0.38.0 which is the currently maintained one.

As a quickstart, you can add this line below the target_os variable declaration:

let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();

It will be equal to aarch64 for the aarch64-linux-android target and arm for the armv7-linux-androideabi target, this way you can differentiate the two.

anudit commented 4 months ago

@madztheo Started adding support for armv7-linux-androideabi here https://github.com/madztheo/aztec-packages/pull/1.

Currently running into,

  In file included from /Users/anudit/Documents/GitHub/aztec-packages/barretenberg/cpp/src/barretenberg/ecc/curves/bn254/../../fields/./field_impl.hpp:6:
  In file included from /Users/anudit/Documents/GitHub/aztec-packages/barretenberg/cpp/src/barretenberg/numeric/random/engine.hpp:2:
  /Users/anudit/Documents/GitHub/aztec-packages/barretenberg/cpp/src/barretenberg/numeric/random/../uint128/uint128.hpp:198:42: fatal error: __int128 is not supported on this target
  __extension__ using uint128_t = unsigned __int128;
                                           ^
  1 error generated
madztheo commented 4 months ago

It looks like __int128 is not supported on 32-bits ARM architecture like the armv7-linux-androideabi target. It's going to be a tricky one to fix

anudit commented 4 months ago

@madztheo Apparently you can use boost's multiprecision library to emulate GCC's __int128 on 32-bit systems.

#include <boost/multiprecision/cpp_int.hpp>

using namespace boost::multiprecision;
anudit commented 1 month ago

Heyo @madztheo

I changed some things around and looks like aarch64-apple-ios-sim is also working now. I am running into some unsupported architecture errors on x86_64-apple-ios though.

Logs ``` error: failed to run custom build command for `bb_rs v0.38.0 (/Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs)` Caused by: process didn't exit successfully: `/Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/release/build/bb_rs-fa70fbe0b32a5d77/build-script-build` (exit status: 101) --- stdout cargo:rerun-if-changed=build.rs CMAKE_TOOLCHAIN_FILE_x86_64-apple-ios = None CMAKE_TOOLCHAIN_FILE_x86_64_apple_ios = None TARGET_CMAKE_TOOLCHAIN_FILE = None CMAKE_TOOLCHAIN_FILE = None CMAKE_PREFIX_PATH_x86_64-apple-ios = None CMAKE_PREFIX_PATH_x86_64_apple_ios = None TARGET_CMAKE_PREFIX_PATH = None CMAKE_PREFIX_PATH = None CMAKE_x86_64-apple-ios = None CMAKE_x86_64_apple_ios = None TARGET_CMAKE = None CMAKE = None running: cd "/Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build" && CMAKE_PREFIX_PATH="" "cmake" "/Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/../cpp" "-G" "Ninja" "-DCMAKE_SYSTEM_NAME=iOS" "-DCMAKE_SYSTEM_PROCESSOR=x86_64" "-DCMAKE_INSTALL_PREFIX=/Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out" "-DCMAKE_C_FLAGS= -fPIC -m64 --target=x86_64-apple-ios -m64 -mios-simulator-version-min=18.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.0.sdk" "-DCMAKE_C_COMPILER=/usr/bin/clang" "-DCMAKE_CXX_FLAGS= -fPIC -m64 --target=x86_64-apple-ios -m64 -mios-simulator-version-min=18.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.0.sdk" "-DCMAKE_CXX_COMPILER=/usr/bin/clang++" "-DCMAKE_ASM_FLAGS= -fPIC -m64 --target=x86_64-apple-ios -m64 -mios-simulator-version-min=18.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.0.sdk" "-DCMAKE_ASM_COMPILER=/usr/bin/clang" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_BUILD_TYPE=RelWithAssert" "-DPLATFORM=OS64" "-DDEPLOYMENT_TARGET=18.0" "--toolchain=../cpp/ios.toolchain.cmake" -- [DEFAULTS] Using explicit named language support! E.g., enable_language(CXX) is needed in the project files. -- [DEFAULTS] Disabling bitcode support by default. ENABLE_BITCODE not provided for override! -- [DEFAULTS] Enabling ARC support by default. ENABLE_ARC not provided! -- [DEFAULTS] Hiding symbols visibility by default. ENABLE_VISIBILITY not provided! -- [DEFAULTS] Using NON-strict compiler checks by default. ENABLE_STRICT_TRY_COMPILE not provided! -- Configuring iphoneos build for platform: OS64, architecture(s): arm64 -- Using SDK: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk -- Using C compiler: /usr/bin/clang -- Using CXX compiler: /usr/bin/clang++ -- Using libtool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -- Using install name tool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool -- Autoconf target triple: arm64-apple-ios18.0 -- Using minimum deployment version: 18.0 (SDK version: 18.0) -- Merging integrated CMake 3.14+ iOS,tvOS,watchOS,macOS toolchain(s) with this toolchain! -- CMake version: 3.28.3 -- Using a data_ptr size of: 8 -- Bitcode: Disabled -- ARC: Enabled -- Hiding symbols: Enabled -- The CXX compiler identification is AppleClang 16.0.0.16000026 -- The C compiler identification is AppleClang 16.0.0.16000026 -- 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 -- 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 -- Found Doxygen: /opt/homebrew/bin/doxygen (found version "1.11.0") found components: doxygen missing components: dot -- Compiling for ARM. -- Build type: RelWithAssert -- Multithreading is enabled. -- OMP multithreading is disabled. -- Could not locate TBB. -- Found Python: /opt/homebrew/Frameworks/Python.framework/Versions/3.12/bin/python3.12 (found version "3.12.5") found components: Interpreter -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found Git: /opt/homebrew/bin/git (found version "2.41.0") -- git version: v0.0.0 normalized to 0.0.0 -- Google Benchmark version: 1.8.3 -- Looking for shm_open in rt -- Looking for shm_open in rt - found -- Performing Test HAVE_CXX_FLAG_WALL -- Performing Test HAVE_CXX_FLAG_WALL - Success -- Performing Test HAVE_CXX_FLAG_WEXTRA -- Performing Test HAVE_CXX_FLAG_WEXTRA - Success -- Performing Test HAVE_CXX_FLAG_WSHADOW -- Performing Test HAVE_CXX_FLAG_WSHADOW - Success -- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL -- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success -- Performing Test HAVE_CXX_FLAG_WOLD_STYLE_CAST -- Performing Test HAVE_CXX_FLAG_WOLD_STYLE_CAST - Success -- Performing Test HAVE_CXX_FLAG_WERROR -- Performing Test HAVE_CXX_FLAG_WERROR - Success -- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE -- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE - Success -- Performing Test HAVE_CXX_FLAG_PEDANTIC -- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success -- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS -- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success -- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 -- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Success -- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING -- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED - Success -- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING -- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success -- Performing Test HAVE_CXX_FLAG_WD654 -- Performing Test HAVE_CXX_FLAG_WD654 - Failed -- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY -- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Success -- Enabling additional flags: -DINCLUDE_DIRECTORIES=/Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build/_deps/benchmark-src/include -- Cross-compiling to test HAVE_THREAD_SAFETY_ATTRIBUTES -- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- success -- Performing Test HAVE_CXX_FLAG_COVERAGE -- Performing Test HAVE_CXX_FLAG_COVERAGE - Success -- Cross-compiling to test HAVE_STD_REGEX -- Performing Test HAVE_STD_REGEX -- success -- Cross-compiling to test HAVE_GNU_POSIX_REGEX -- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile -- Cross-compiling to test HAVE_POSIX_REGEX -- Performing Test HAVE_POSIX_REGEX -- success -- Cross-compiling to test HAVE_STEADY_CLOCK -- Performing Test HAVE_STEADY_CLOCK -- success -- Cross-compiling to test HAVE_PTHREAD_AFFINITY -- Performing Test HAVE_PTHREAD_AFFINITY -- failed to compile -- Disabling ADX assembly variant. -- Compiling all-in-one barretenberg archive -- Configuring done (13.5s) -- Generating done (0.3s) -- Build files have been written to: /Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build running: cd "/Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build" && "cmake" "--build" "." "--target" "bb" "--config" "Release" "--parallel" "12" [1/194] Creating directories for 'msgpack-c' [2/194] Performing download step (git clone) for 'msgpack-c' Cloning into 'msgpack-c'... HEAD is now at 492d78fc Update cpp11_zone.hpp [3/194] No update step for 'msgpack-c' [4/194] No patch step for 'msgpack-c' [5/194] No configure step for 'msgpack-c' [6/194] No build step for 'msgpack-c' [7/194] No install step for 'msgpack-c' [8/194] Completed 'msgpack-c' [9/194] Building CXX object src/barretenberg/common/CMakeFiles/common_objects.dir/op_count.cpp.o [10/194] Building CXX object src/barretenberg/common/CMakeFiles/common_objects.dir/parallel_for_omp.cpp.o [11/194] Building CXX object src/barretenberg/common/CMakeFiles/common_objects.dir/utils.cpp.o [12/194] Building CXX object src/barretenberg/common/CMakeFiles/common_objects.dir/bbmalloc.cpp.o [13/194] Building CXX object src/barretenberg/common/CMakeFiles/common_objects.dir/std_string.cpp.o [14/194] Building CXX object src/barretenberg/common/CMakeFiles/common_objects.dir/parallel_for_mutex_pool.cpp.o [15/194] Building CXX object src/barretenberg/common/CMakeFiles/common_objects.dir/thread.cpp.o [16/194] Building CXX object src/barretenberg/common/CMakeFiles/common_objects.dir/parallel_for_atomic_pool.cpp.o [17/194] Building CXX object src/barretenberg/common/CMakeFiles/common_objects.dir/parallel_for_spawning.cpp.o [18/194] Building CXX object src/barretenberg/common/CMakeFiles/common_objects.dir/c_bind.cpp.o [19/194] Building CXX object src/barretenberg/crypto/keccak/CMakeFiles/crypto_keccak_objects.dir/keccak.cpp.o [20/194] Building CXX object src/barretenberg/common/CMakeFiles/common_objects.dir/parallel_for_queued.cpp.o [21/194] Building CXX object src/barretenberg/common/CMakeFiles/common_objects.dir/slab_allocator.cpp.o [22/194] Building CXX object src/barretenberg/crypto/keccak/CMakeFiles/crypto_keccak_objects.dir/keccakf1600.cpp.o [23/194] Building CXX object src/barretenberg/crypto/blake2s/CMakeFiles/crypto_blake2s_objects.dir/blake2s.cpp.o [24/194] Building CXX object src/barretenberg/crypto/blake2s/CMakeFiles/crypto_blake2s_objects.dir/c_bind.cpp.o [25/194] Building CXX object src/barretenberg/crypto/blake3s/CMakeFiles/crypto_blake3s_objects.dir/c_bind.cpp.o [26/194] Building CXX object src/barretenberg/crypto/sha256/CMakeFiles/crypto_sha256_objects.dir/c_bind.cpp.o [27/194] Building CXX object src/barretenberg/crypto/pedersen_commitment/CMakeFiles/crypto_pedersen_commitment_objects.dir/c_bind.cpp.o [28/194] Building CXX object src/barretenberg/crypto/pedersen_hash/CMakeFiles/crypto_pedersen_hash_objects.dir/c_bind.cpp.o [29/194] Building CXX object src/barretenberg/crypto/sha256/CMakeFiles/crypto_sha256_objects.dir/sha256.cpp.o [30/194] Building CXX object src/barretenberg/crypto/aes128/CMakeFiles/crypto_aes128_objects.dir/aes128.cpp.o [31/194] Building CXX object src/barretenberg/crypto/aes128/CMakeFiles/crypto_aes128_objects.dir/c_bind.cpp.o [32/194] Building CXX object src/barretenberg/crypto/poseidon2/CMakeFiles/crypto_poseidon2_objects.dir/c_bind.cpp.o [33/194] Building CXX object src/barretenberg/crypto/poseidon2/CMakeFiles/crypto_poseidon2_objects.dir/poseidon2.cpp.o [34/194] Building CXX object src/barretenberg/crypto/pedersen_hash/CMakeFiles/crypto_pedersen_hash_objects.dir/pedersen.cpp.o [35/194] Building CXX object src/barretenberg/crypto/ecdsa/CMakeFiles/crypto_ecdsa_objects.dir/c_bind.cpp.o [36/194] Building CXX object src/barretenberg/crypto/schnorr/CMakeFiles/crypto_schnorr_objects.dir/c_bind.cpp.o [37/194] Building CXX object src/barretenberg/crypto/pedersen_commitment/CMakeFiles/crypto_pedersen_commitment_objects.dir/pedersen.cpp.o [38/194] Building CXX object src/barretenberg/commitment_schemes/CMakeFiles/commitment_schemes_objects.dir/gemini/gemini.cpp.o [39/194] Building CXX object src/barretenberg/crypto/merkle_tree/CMakeFiles/crypto_merkle_tree_objects.dir/indexed_tree/leaves_cache.cpp.o [40/194] Building CXX object src/barretenberg/crypto/merkle_tree/CMakeFiles/crypto_merkle_tree_objects.dir/nullifier_tree/nullifier_tree.cpp.o [41/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/aes128_constraint.cpp.o [42/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/blake3_constraint.cpp.o [43/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/blake2s_constraint.cpp.o [44/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/block_constraint.cpp.o [45/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/round.cpp.o [46/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/acir_format.cpp.o [47/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/ec_operations.cpp.o [48/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/keccak_constraint.cpp.o [49/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/logic_constraint.cpp.o [50/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/multi_scalar_mul.cpp.o [51/194] Building CXX object src/barretenberg/ecc/CMakeFiles/ecc_objects.dir/curves/grumpkin/c_bind.cpp.o [52/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/bigint_constraint.cpp.o [53/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/ecdsa_secp256k1.cpp.o [54/194] Building CXX object src/barretenberg/ecc/CMakeFiles/ecc_objects.dir/scalar_multiplication/process_buckets.cpp.o [55/194] Building CXX object src/barretenberg/ecc/CMakeFiles/ecc_objects.dir/fields/field_conversion.cpp.o [56/194] Building CXX object src/barretenberg/ecc/CMakeFiles/ecc_objects.dir/curves/secp256k1/c_bind.cpp.o [57/194] Building CXX object src/barretenberg/ecc/CMakeFiles/ecc_objects.dir/scalar_multiplication/runtime_states.cpp.o [58/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/pedersen.cpp.o [59/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/poseidon2_constraint.cpp.o [60/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/sha256_constraint.cpp.o [61/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/schnorr_verify.cpp.o [62/194] Building CXX object src/barretenberg/env/CMakeFiles/env_objects.dir/data_store.cpp.o [63/194] Building CXX object src/barretenberg/env/CMakeFiles/env_objects.dir/hardware_concurrency.cpp.o [64/194] Building CXX object src/barretenberg/env/CMakeFiles/env_objects.dir/logstr.cpp.o [65/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_proofs/acir_composer.cpp.o [66/194] Building CXX object src/barretenberg/flavor/CMakeFiles/flavor_objects.dir/flavor.cpp.o [67/194] Building CXX object src/barretenberg/goblin/CMakeFiles/goblin_objects.dir/goblin.cpp.o [68/194] Building CXX object src/barretenberg/ecc/CMakeFiles/ecc_objects.dir/scalar_multiplication/scalar_multiplication.cpp.o [69/194] Building CXX object src/barretenberg/honk/CMakeFiles/honk_objects.dir/utils/testing.cpp.o [70/194] Building CXX object src/barretenberg/numeric/CMakeFiles/numeric_objects.dir/random/engine.cpp.o [71/194] Building CXX object src/barretenberg/plonk/CMakeFiles/plonk_objects.dir/composer/composer_lib.cpp.o [72/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_proofs/goblin_acir_composer.cpp.o [73/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/ecdsa_secp256r1.cpp.o [74/194] Building CXX object src/barretenberg/execution_trace/CMakeFiles/execution_trace_objects.dir/execution_trace.cpp.o [75/194] Building CXX object src/barretenberg/plonk/CMakeFiles/plonk_objects.dir/proof_system/proving_key/proving_key.cpp.o [76/194] Building CXX object src/barretenberg/eccvm/CMakeFiles/eccvm_objects.dir/eccvm_trace_checker.cpp.o [77/194] Building CXX object src/barretenberg/examples/simple/CMakeFiles/simple_example_objects.dir/c_bind.cpp.o [78/194] Building CXX object src/barretenberg/eccvm/CMakeFiles/eccvm_objects.dir/eccvm_verifier.cpp.o [79/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_format/recursion_constraint.cpp.o [80/194] Building CXX object src/barretenberg/plonk/CMakeFiles/plonk_objects.dir/proof_system/verification_key/verification_key.cpp.o [81/194] Building CXX object src/barretenberg/examples/simple/CMakeFiles/simple_example_objects.dir/simple.cpp.o [82/194] Building CXX object src/barretenberg/plonk_honk_shared/CMakeFiles/plonk_honk_shared_objects.dir/instance_inspector.cpp.o [83/194] Building CXX object src/barretenberg/plonk/CMakeFiles/plonk_objects.dir/transcript/transcript_wrappers.cpp.o [84/194] Building CXX object src/barretenberg/plonk/CMakeFiles/plonk_objects.dir/transcript/transcript.cpp.o [85/194] Building CXX object src/barretenberg/plonk/CMakeFiles/plonk_objects.dir/work_queue/work_queue.cpp.o [86/194] Building CXX object src/barretenberg/polynomials/CMakeFiles/polynomials_objects.dir/polynomial_store.cpp.o [87/194] Building CXX object src/barretenberg/polynomials/CMakeFiles/polynomials_objects.dir/evaluation_domain.cpp.o [88/194] Building CXX object src/barretenberg/polynomials/CMakeFiles/polynomials_objects.dir/polynomial_store_cache.cpp.o [89/194] Building CXX object src/barretenberg/polynomials/CMakeFiles/polynomials_objects.dir/polynomial_store_wasm.cpp.o [90/194] Building CXX object src/barretenberg/polynomials/CMakeFiles/polynomials_objects.dir/polynomial.cpp.o [91/194] Building CXX object src/barretenberg/plonk/CMakeFiles/plonk_objects.dir/composer/standard_composer.cpp.o [92/194] Building CXX object src/barretenberg/dsl/CMakeFiles/dsl_objects.dir/acir_proofs/c_bind.cpp.o [93/194] Building CXX object src/barretenberg/polynomials/CMakeFiles/polynomials_objects.dir/polynomial_arithmetic.cpp.o [94/194] Building CXX object src/barretenberg/plonk/CMakeFiles/plonk_objects.dir/proof_system/prover/prover.cpp.o [95/194] Building CXX object src/barretenberg/eccvm/CMakeFiles/eccvm_objects.dir/eccvm_prover.cpp.o [96/194] Building CXX object src/barretenberg/plonk/CMakeFiles/plonk_objects.dir/proof_system/commitment_scheme/kate_commitment_scheme.cpp.o [97/194] Building CXX object src/barretenberg/relations/CMakeFiles/relations_objects.dir/ecc_vm/ecc_lookup_relation.cpp.o [98/194] Building CXX object src/barretenberg/protogalaxy/CMakeFiles/protogalaxy_objects.dir/decider_prover.cpp.o [99/194] Building CXX object src/barretenberg/relations/CMakeFiles/relations_objects.dir/ecc_vm/ecc_point_table_relation.cpp.o [100/194] Building CXX object src/barretenberg/plonk/CMakeFiles/plonk_objects.dir/proof_system/verifier/verifier.cpp.o [101/194] Building CXX object src/barretenberg/protogalaxy/CMakeFiles/protogalaxy_objects.dir/protogalaxy_verifier.cpp.o [102/194] Building CXX object src/barretenberg/relations/CMakeFiles/relations_objects.dir/ecc_vm/ecc_wnaf_relation.cpp.o [103/194] Building CXX object src/barretenberg/plonk/CMakeFiles/plonk_objects.dir/composer/ultra_composer.cpp.o [104/194] Building CXX object src/barretenberg/srs/CMakeFiles/srs_objects.dir/c_bind.cpp.o [105/194] Building CXX object src/barretenberg/relations/CMakeFiles/relations_objects.dir/ecc_vm/ecc_set_relation.cpp.o [106/194] Building CXX object src/barretenberg/srs/CMakeFiles/srs_objects.dir/factories/mem_bn254_crs_factory.cpp.o [107/194] Building CXX object src/barretenberg/srs/CMakeFiles/srs_objects.dir/factories/file_crs_factory.cpp.o [108/194] Building CXX object src/barretenberg/srs/CMakeFiles/srs_objects.dir/factories/mem_grumpkin_crs_factory.cpp.o [109/194] Building CXX object src/barretenberg/srs/CMakeFiles/srs_objects.dir/global_crs.cpp.o [110/194] Building CXX object src/barretenberg/relations/CMakeFiles/relations_objects.dir/ecc_vm/ecc_transcript_relation.cpp.o [111/194] Building CXX object src/barretenberg/relations/CMakeFiles/relations_objects.dir/ecc_vm/ecc_msm_relation.cpp.o [112/194] Building CXX object src/barretenberg/relations/CMakeFiles/relations_objects.dir/translator_vm/translator_extra_relations.cpp.o [113/194] Building CXX object src/barretenberg/relations/CMakeFiles/relations_objects.dir/translator_vm/translator_delta_range_constraint_relation.cpp.o [114/194] Building CXX object src/barretenberg/relations/CMakeFiles/relations_objects.dir/translator_vm/translator_permutation_relation.cpp.o [115/194] Building CXX object src/barretenberg/protogalaxy/CMakeFiles/protogalaxy_objects.dir/decider_verifier.cpp.o [116/194] Building CXX object src/barretenberg/stdlib/hash/blake2s/CMakeFiles/stdlib_blake2s_objects.dir/blake2s.cpp.o [117/194] Building CXX object src/barretenberg/stdlib/hash/blake2s/CMakeFiles/stdlib_blake2s_objects.dir/blake2s_plookup.cpp.o [118/194] Building CXX object src/barretenberg/stdlib/hash/blake3s/CMakeFiles/stdlib_blake3s_objects.dir/blake3s.cpp.o [119/194] Building CXX object src/barretenberg/relations/CMakeFiles/relations_objects.dir/translator_vm/translator_non_native_field_relation.cpp.o [120/194] Building CXX object src/barretenberg/stdlib/hash/blake3s/CMakeFiles/stdlib_blake3s_objects.dir/blake3s_plookup.cpp.o [121/194] Building CXX object src/barretenberg/stdlib/hash/sha256/CMakeFiles/stdlib_sha256_objects.dir/sha256.cpp.o [122/194] Building CXX object src/barretenberg/stdlib/hash/sha256/CMakeFiles/stdlib_sha256_objects.dir/sha256_plookup.cpp.o [123/194] Building CXX object src/barretenberg/stdlib/hash/pedersen/CMakeFiles/stdlib_pedersen_hash_objects.dir/pedersen.cpp.o [124/194] Building CXX object src/barretenberg/stdlib/hash/poseidon2/CMakeFiles/stdlib_poseidon2_objects.dir/poseidon2.cpp.o [125/194] Building CXX object src/barretenberg/stdlib/encryption/schnorr/CMakeFiles/stdlib_schnorr_objects.dir/schnorr.cpp.o [126/194] Building CXX object src/barretenberg/stdlib/hash/poseidon2/CMakeFiles/stdlib_poseidon2_objects.dir/poseidon2_permutation.cpp.o [127/194] Building CXX object src/barretenberg/stdlib/commitment/pedersen/CMakeFiles/stdlib_pedersen_commitment_objects.dir/pedersen.cpp.o [128/194] Building CXX object src/barretenberg/stdlib/encryption/aes128/CMakeFiles/stdlib_aes128_objects.dir/aes128.cpp.o [129/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/bool/bool.cpp.o [130/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/bit_array/bit_array.cpp.o [131/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/databus/databus.cpp.o [132/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/byte_array/byte_array.cpp.o [133/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/field/field_conversion.cpp.o [134/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/logic/logic.cpp.o [135/194] Building CXX object src/barretenberg/relations/CMakeFiles/relations_objects.dir/translator_vm/translator_decomposition_relation.cpp.o [136/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/memory/dynamic_array.cpp.o [137/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/memory/ram_table.cpp.o [138/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/memory/rom_table.cpp.o [139/194] Building CXX object src/barretenberg/stdlib/hash/keccak/CMakeFiles/stdlib_keccak_objects.dir/keccak.cpp.o [140/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/memory/twin_rom_table.cpp.o [141/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/field/field.cpp.o [142/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/group/cycle_group.cpp.o [143/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/packed_byte_array/packed_byte_array.cpp.o [144/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/plookup/plookup.cpp.o [145/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/safe_uint/safe_uint.cpp.o [146/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/uint/comparison.cpp.o [147/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/uint/arithmetic.cpp.o [148/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/uint/plookup/comparison.cpp.o [149/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/uint/logic.cpp.o [150/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/uint/plookup/arithmetic.cpp.o [151/194] Building CXX object src/barretenberg/stdlib_circuit_builders/CMakeFiles/stdlib_circuit_builders_objects.dir/circuit_builder_base.cpp.o [152/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/uint/uint.cpp.o [153/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/uint/plookup/logic.cpp.o [154/194] Building CXX object src/barretenberg/stdlib/primitives/CMakeFiles/stdlib_primitives_objects.dir/uint/plookup/uint.cpp.o [155/194] Building CXX object src/barretenberg/stdlib_circuit_builders/CMakeFiles/stdlib_circuit_builders_objects.dir/standard_circuit_builder.cpp.o [156/194] Building CXX object src/barretenberg/stdlib_circuit_builders/CMakeFiles/stdlib_circuit_builders_objects.dir/plookup_tables/non_native_group_generator.cpp.o [157/194] Building CXX object src/barretenberg/protogalaxy/CMakeFiles/protogalaxy_objects.dir/protogalaxy_prover.cpp.o [158/194] Building CXX object src/barretenberg/stdlib_circuit_builders/CMakeFiles/stdlib_circuit_builders_objects.dir/plookup_tables/fixed_base/fixed_base.cpp.o [159/194] Building CXX object src/barretenberg/stdlib/plonk_recursion/CMakeFiles/stdlib_plonk_recursion_objects.dir/verifier/verifier.cpp.o [160/194] Building CXX object src/barretenberg/stdlib_circuit_builders/CMakeFiles/stdlib_circuit_builders_objects.dir/goblin_ultra_circuit_builder.cpp.o [161/194] Building CXX object src/barretenberg/transcript/CMakeFiles/transcript_objects.dir/transcript.cpp.o [162/194] Building CXX object src/barretenberg/stdlib_circuit_builders/CMakeFiles/stdlib_circuit_builders_objects.dir/plookup_tables/plookup_tables.cpp.o [163/194] Building CXX object src/barretenberg/stdlib/honk_recursion/CMakeFiles/stdlib_honk_recursion_objects.dir/verifier/merge_recursive_verifier.cpp.o [164/194] Building CXX object src/barretenberg/sumcheck/CMakeFiles/sumcheck_objects.dir/instance/prover_instance.cpp.o [165/194] Building CXX object src/barretenberg/translator_vm/CMakeFiles/translator_vm_objects.dir/goblin_translator_circuit_builder.cpp.o [166/194] Building CXX object src/barretenberg/ultra_honk/CMakeFiles/ultra_honk_objects.dir/merge_prover.cpp.o [167/194] Building CXX object src/barretenberg/stdlib_circuit_builders/CMakeFiles/stdlib_circuit_builders_objects.dir/ultra_circuit_builder.cpp.o [168/194] Building CXX object src/barretenberg/stdlib/honk_recursion/CMakeFiles/stdlib_honk_recursion_objects.dir/verifier/protogalaxy_recursive_verifier.cpp.o [169/194] Building CXX object src/barretenberg/ultra_honk/CMakeFiles/ultra_honk_objects.dir/oink_verifier.cpp.o [170/194] Building CXX object src/barretenberg/translator_vm/CMakeFiles/translator_vm_objects.dir/goblin_translator_verifier.cpp.o [171/194] Building CXX object src/barretenberg/translator_vm/CMakeFiles/translator_vm_objects.dir/goblin_translator_prover.cpp.o [172/194] Building CXX object src/barretenberg/ultra_honk/CMakeFiles/ultra_honk_objects.dir/merge_verifier.cpp.o [173/194] Building CXX object src/barretenberg/stdlib/honk_recursion/CMakeFiles/stdlib_honk_recursion_objects.dir/verifier/decider_recursive_verifier.cpp.o [174/194] Building CXX object src/barretenberg/vm/CMakeFiles/vm_objects.dir/avm_trace/avm_opcode.cpp.o [175/194] Building CXX object src/barretenberg/ultra_honk/CMakeFiles/ultra_honk_objects.dir/oink_prover.cpp.o [176/194] Building CXX object src/barretenberg/stdlib/honk_recursion/CMakeFiles/stdlib_honk_recursion_objects.dir/verifier/ultra_recursive_verifier.cpp.o [177/194] Building CXX object src/barretenberg/vm/CMakeFiles/vm_objects.dir/avm_trace/avm_binary_trace.cpp.o [178/194] Building CXX object src/barretenberg/vm/CMakeFiles/vm_objects.dir/avm_trace/avm_alu_trace.cpp.o [179/194] Building CXX object src/barretenberg/vm/CMakeFiles/vm_objects.dir/avm_trace/avm_deserialization.cpp.o [180/194] Building CXX object src/barretenberg/ultra_honk/CMakeFiles/ultra_honk_objects.dir/ultra_prover.cpp.o [181/194] Linking CXX static library lib/libenv.a [182/194] Building CXX object src/barretenberg/bb/CMakeFiles/bb.dir/get_bn254_crs.cpp.o [183/194] Building CXX object src/barretenberg/bb/CMakeFiles/bb.dir/get_grumpkin_crs.cpp.o [184/194] Building CXX object src/barretenberg/vm/CMakeFiles/vm_objects.dir/avm_trace/avm_helper.cpp.o [185/194] Building CXX object src/barretenberg/vm/CMakeFiles/vm_objects.dir/avm_trace/avm_execution.cpp.o [186/194] Building CXX object src/barretenberg/vm/CMakeFiles/vm_objects.dir/avm_trace/avm_mem_trace.cpp.o [187/194] Building CXX object src/barretenberg/vm/CMakeFiles/vm_objects.dir/avm_trace/avm_trace.cpp.o [188/194] Building CXX object src/barretenberg/vm/CMakeFiles/vm_objects.dir/generated/avm_composer.cpp.o [189/194] Building CXX object src/barretenberg/ultra_honk/CMakeFiles/ultra_honk_objects.dir/ultra_verifier.cpp.o [190/194] Building CXX object src/barretenberg/bb/CMakeFiles/bb.dir/main.cpp.o [191/194] Building CXX object src/barretenberg/vm/CMakeFiles/vm_objects.dir/generated/avm_prover.cpp.o [192/194] Building CXX object src/barretenberg/vm/CMakeFiles/vm_objects.dir/generated/avm_verifier.cpp.o [193/194] Linking CXX static library lib/libbarretenberg.a [194/194] Linking CXX executable bin/bb.app/bb cargo:root=/Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out cargo:rustc-link-search=/Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build/lib cargo:rustc-link-lib=static=barretenberg cargo:rustc-link-lib=c++ cargo:rerun-if-env-changed=TARGET cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64-apple-ios cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64_apple_ios cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS --- stderr CMake Warning at /Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build/_deps/benchmark-src/cmake/CXXFeatureCheck.cmake:49 (message): If you see build failures due to cross compilation, try setting HAVE_THREAD_SAFETY_ATTRIBUTES to 0 Call Stack (most recent call first): /Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build/_deps/benchmark-src/CMakeLists.txt:222 (cxx_feature_check) CMake Warning at /Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build/_deps/benchmark-src/cmake/CXXFeatureCheck.cmake:49 (message): If you see build failures due to cross compilation, try setting HAVE_STD_REGEX to 0 Call Stack (most recent call first): /Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build/_deps/benchmark-src/CMakeLists.txt:301 (cxx_feature_check) CMake Warning at /Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build/_deps/benchmark-src/cmake/CXXFeatureCheck.cmake:49 (message): If you see build failures due to cross compilation, try setting HAVE_POSIX_REGEX to 0 Call Stack (most recent call first): /Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build/_deps/benchmark-src/CMakeLists.txt:303 (cxx_feature_check) CMake Warning at /Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build/_deps/benchmark-src/cmake/CXXFeatureCheck.cmake:49 (message): If you see build failures due to cross compilation, try setting HAVE_STEADY_CLOCK to 0 Call Stack (most recent call first): /Users/anudit/Documents/GitHub/aztec-packages/barretenberg/bb_rs/target/x86_64-apple-ios/release/build/bb_rs-111d1647dd523712/out/build/_deps/benchmark-src/CMakeLists.txt:312 (cxx_feature_check) Using fallback non-assembly methods for field multiplications. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/cdefs.h:1023:2: error: Unsupported architecture /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:67:9: error: unknown type name '__int64_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__int32_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:69:9: error: unknown type name '__int32_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__uint32_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__uint64_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:80:9: error: unknown type name '__darwin_natural_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:82:9: error: unknown type name '__uint16_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:83:9: error: unknown type name '__int64_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:84:9: error: unknown type name '__int32_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:85:9: error: unknown type name '__uint32_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:86:9: error: unknown type name '__int32_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:87:9: error: unknown type name '__uint32_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:88:9: error: unknown type name '__uint32_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types/_intptr_t.h:32:9: error: unknown type name '__darwin_intptr_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/machine/types.h:37:2: error: architecture not supported fatal error: too many errors emitted, stopping now [-ferror-limit=] thread 'main' panicked at build.rs:209:10: Unable to generate bindings: ClangDiagnostic("/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/cdefs.h:1023:2: error: Unsupported architecture\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:67:9: error: unknown type name '__int64_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__int32_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:69:9: error: unknown type name '__int32_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__uint32_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__uint64_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:80:9: error: unknown type name '__darwin_natural_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:82:9: error: unknown type name '__uint16_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:83:9: error: unknown type name '__int64_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:84:9: error: unknown type name '__int32_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:85:9: error: unknown type name '__uint32_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:86:9: error: unknown type name '__int32_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:87:9: error: unknown type name '__uint32_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types.h:88:9: error: unknown type name '__uint32_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/_types/_intptr_t.h:32:9: error: unknown type name '__darwin_intptr_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/machine/types.h:37:2: error: architecture not supported\nfatal error: too many errors emitted, stopping now [-ferror-limit=]\n") note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ```