rust-lang / cc-rs

Rust library for build scripts to compile C/C++ code into a Rust library
https://docs.rs/cc
Apache License 2.0
1.87k stars 451 forks source link

Error compiling for apple target #984

Open Masber opened 8 months ago

Masber commented 8 months ago

Dear CC community,

I am having the following error when creating apple artifacs

https://github.com/eth-cscs/manta/actions/runs/8111755111/job/22171593499

I also tried locally using the cross crate but it also fails

❯ cross run --target aarch64-apple-darwin
[cross] warning: `cross` does not provide a Docker image for target aarch64-apple-darwin, specify a custom image in `Cross.toml`.
[cross] note: Falling back to `cargo` on the host.
warning: /home/msopena/polybox/Documents/tests/rust/manta/Cargo.toml: unused manifest key: build
   Compiling serde_derive v1.0.197
   Compiling tokio-macros v2.2.0
   Compiling tracing-attributes v0.1.27
   Compiling futures-macro v0.3.30
   Compiling thiserror-impl v1.0.57
   Compiling ring v0.17.8
   Compiling openssl-sys v0.9.101
   Compiling libz-sys v1.1.15
   Compiling openssl-macros v0.1.1
The following warnings were emitted during compilation:

warning: libz-sys@1.1.15: Compiler version doesn't include clang or GCC: "cc" "--version"
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-adler32.o" "-c" "src/zlib/adler32.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-compress.o" "-c" "src/zlib/compress.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-crc32.o" "-c" "src/zlib/crc32.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-deflate.o" "-c" "src/zlib/deflate.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-infback.o" "-c" "src/zlib/infback.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-inffast.o" "-c" "src/zlib/inffast.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-inflate.o" "-c" "src/zlib/inflate.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-inftrees.o" "-c" "src/zlib/inftrees.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-trees.o" "-c" "src/zlib/trees.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-uncompr.o" "-c" "src/zlib/uncompr.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-zutil.o" "-c" "src/zlib/zutil.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-gzclose.o" "-c" "src/zlib/gzclose.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-gzlib.o" "-c" "src/zlib/gzlib.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-gzread.o" "-c" "src/zlib/gzread.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
warning: libz-sys@1.1.15: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: libz-sys@1.1.15: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-gzwrite.o" "-c" "src/zlib/gzwrite.c" with args "cc" did not execute successfully (status code exit status: 1).

error: failed to run custom build command for `libz-sys v1.1.15`

Caused by:
  process didn't exit successfully: `/home/msopena/polybox/Documents/tests/rust/manta/target/debug/build/libz-sys-333e35dad6888bbe/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=LIBZ_SYS_STATIC
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-env-changed=ZLIB_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_aarch64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_aarch64_apple_darwin
  cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_ALLOW_CROSS
  cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS
  cargo:rerun-if-env-changed=PKG_CONFIG_aarch64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_aarch64_apple_darwin
  cargo:rerun-if-env-changed=TARGET_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64_apple_darwin
  cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo-warning=pkg-config has not been configured to support cross-compilation.

  Install a sysroot for the target platform and configure it via
  PKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_PATH, or install a
  cross-compiling wrapper for pkg-config and set it via
  PKG_CONFIG environment variable.
  TARGET = Some("aarch64-apple-darwin")
  OPT_LEVEL = Some("0")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_aarch64-apple-darwin
  CC_aarch64-apple-darwin = None
  cargo:rerun-if-env-changed=CC_aarch64_apple_darwin
  CC_aarch64_apple_darwin = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  RUSTC_LINKER = None
  cargo:rerun-if-env-changed=CROSS_COMPILE
  CROSS_COMPILE = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:warning=Compiler version doesn't include clang or GCC: "cc" "--version"
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh")
  cargo:rerun-if-env-changed=CFLAGS_aarch64-apple-darwin
  CFLAGS_aarch64-apple-darwin = None
  cargo:rerun-if-env-changed=CFLAGS_aarch64_apple_darwin
  CFLAGS_aarch64_apple_darwin = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-adler32.o" "-c" "src/zlib/adler32.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-compress.o" "-c" "src/zlib/compress.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-crc32.o" "-c" "src/zlib/crc32.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-deflate.o" "-c" "src/zlib/deflate.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-infback.o" "-c" "src/zlib/infback.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-inffast.o" "-c" "src/zlib/inffast.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-inflate.o" "-c" "src/zlib/inflate.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-inftrees.o" "-c" "src/zlib/inftrees.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-trees.o" "-c" "src/zlib/trees.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-uncompr.o" "-c" "src/zlib/uncompr.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-zutil.o" "-c" "src/zlib/zutil.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-gzclose.o" "-c" "src/zlib/gzclose.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-gzlib.o" "-c" "src/zlib/gzlib.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-gzread.o" "-c" "src/zlib/gzread.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-gzwrite.o" "-c" "src/zlib/gzwrite.c" with args "cc" did not execute successfully (status code exit status: 1).

  --- stderr

  error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "src/zlib" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-D_C99_SOURCE" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/libz-sys-eae80863d42c17d5/out/lib/0dc752f03a07a721-gzwrite.o" "-c" "src/zlib/gzwrite.c" with args "cc" did not execute successfully (status code exit status: 1).

warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:

warning: ring@0.17.8: Compiler version doesn't include clang or GCC: "cc" "--version"
warning: ring@0.17.8: cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/fad98b632b8ce3cc-curve25519.o" "-c" "crypto/curve25519/curve25519.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/ca4b6ef5433f5aeb-aes_nohw.o" "-c" "crypto/fipsmodule/aes/aes_nohw.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/ca8bd8684bb569fa-montgomery.o" "-c" "crypto/fipsmodule/bn/montgomery.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/ca8bd8684bb569fa-montgomery_inv.o" "-c" "crypto/fipsmodule/bn/montgomery_inv.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/a9af75d892b04b75-ecp_nistz.o" "-c" "crypto/fipsmodule/ec/ecp_nistz.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/a9af75d892b04b75-gfp_p256.o" "-c" "crypto/fipsmodule/ec/gfp_p256.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/a9af75d892b04b75-gfp_p384.o" "-c" "crypto/fipsmodule/ec/gfp_p384.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/a9af75d892b04b75-p256.o" "-c" "crypto/fipsmodule/ec/p256.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/a1949f2101df4b9c-limbs.o" "-c" "crypto/limbs/limbs.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/7effb53edfc7fa2d-mem.o" "-c" "crypto/mem.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/bec76f70393ddef1-poly1305.o" "-c" "crypto/poly1305/poly1305.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/7effb53edfc7fa2d-crypto.o" "-c" "crypto/crypto.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/a9af75d892b04b75-p256-nistz.o" "-c" "crypto/fipsmodule/ec/p256-nistz.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/05760ec84f2c6ad2-aesv8-armx-ios64.o" "-c" "/home/msopena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/aesv8-armx-ios64.S" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/05760ec84f2c6ad2-ghashv8-armx-ios64.o" "-c" "/home/msopena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/ghashv8-armx-ios64.S" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/05760ec84f2c6ad2-chacha-armv8-ios64.o" "-c" "/home/msopena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/chacha-armv8-ios64.S" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/05760ec84f2c6ad2-chacha20_poly1305_armv8-ios64.o" "-c" "/home/msopena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/chacha20_poly1305_armv8-ios64.S" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/05760ec84f2c6ad2-vpaes-armv8-ios64.o" "-c" "/home/msopena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/vpaes-armv8-ios64.S" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/05760ec84f2c6ad2-armv8-mont-ios64.o" "-c" "/home/msopena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/armv8-mont-ios64.S" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/05760ec84f2c6ad2-p256-armv8-asm-ios64.o" "-c" "/home/msopena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/p256-armv8-asm-ios64.S" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/05760ec84f2c6ad2-ghash-neon-armv8-ios64.o" "-c" "/home/msopena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/ghash-neon-armv8-ios64.S" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/05760ec84f2c6ad2-aesv8-gcm-armv8-ios64.o" "-c" "/home/msopena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/aesv8-gcm-armv8-ios64.S" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/05760ec84f2c6ad2-sha512-armv8-ios64.o" "-c" "/home/msopena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/sha512-armv8-ios64.S" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-arch’
warning: ring@0.17.8: cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
warning: ring@0.17.8: ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/05760ec84f2c6ad2-sha256-armv8-ios64.o" "-c" "/home/msopena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/sha256-armv8-ios64.S" with args "cc" did not execute successfully (status code exit status: 1).

error: failed to run custom build command for `ring v0.17.8`

Caused by:
  process didn't exit successfully: `/home/msopena/polybox/Documents/tests/rust/manta/target/debug/build/ring-8e7383cb22d2be9d/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=RING_PREGENERATE_ASM
  cargo:rustc-env=RING_CORE_PREFIX=ring_core_0_17_8_
  OPT_LEVEL = Some("0")
  TARGET = Some("aarch64-apple-darwin")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_aarch64-apple-darwin
  CC_aarch64-apple-darwin = None
  cargo:rerun-if-env-changed=CC_aarch64_apple_darwin
  CC_aarch64_apple_darwin = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  RUSTC_LINKER = None
  cargo:rerun-if-env-changed=CROSS_COMPILE
  CROSS_COMPILE = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:warning=Compiler version doesn't include clang or GCC: "cc" "--version"
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh")
  cargo:rerun-if-env-changed=CFLAGS_aarch64-apple-darwin
  CFLAGS_aarch64-apple-darwin = None
  cargo:rerun-if-env-changed=CFLAGS_aarch64_apple_darwin
  CFLAGS_aarch64_apple_darwin = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=cc: error: unrecognized debug output level ‘full’
  cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’
  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/fad98b632b8ce3cc-curve25519.o" "-c" "crypto/curve25519/curve25519.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
  cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/ca4b6ef5433f5aeb-aes_nohw.o" "-c" "crypto/fipsmodule/aes/aes_nohw.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
  cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/ca8bd8684bb569fa-montgomery.o" "-c" "crypto/fipsmodule/bn/montgomery.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
  cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/ca8bd8684bb569fa-montgomery_inv.o" "-c" "crypto/fipsmodule/bn/montgomery_inv.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
  cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/a9af75d892b04b75-ecp_nistz.o" "-c" "crypto/fipsmodule/ec/ecp_nistz.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
  cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/a9af75d892b04b75-gfp_p256.o" "-c" "crypto/fipsmodule/ec/gfp_p256.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
  cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/a9af75d892b04b75-gfp_p384.o" "-c" "crypto/fipsmodule/ec/gfp_p384.c" with args "cc" did not execute successfully (status code exit status: 1).cargo:warning=cc: error: unrecognized debug output level ‘full’
  cargo:warning=cc: error: unrecognized command-line option ‘-arch’
  cargo:warning=cc: error: unrecognized command-line option ‘-mmacosx-version-min=11.0’

  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-mmacosx-version-min=11.0" "-I" "include" "-I" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-o" "/home/msopena/polybox/Documents/tests/rust/manta/target/aarch64-apple-darwin/debug/build/ring-f9e4f1cc3915bbc8/out/a9af75d892b04b75-p256.

I raised this issue with opessl and they refered me to you.

Could you please advice what do I need to do in order to build apple artifacts?

thank you very much

NobodyXu commented 8 months ago

cc @BlackHoleFox seems a bit similar to #963

Edit:

The runner information from CI log:

Image: macos-11 Version: 20240127.1 Included Software: https://github.com/actions/runner-images/blob/macOS-11/20240127.1/images/macos/macos-11-Readme.md Image Release: https://github.com/actions/runner-images/releases/tag/macOS-11%2F20240127.1

It uses clang 13.0.0 by default and has clang 15 available in homebrew

marcusvinoli commented 8 months ago

I had a very similar issue trying to compile a project on my Mac. I have two projects using the tmq library. I spent the whole weekend trying to figure out why the project I started on friday didn't compile (showing up a lot of messages quite similar to the ones you showed), but another one with exact same dependencies coded on last month was compiling as a charm. At first I thought this might be a problem with the lib itself (all the problems started when I added this dependency to my project), but only when I piped the 4k lines of error messages to a text file that I realized the potential issue was on linking process (the error messages was flooding my terminal so I was unable to check the whole message).

Since the dependencies in my Cargo.toml file did not differ between both projects, I had to find the culprit in Cargo.lock. My very first suspect was the cc, and to fix the compilation issues I had to commit a crime: I manually changed the cc package description in the Cargo.lock file, as follow:

Before:

[[package]]
name = "cc"
version = "1.0.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02f341c093d19155a6e41631ce5971aac4e9a868262212153124c15fa22d1cdc"
dependencies = [
 ...
]

After:

[[package]]
name = "cc"
version = "1.0.83"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
dependencies = [
 ...
]

The version "1.0.83" was taken from the Cargo.toml of my other project that was the same dependencies but was compiling.

Well, I really don't know how this "version downgrading" might affect the code (mine or yours), but this was the only way I found to solve this (at least for now). I hope that soon a patch could fix this, or maybe a more "ergonomic way" to manage this "internal" dependencies may help (frankly speaking, I don't know exactly how Cargo handles '.lock' files).

NobodyXu commented 8 months ago

https://github.com/eth-cscs/manta/actions/runs/8111755111/job/22171593499

The error in the output seems to be different from what you pasted, it seems to be #962

link2xt commented 8 months ago

Instead of manually changing Cargo.lock you can do cargo update -p cc --precise 1.0.83.

eugenehp commented 5 months ago

Guys, can you please confirm you have same issues with the most recent version of this library?

planetmarshall commented 4 months ago

I was seeing this issue with 1.0.99 when cross compiling for macos using osxcross. I solved it by setting the CC, CXX etc environment variables correctly for cross compiling. This may be of use to someone.

exFalso commented 2 months ago

Confirming that this is still an issue. We're not even using macos, we're compiling for x86_64-fortanix-unknown-sgx. Unfortunately we now have to bump cc because of other reasons, and it's difficult to drill down to find the issue.