Skip to content

Error on compilation for verifying MPC on macOS #11

Open
@rex4539

Description

@rex4539
$ RUST_BACKTRACE=1 cargo run --release --bin verifier
   Compiling rustc-serialize v0.3.19
   Compiling snark v0.0.1 (/Users/rex/zcash-mpc/snark)
error: failed to run custom build command for `snark v0.0.1 (/Users/rex/zcash-mpc/snark)`
process didn't exit successfully: `/Users/rex/zcash-mpc/target/release/build/snark-5cecc86d88ffe278/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-lib=gmp
cargo:rustc-link-lib=gmpxx
cargo:rustc-link-lib=sodium
TARGET = Some("x86_64-apple-darwin")
PROFILE = Some("release")
TARGET = Some("x86_64-apple-darwin")
debug=false opt-level=2
HOST = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = None
HOST = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
running: "c++" "-O2" "-ffunction-sections" "-fdata-sections" "-m64" "-fPIC" "-I" "libsnark/src" "-std=c++11" "-DNO_PROCPS" "-DSTATIC" "-DMONTGOMERY_OUTPUT" "-DUSE_ASM" "-DNO_PT_COMPRESSION" "-DBINARY_OUTPUT" "-DCURVE_ALT_BN128" "-o" "/Users/rex/zcash-mpc/target/release/build/snark-b2915c2d3ab65dd4/out/libsnark/src/common/utils.o" "-c" "libsnark/src/common/utils.cpp"
cargo:warning=clang: error: no such file or directory: 'libsnark/src/common/utils.cpp'
cargo:warning=clang: error: no input files
ExitStatus(ExitStatus(256))


command did not execute successfully, got: exit code: 1



--- stderr
thread 'main' panicked at 'explicit panic', /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.35/src/lib.rs:897:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::_print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic
   6: gcc::fail
   7: gcc::run
   8: gcc::Config::compile
   9: build_script_build::main
  10: std::rt::lang_start::{{closure}}
  11: std::panicking::try::do_call
  12: __rust_maybe_catch_panic
  13: std::rt::lang_start_internal
  14: main

warning: build failed, waiting for other jobs to finish...
error[E0642]: patterns aren't allowed in methods without bodies
   --> /Users/rex/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.19/src/serialize.rs:147:45
    |
147 |                                             &f_name: &str,
    |                                             ^^^^^^^

error: aborting due to previous error

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions