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

Readme Example Fails #79

Open
shreyas-londhe opened this issue Mar 13, 2024 · 0 comments
Open

Readme Example Fails #79

shreyas-londhe opened this issue Mar 13, 2024 · 0 comments

Comments

@shreyas-londhe
Copy link

Hi, I was trying out the library and noticed that it does not compile on my system.

I see the following error:

The following warnings were emitted during compilation:

warning: ring@0.13.5: xcrun: error: unable to lookup item 'PlatformVersion' from command line tools installation
warning: ring@0.13.5: xcrun: error: unable to lookup item 'PlatformVersion' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'

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

Caused by:
  process didn't exit successfully: `/Users/shreyaslondhe/Desktop/dev/aerius-repos/paillier-native-test/target/debug/build/ring-28913207c50bd536/build-script-build` (exit status: 101)
  --- stdout
  CARGO: /Users/shreyaslondhe/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo
  CARGO_CFG_PANIC: unwind
  CARGO_CFG_TARGET_ARCH: aarch64
  CARGO_CFG_TARGET_ENDIAN: little
  CARGO_CFG_TARGET_ENV: 
  CARGO_CFG_TARGET_FAMILY: unix
  CARGO_CFG_TARGET_FEATURE: 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_CFG_TARGET_HAS_ATOMIC: 128,16,32,64,8,ptr
  CARGO_CFG_TARGET_OS: macos
  CARGO_CFG_TARGET_POINTER_WIDTH: 64
  CARGO_CFG_TARGET_VENDOR: apple
  CARGO_CFG_UNIX: 
  CARGO_ENCODED_RUSTFLAGS: 
  CARGO_FEATURE_DEFAULT: 1
  CARGO_FEATURE_DEV_URANDOM_FALLBACK: 1
  CARGO_FEATURE_USE_HEAP: 1
  CARGO_HOME: /Users/shreyaslondhe/.cargo
  CARGO_MAKEFLAGS: -j --jobserver-fds=7,8 --jobserver-auth=7,8
  CARGO_MANIFEST_DIR: /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5
  CARGO_MANIFEST_LINKS: ring-asm
  CARGO_PKG_AUTHORS: Brian Smith <brian@briansmith.org>
  CARGO_PKG_DESCRIPTION: Safe, fast, small crypto using Rust.
  CARGO_PKG_HOMEPAGE: 
  CARGO_PKG_LICENSE: 
  CARGO_PKG_LICENSE_FILE: LICENSE
  CARGO_PKG_NAME: ring
  CARGO_PKG_README: doc/link-to-readme.md
  CARGO_PKG_REPOSITORY: https://github.com/briansmith/ring
  CARGO_PKG_RUST_VERSION: 
  CARGO_PKG_VERSION: 0.13.5
  CARGO_PKG_VERSION_MAJOR: 0
  CARGO_PKG_VERSION_MINOR: 13
  CARGO_PKG_VERSION_PATCH: 5
  CARGO_PKG_VERSION_PRE: 
  COLORTERM: truecolor
  COMMAND_MODE: unix2003
  DEBUG: true
  DYLD_FALLBACK_LIBRARY_PATH: /Users/shreyaslondhe/Desktop/dev/aerius-repos/paillier-native-test/target/debug/deps:/Users/shreyaslondhe/Desktop/dev/aerius-repos/paillier-native-test/target/debug:/Users/shreyaslondhe/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib:/Users/shreyaslondhe/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/shreyaslondhe/lib:/usr/local/lib:/usr/lib
  GIT_ASKPASS: /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh
  HOME: /Users/shreyaslondhe
  HOMEBREW_CELLAR: /opt/homebrew/Cellar
  HOMEBREW_PREFIX: /opt/homebrew
  HOMEBREW_REPOSITORY: /opt/homebrew
  HOST: aarch64-apple-darwin
  INFOPATH: /opt/homebrew/share/info:/opt/homebrew/share/info:
  LANG: en_US.UTF-8
  LC_CTYPE: UTF-8
  LESS: -R
  LOGNAME: shreyaslondhe
  LSCOLORS: Gxfxcxdxbxegedabagacad
  LS_COLORS: di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43
  MANPATH: /Users/shreyaslondhe/.nvm/versions/node/v18.18.0/share/man:/opt/homebrew/share/man:/usr/share/man:/usr/local/share/man:/Users/shreyaslondhe/.nvm/versions/node/v18.18.0/share/man:/opt/homebrew/share/man::
  MallocNanoZone: 0
  NUM_JOBS: 8
  NVM_BIN: /Users/shreyaslondhe/.nvm/versions/node/v18.18.0/bin
  NVM_CD_FLAGS: -q
  NVM_DIR: /Users/shreyaslondhe/.nvm
  NVM_INC: /Users/shreyaslondhe/.nvm/versions/node/v18.18.0/include/node
  OLDPWD: /Users/shreyaslondhe/Desktop/dev/aerius-repos/paillier-native-test
  OPT_LEVEL: 0
  ORIGINAL_XDG_CURRENT_DESKTOP: undefined
  OUT_DIR: /Users/shreyaslondhe/Desktop/dev/aerius-repos/paillier-native-test/target/debug/build/ring-eec1d7616f91249a/out
  P9K_SSH: 0
  P9K_TTY: old
  PAGER: less
  PATH: /Users/shreyaslondhe/.pyenv/shims:/Users/shreyaslondhe/.nvm/versions/node/v18.18.0/bin:/Users/shreyaslondhe/Library/Python/3.9/bin:/opt/homebrew/opt/openssl@1.1/bin:/Users/shreyaslondhe/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/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:/Users/shreyaslondhe/.nvm/versions/node/v18.18.0/bin:/Users/shreyaslondhe/Library/Python/3.9/bin:/opt/homebrew/opt/openssl@1.1/bin:/Users/shreyaslondhe/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/shreyaslondhe/.cargo/bin:/Users/shreyaslondhe/.succinct/bin:/Users/shreyaslondhe/.foundry/bin:/Users/shreyaslondhe/.sp1/bin:/Users/shreyaslondhe/.local/bin:/Users/shreyaslondhe/.local/bin
  PROFILE: debug
  PWD: /Users/shreyaslondhe/Desktop/dev/aerius-repos/paillier-native-test
  RING_NIGHTLY_MISUSE: 1
  RUSTC: /Users/shreyaslondhe/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc
  RUSTDOC: /Users/shreyaslondhe/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustdoc
  RUSTUP_HOME: /Users/shreyaslondhe/.rustup
  RUSTUP_TOOLCHAIN: stable-aarch64-apple-darwin
  RUST_RECURSION_COUNT: 1
  SHELL: /bin/zsh
  SHLVL: 3
  SSH_AUTH_SOCK: /private/tmp/com.apple.launchd.VvoNpUJWz1/Listeners
  TARGET: aarch64-apple-darwin
  TERM: xterm-256color
  TERM_PROGRAM: vscode
  TERM_PROGRAM_VERSION: 1.87.1
  TERM_SESSION_ID: D54F9A70-8475-4C94-8B18-2D80B8A60E3E
  TMPDIR: /var/folders/m6/phxysytx5g3c98m4rb4m532h0000gn/T/
  USER: shreyaslondhe
  USER_ZDOTDIR: /Users/shreyaslondhe
  VSCODE_GIT_ASKPASS_EXTRA_ARGS: 
  VSCODE_GIT_ASKPASS_MAIN: /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js
  VSCODE_GIT_ASKPASS_NODE: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)
  VSCODE_GIT_IPC_HANDLE: /var/folders/m6/phxysytx5g3c98m4rb4m532h0000gn/T/vscode-git-72633ac52f.sock
  VSCODE_INJECTION: 1
  VSCODE_NONCE: d47d723e-9097-49c4-8f86-6223727bb8bc
  XPC_FLAGS: 0x0
  XPC_SERVICE_NAME: 0
  ZDOTDIR: /Users/shreyaslondhe
  ZSH: /Users/shreyaslondhe/.oh-my-zsh
  _: /Users/shreyaslondhe/.cargo/bin/cargo
  _P9K_SSH_TTY: /dev/ttys007
  _P9K_TTY: /dev/ttys007
  __CFBundleIdentifier: com.microsoft.VSCode
  __CF_USER_TEXT_ENCODING: 0x1F5:0x0:0x0
  OPT_LEVEL = Some("0")
  TARGET = Some("aarch64-apple-darwin")
  HOST = Some("aarch64-apple-darwin")
  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=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  cargo:warning=xcrun: error: unable to lookup item 'PlatformVersion' from command line tools installation
  cargo:warning=xcrun: error: unable to lookup item 'PlatformVersion' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
  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=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  running "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=11.0" "-I" "include" "-Wall" "-Wextra" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-declarations" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-Wno-cast-align" "-fstack-protector" "-gfull" "-D_XOPEN_SOURCE=700" "-c" "-o/Users/shreyaslondhe/Desktop/dev/aerius-repos/paillier-native-test/target/debug/build/ring-eec1d7616f91249a/out/aesv8-armx-linux64.o" "/Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S"

  --- stderr
  /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S:21:1: error: unknown directive
  .hidden GFp_aes_hw_set_encrypt_key
  ^
  /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S:22:1: error: unknown directive
  .type GFp_aes_hw_set_encrypt_key,%function
  ^
  /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S:186:1: error: unknown directive
  .size GFp_aes_hw_set_encrypt_key,.-GFp_aes_hw_set_encrypt_key
  ^
  /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S:188:1: error: unknown directive
  .hidden GFp_aes_hw_encrypt
  ^
  /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S:189:1: error: unknown directive
  .type GFp_aes_hw_encrypt,%function
  ^
  /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S:216:1: error: unknown directive
  .size GFp_aes_hw_encrypt,.-GFp_aes_hw_encrypt
  ^
  /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S:218:1: error: unknown directive
  .hidden GFp_aes_hw_decrypt
  ^
  /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S:219:1: error: unknown directive
  .type GFp_aes_hw_decrypt,%function
  ^
  /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S:246:1: error: unknown directive
  .size GFp_aes_hw_decrypt,.-GFp_aes_hw_decrypt
  ^
  /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S:248:1: error: unknown directive
  .hidden GFp_aes_hw_ctr32_encrypt_blocks
  ^
  /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S:249:1: error: unknown directive
  .type GFp_aes_hw_ctr32_encrypt_blocks,%function
  ^
  /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/pregenerated/aesv8-armx-linux64.S:428:1: error: unknown directive
  .size GFp_aes_hw_ctr32_encrypt_blocks,.-GFp_aes_hw_ctr32_encrypt_blocks
  ^
  thread 'main' panicked at /Users/shreyaslondhe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.13.5/build.rs:645:9:
  execution failed
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Any help is much appreciated, thanks :)

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

No branches or pull requests

1 participant