Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with caches in rust-witness #298

Closed
vivianjeng opened this issue Jan 15, 2025 · 0 comments · Fixed by chancehudson/rust-witness#9
Closed

Error with caches in rust-witness #298

vivianjeng opened this issue Jan 15, 2025 · 0 comments · Fixed by chancehudson/rust-witness#9
Assignees

Comments

@vivianjeng
Copy link
Collaborator

Problem

Currently if we are in test-e2e or mopro-example-app
and run first time with cargo build --bin ios/ cargo build --bin android/ mopro build
(for example, multiplier2 circuit)
It will generate a target and a build folder with binaries
and it caches for rust-witness circuits

so if we update the circuits and transpile for new circuits (e.g. keccak256_256_test circuit)
and run cargo build --bin ios/ cargo build --bin android/ mopro build again
it shows the error with cached circuits
e.g.

error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/zhengyawen/.wasmer/bin:/opt/homebrew/opt/llvm/bin:/Users/zhengyawen/Library/pnpm:/Users/zhengyawen/miniconda3/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/lib/ruby/gems/3.1.0/bin:/Users/zhengyawen/.cargo/bin:/Users/zhengyawen/.nvm/versions/node/v18.20.2/bin:/Users/zhengyawen/development/flutter/bin/:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/etc/platform-tools:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/go/bin:/Users/zhengyawen/development/flutter/bin:/Users/zhengyawen/.cargo/bin:/Users/zhengyawen/development/flutter/bin/:/Users/zhengyawen/.foundry/bin:/Users/zhengyawen/.foundry/bin\n\nsource ~/.bash_profile\n:/Users/zhengyawen/.risc0/bin:/Users/zhengyawen/.nargo/bin:/Users/zhengyawen/.bb" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-Wl,-exported_symbols_list" "-Wl,/var/folders/g6/4kxsmkj109q7nsxdc_cp1v0w0000gn/T/rustciXCMUS/list" "-arch" "arm64" "/var/folders/g6/4kxsmkj109q7nsxdc_cp1v0w0000gn/T/rustciXCMUS/symbols.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.05w5spu1lfhyb10dz1fcmp56l.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.0cmqtx2xmqpk63g2yxj99rguy.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.0f01h6mtvgvg02lh8t0wfob2k.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.0pfyed58xbctwi356sigafj45.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.13tc7yx37yaojcs93vfxv0j4g.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.179j5n7dq39u1cydg2yp2uy3c.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.1ab9f43ce3e106h2q3nb5p9bc.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.1cfk7kl3lol4k0nngayuhdl3q.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.24e8gw12dxzhem8s8r30z92ts.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.2u46cvpvf2bpb2v9jjr2wjw7s.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.3ezvobsfkn2b7qj5nkbnr5jxy.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.3fj08hg57952klaq1uwt894ax.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.3zhk0uhn1vztek95szzir3pyd.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.4hf9a9ohsb3r1e6ra6cewyd64.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.4p8eib76ykyqc9d5qboq3ypn8.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.4zfw6a569qdktjt8ux1s0cdr9.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.4zsb6u0isyefxl6wubl2immh8.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.552y3hoxk6i7e7f1yior64ayy.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.596i1lmwv5874hqy28yqi3rbp.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.5eouct8k2inedh4k5xwfg06q1.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.62sy63mqkjil6wm6ezj4xlkpq.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.64hzr77hkek18xk2efiziobn6.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.64no3r0k224xxejygmcg597rh.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.694hxdqux9s5jmwr6q87z3065.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.78p8acqjanbxho3htr54ongev.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.7bmuuq2wh7piuepawdqco4imt.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.7gmxrkvlfpnkdvxrs9t3ddfsq.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.7imjz4nwbp1xdhdh2rlhhrgjn.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.7itrps3t484waev0mw2qizxyi.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.7lxj6e42l7j3qk1fbzmb4ux7n.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.80f51m43b3yc49da7ejdd10cc.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.90gvkrblzeern7z27q6a09u01.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.9p0cqiyi2s9dlp0ayop69oq5y.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.a3zd3jc2hsyc58ssqsaeqtodp.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.avnastvawwnd6cxblxzqvw3f3.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.b1ettx18beu4ivi6jz3yp6rak.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.b1tmwxgh1urkukp5fblm4g7ym.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.bb1b5ptsnx7kpu8xdoviuz6d5.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.bff7yvr51gvheodkog4sd76zo.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.ccb0yatxqcb20rd07lx83w7nx.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.cvugu55p59b8bfbhegysgkbkl.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.d4i8gw2oprlombcgxz08zlxpb.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.d7esnh2gv8b75j7nli5rv96vx.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.dbt4day0v9mdw38kuhx7pfulp.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.dccqc8nxlc5u5z9qallovk3rq.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.dhl7fc92bmlwllosygke7zqxw.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.dj671oxuuangaxltrs5pys68r.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.dlhc415entwikvkdftlsbwaje.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.dmqrvegkv0knjvnmdbe1spcp0.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.e2q1p4yu6pu7mnt8abaws1i3d.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.easq6tyj76gvfaof4aj54inwc.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.ectenss6wq9vtuhotwobkg2je.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.eiynab6qb3wztazflgrtrz2ic.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.es8s3v9564vt0igkauy7jdyx2.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.ey99xpwwgruesun3bn8pncmgc.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.f1ittrqujwi0euwo5hfjjdsrl.rcgu.o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/mopro_bindings.4ixuws4rjac7czzxm1bmrg5sk.rcgu.o" "-lcircuit" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/librust_witness-5fb82b1a517a8a21.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcc-54bf66a8c6b19846.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libjobserver-0b80dd109f3f98ee.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libshlex-e982fe03dfbe6416.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libwalkdir-892420f021535fec.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libsame_file-413063b4a0cf5a14.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libfnv-d0bc3d3c3be6d54a.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libmopro_ffi-2cb7b0a81aa53354.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libthiserror-97fe1f4a0a557480.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libark_circom-4c7886861287e67b.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libark_bls12_381-4f1db68031c28b1f.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libethers_core-7daa54d3e70f6396.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libtempfile-5c1962fd987099c8.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libfastrand-3b9af68fd98654e9.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/librustix-9f80101ed10cfc41.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libbitflags-833619e946ad0e68.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/liberrno-a7ca2786e21577f1.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libunicode_xid-6cb93bfb418c350f.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libnum_enum-663aee9f2b7adb9c.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libstrum-e9bae468a1664503.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libk256-61bb0d20377c5b5b.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libsha2-62e9dccb16bc82e3.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libecdsa-3715af290d051c52.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/librfc6979-f14dbe6fc1ffd899.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libhmac-583f747e4f211b05.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libspki-e71d1541a940e795.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libsignature-b93fab144f741695.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libelliptic_curve-9bce610797c851d5.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libsec1-c977b15e7463cb2f.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libder-7c5d2e45900a0b33.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcrypto_bigint-a6fcea640e803786.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libbase16ct-7ebf7816cf6c9815.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libgroup-efa01edda2d08840.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libff-a9c38f59abb4ebe2.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libchrono-6361c9c795b9aa2f.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libopen_fastrlp-8e03555a96e45896.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libethabi-598cc72e332e4e56.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libregex-c9df996f4b6d215e.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libregex_automata-74fa59cd68412c12.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libaho_corasick-7089213980786c43.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libregex_syntax-3b2cad7d2fc430b6.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libethereum_types-53d26e9380db13aa.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libethbloom-547ed8ebdade2143.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libtiny_keccak-30279f11a770accf.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libprimitive_types-f9c0348a8ee87b15.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libscale_info-79b412c8821f2995.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libderive_more-421f21ba9ee5e70d.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libimpl_serde-0ece344652355982.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libimpl_rlp-76f5578c2d58ecc7.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/librlp-fad9a1c5041d9621.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libimpl_codec-ec71f0a7514b1141.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libparity_scale_codec-a5906bfe2c3bed4e.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libarrayvec-0090330961a0f25c.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libbyte_slice_cast-cf50eb0a22f8a560.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libfixed_hash-0595f5d885d39c3e.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/librustc_hex-9a5ef655869bd847.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libsha3-5bb22891178fec1a.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libkeccak-53c8c2de41537441.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libuint-b5da1c9f6e311e4b.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcrunchy-010089833acd2eb2.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libhex-3dc383cbf9b09120.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libark_groth16-61c4b8c6b46f8180.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libark_crypto_primitives-ebd95dfc5d1297be.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libark_snark-0029e9e282a225b6.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcolor_eyre-96f3b9424c6d531b.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcolor_spantrace-c0c083371b12dd0e.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libtracing_error-d37d91d12b8adc8e.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libtracing_subscriber-537acbb2e70ad899.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libthread_local-6cbb439608b25fd1.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libsharded_slab-df05d2b2c0430225.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/liblazy_static-92a8659c2672bb9d.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libowo_colors-f075ae379bc8ec17.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libeyre-5a85ede9dd5d461e.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libindenter-b5e138b8ba6818fb.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libbacktrace-10a93f9b967e913f.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libobject-773cb76e5b9e613c.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libaddr2line-4856b09ab68bd71c.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libgimli-2ba11b184c411a4b.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/librustc_demangle-6459f1e46ccfec97.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libark_relations-4c901eeb820db33c.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libtracing_subscriber-8e8a94c449081dae.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libtracing-c6162329e4618f72.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libpin_project_lite-3ae1582ff2b5a29a.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libtracing_core-f5bc64e6285aa86f.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libark_bn254-313de4388cbf75fd.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libark_ec-5e568cb6bb270dce.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libark_poly-31d37a0845219475.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libhashbrown-18fadff898934987.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libahash-2bc3d5a0ba4615c9.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libitertools-a80b5ed5d9dfe571.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libark_ff-22786384d20d6fd3.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/librayon-4c796fb9e2798ce9.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/librayon_core-b9c4050d29c9ff45.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcrossbeam_deque-236e0c34c92945b6.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcrossbeam_epoch-a6c4b36b76874c77.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcrossbeam_utils-84e53f459abc0927.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libeither-9f51ac3d4a8641e8.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libark_serialize-cffdc196f4ee71a1.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libdigest-7cc3565da62f5c14.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libsubtle-ea066f423b545494.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libconst_oid-a502285470db732e.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libblock_buffer-5f7679741c72e5e4.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcrypto_common-bf29a9cb8ad0dc41.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libgeneric_array-4d2f7e752e3d8dd7.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libtypenum-7db87af9c112634b.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libzeroize-84aa8b800a596bdc.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libnum_bigint-9b14620ca5db6f6d.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libnum_integer-d7b39187be372665.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libark_std-def2bb4e78144981.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libnum_traits-1aad7dae21c7d000.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/librand-3fd33e5562f35310.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/librand_chacha-4de288564166ac24.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libppv_lite86-e06c9d5c42b2a56b.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libzerocopy-6f5bc02804a0833a.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libbyteorder-6354470c20dca31f.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/librand_core-92a591ba60fa74ca.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libuniffi-04dde3f80a7a1f43.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libuniffi_build-fc8d33633d7fac2d.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libuniffi_bindgen-b614b3c1f31231f3.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libuniffi_udl-faf21892361757aa.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libweedle-f5683cb0522d633e.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libnom-6c3cac37f70a74b3.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libtoml-daee4a5ad0a54162.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libglob-f0d847ba79a1775d.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libtextwrap-3b9d32d12884d15b.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libsmawk-205eabff34e7bd56.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libgoblin-efec3c6e30c29b63.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libplain-8278c697a971e6df.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libscroll-d565430a956900c9.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libuniffi_testing-205a0fa23d44736f.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libonce_cell-05313e856b4c1d4c.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcargo_metadata-28dd9b6c83740041.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libserde_json-26b2f2ab38065460.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libmemchr-896eb42d0df893cb.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libitoa-645ffa12cddfe81d.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libryu-d2b9f70006d1f0a5.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libthiserror-5eb00ed9f5e7c100.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcargo_platform-91a74c9e21e6174a.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libsemver-5fb57a769596f7d1.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libuniffi_meta-ac2d1eb3641c94db.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libsiphasher-2d2cd82c9199b4ab.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libheck-1de725e022c1aa6c.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libaskama-faa0dfb7be5b660e.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libaskama_escape-aa251f69ed44dec2.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libfs_err-d80e3ad3025e391c.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libclap-829ac434c91f1f10.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libclap_builder-4a45465dd8eea2ef.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libstrsim-00e6c564be9726b1.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libanstream-7932a8ae8c918059.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libanstyle_query-1b45b5a6147ab541.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libis_terminal_polyfill-c6ae47300aa7e3f1.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcolorchoice-9a296be8c888c24b.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libanstyle_parse-76e17c64a4873180.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libutf8parse-45498fae34f77d82.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libclap_lex-d1036f9d07465688.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libanstyle-6ad81facc3c06010.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcamino-484dc286683a72fc.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libuniffi_core-d41fc85cdb0cf526.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libstatic_assertions-21180e7f4380b10f.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/liblog-570c65ae3b1a6495.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libbytes-f29ac940e4ce1ee6.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libserde-d53a013910b05b1a.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libanyhow-657cdd313a191ffc.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libuuid-a7140fd060e05601.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libgetrandom-905d45f8d5dcd61b.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/liblibc-323bd95b72b07239.rlib" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libcfg_if-4fb544f864fd8784.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-0b4a354a5d882f18.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-00e89274fccf37d9.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-16cb3fa9562569e5.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-726032628236814d.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-3a2050392888e443.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-22481e5f0a7ce87c.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-99efda3e7d60c7d0.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-97279fd1ed4043e6.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-14aec4517faeb95b.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-ce8f05ca22908841.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-45050aa8ac83ac5c.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-3a0b6babb2efec9c.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-41b79f23e35577db.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-7831295d10c91204.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-f86e480d5dcc309d.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-a7504b44dda8a2a3.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-589a9d977c5a484f.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-a17e2a568e77fc15.rlib" "/Users/zhengyawen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-791901bf82ad4f12.rlib" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/build/mopro-example-app-0e886a8000fe7521/out" "-o" "/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/deps/libmopro_bindings.dylib" "-Wl,-dead_strip" "-dynamiclib" "-Wl,-dylib" "-nodefaultlibs"
  = note: ld: warning: object file (/Users/zhengyawen/Documents/GitHub/mopro-example-app/target/debug/build/mopro-example-app-0e886a8000fe7521/out/libcircuit.a[2](d5ce16d1afad0f10-globals.o)) was built for newer 'macOS' version (15.2) than being linked (15.0)
          Undefined symbols for architecture arm64:
            "_keccak256256testFreeInstance", referenced from:
                mopro_bindings::keccak256256test_witness::hf2deff3b9bc8e6c0 in mopro_bindings.4zfw6a569qdktjt8ux1s0cdr9.rcgu.o
            "_keccak256256testInstantiate", referenced from:
                mopro_bindings::keccak256256test_witness::hf2deff3b9bc8e6c0 in mopro_bindings.4zfw6a569qdktjt8ux1s0cdr9.rcgu.o
            "_keccak256256test_getFieldNumLen32", referenced from:
                mopro_bindings::keccak256256test_witness::hf2deff3b9bc8e6c0 in mopro_bindings.4zfw6a569qdktjt8ux1s0cdr9.rcgu.o
            "_keccak256256test_getRawPrime", referenced from:
                mopro_bindings::keccak256256test_witness::hf2deff3b9bc8e6c0 in mopro_bindings.4zfw6a569qdktjt8ux1s0cdr9.rcgu.o
            "_keccak256256test_getWitness", referenced from:
                mopro_bindings::keccak256256test_witness::hf2deff3b9bc8e6c0 in mopro_bindings.4zfw6a569qdktjt8ux1s0cdr9.rcgu.o
            "_keccak256256test_getWitnessSize", referenced from:
                mopro_bindings::keccak256256test_witness::hf2deff3b9bc8e6c0 in mopro_bindings.4zfw6a569qdktjt8ux1s0cdr9.rcgu.o
            "_keccak256256test_init", referenced from:
                mopro_bindings::keccak256256test_witness::hf2deff3b9bc8e6c0 in mopro_bindings.4zfw6a569qdktjt8ux1s0cdr9.rcgu.o
            "_keccak256256test_readSharedRWMemory", referenced from:
                mopro_bindings::keccak256256test_witness::hf2deff3b9bc8e6c0 in mopro_bindings.4zfw6a569qdktjt8ux1s0cdr9.rcgu.o
                mopro_bindings::keccak256256test_witness::hf2deff3b9bc8e6c0 in mopro_bindings.4zfw6a569qdktjt8ux1s0cdr9.rcgu.o
            "_keccak256256test_setInputSignal", referenced from:
                mopro_bindings::keccak256256test_witness::hf2deff3b9bc8e6c0 in mopro_bindings.4zfw6a569qdktjt8ux1s0cdr9.rcgu.o
            "_keccak256256test_writeSharedRWMemory", referenced from:
                mopro_bindings::keccak256256test_witness::hf2deff3b9bc8e6c0 in mopro_bindings.4zfw6a569qdktjt8ux1s0cdr9.rcgu.o
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

The current solution is to remove target and build folder and run again

Details

There are several possible solutions

  1. Overwrite the current cache
    • we can simply do this. Since we have improved rust-witness building time a lot, we don't need the cache.
  2. Check if there is a cache, or overwrite
    • advanced solution
  3. We build a command to clean the cache
    e.g. mopro clean to execute rm -rf target && rm -rf build
    • the fastest solution

Acceptance criteria

Users don't need to clean up target and build, and won't get the error above when updating circuits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant