e2e failed at the very beginning of the test
AndrewLeeCHCH opened this issue · 2 comments
AndrewLeeCHCH commented
OS version: macOS Ventura 13.1 (22C65)
When generating plonky2 proof, a linking error prevents further testing. Could you please help resolve the issue?
Compiling plonky2_circom_verifier v0.1.0 (/Users/jinyaoli/Development/celer-network/zk/plonky2-circom)
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-arch" "x86_64" "-m64" "/var/folders/pq/bry_sqp901x7qjbcmst64n940000gn/T/rustchnb3gw/symbols.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.0.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.1.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.10.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.11.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.12.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.13.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.14.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.15.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.2.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.3.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.4.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.5.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.6.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.7.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.8.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.plonky2_circom_verifier.eeb5d919-cgu.9.rcgu.o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519.2hijw5651jzyurnj.rcgu.o" "-L" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps" "-L" "." "-L" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libserde_json-d31a9a0c1e16f52d.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libryu-837f1330ed9fe6b7.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libitoa-022528e5b723936a.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libtest-832d24bdd20e9907.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgetopts-dfacce16ed9b2d0e.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunicode_width-306276a6e97dc275.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_std-5a9d8ca1ca3da74a.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libposeidon_permutation-fa1a4f70b502f787.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libplonky2-e2fa9dd6698a9315.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libkeccak_hash-67299db15ba51a69.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libtiny_keccak-39b520ce32194ff5.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libprimitive_types-ecf66eea14095e00.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libuint-df38b0dfb84fde94.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libcrunchy-0eda01f53f7b905d.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libhex-89ceb8023e7f6c35.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libbyteorder-1ec363d412626fde.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libfixed_hash-af7fb2d9c560bbae.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/liblog-f8cf9677795743bc.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libhashbrown-b5b4360384f059c1.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libahash-338dec3e1920ae84.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libonce_cell-eaec0dbd5cc5ff6d.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libmaybe_rayon-466a691d78951279.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/librayon-439cd6936bf11906.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/librayon_core-fb86f2f52e7968e5.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libnum_cpus-6480bd0809fd94f4.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libcrossbeam_deque-2193cf65eb214781.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libcrossbeam_epoch-cddb661d80381564.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libmemoffset-999000ec134a477e.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libscopeguard-27f18710473f1fc1.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libcrossbeam_channel-559b1152337b760d.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libcrossbeam_utils-9b325ce5b98a6343.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libplonky2_field-d0b0333a81d37cd3.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libitertools-c4eb26b0417a1c01.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libeither-96c0796cc6364d24.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libanyhow-bf2975ae1c2f3923.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libstatic_assertions-bfdabff59e7298fc.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libplonky2_util-234c66c7f9a57009.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libserde-7c465a9246f77f7c.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libnum-67fb660ecc8de23e.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libnum_iter-ea84887669a5db80.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libnum_rational-41d41a5aeb447bd0.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libnum_complex-3437b63124206395.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libnum_bigint-9c881eeb02ea209a.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/librand-fbb2191c9e8028c4.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/librand_core-3afe80f907bb1692.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libgetrandom-714879cbad3bf7ae.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/liblibc-774f23340e1d8beb.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libcfg_if-6dab2bc37e3e8f4c.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libnum_integer-d0749d617efe4540.rlib" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libnum_traits-50272c959d710af1.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-5d97251ff5d4d689.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-20b5fde375fde600.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-1ca1d4d66b7d7958.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-d92c43504b6a69a0.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-d6e0334ade6f126e.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-21084cc2d21d4db3.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-4e4fd5077e09463d.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-1654f2170e8d0c8f.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-4aa512f6b3996dfc.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-64a5b13fdba2ac32.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libadler-bbbddb080115c9fc.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-3c915a10cad5e2ee.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-13fcf153b2deb34a.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-eea42df2e33ddd32.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-0d107da2668a3a4d.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-c6fc9abf4e398cbb.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-1bf2f523c1bee03d.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-d0a8c087921eb265.rlib" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-19bcb300462f8eea.rlib" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/jinyaoli/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/plonky2_circom_verifier-e97b88260238c519" "-Wl,-dead_strip" "-nodefaultlibs"
= note: ld: in /Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libposeidon_permutation-fa1a4f70b502f787.rlib(go.o), archive member 'go.o' with length 7785136 is not mach-o or llvm bitcode file '/Users/jinyaoli/Development/celer-network/zk/plonky2-circom/target/release/deps/libposeidon_permutation-fa1a4f70b502f787.rlib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `plonky2_circom_verifier` due to previous error
DONE (0s)
Deleted user commented
macOS is not supported due to the rapidsnark library. so you cannot run the e2e pipeline in macOS. But if you just want to build r1cs circuits in macOS, you should be able to do it by rebuilding the required lib from https://github.com/polymerdao/go-iden3-crypto/blob/master/poseidon-permute-c/compile.sh
skywllker commented
I take the same error, but I didn't understand your answer, what should I do with the code in the link? Can you explain it with more details?