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

Compile error with current Rust version on Windows 10 #24

Open
fblz opened this issue Apr 10, 2023 · 0 comments
Open

Compile error with current Rust version on Windows 10 #24

fblz opened this issue Apr 10, 2023 · 0 comments

Comments

@fblz
Copy link

fblz commented Apr 10, 2023

Compiled with a fresh rustup install on Windows 10.
Master yields the same error.

PS C:\Users\WDAGUtilityAccount\ws> cargo install --git https://github.com/dsprenkels/sss-cli --branch v0.1
    Updating git repository `https://github.com/dsprenkels/sss-cli`
  Installing shamirsecretsharing-cli v0.1.1 (https://github.com/dsprenkels/sss-cli?branch=v0.1#d327af9d)
    Updating crates.io index
   Compiling winapi v0.3.9
   Compiling cfg-if v1.0.0
   Compiling getrandom v0.1.16
   Compiling memchr v2.5.0
   Compiling libc v0.2.141
   Compiling cc v1.0.79
   Compiling log v0.4.17
   Compiling ppv-lite86 v0.2.17
   Compiling quick-error v1.2.3
   Compiling regex-syntax v0.6.29
   Compiling unicode-width v0.1.10
   Compiling strsim v0.8.0
   Compiling bitflags v1.3.2
   Compiling humantime v1.3.0
   Compiling textwrap v0.11.0
   Compiling rand_core v0.5.1
   Compiling shamirsecretsharing v0.1.4
   Compiling rand_chacha v0.2.2
The following warnings were emitted during compilation:

warning: cl : Command line error D8021 : invalid numeric argument '/Wno-sign-compare'

error: failed to run custom build command for `shamirsecretsharing v0.1.4`

Caused by:
  process didn't exit successfully: `C:\Users\WDAGUtilityAccount\AppData\Local\Temp\cargo-installhvHDSy\release\build\shamirsecretsharing-47db41b09501d45d\build-script-build` (exit code: 1)
  --- stdout
  TARGET = Some("x86_64-pc-windows-msvc")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-pc-windows-msvc")
  cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
  CC_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
  CC_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
  CFLAGS_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
  CFLAGS_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  DEBUG = Some("false")
  running: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-O2" "-Brepro" "-W4" "-Wno-sign-compare" "-FoC:\\Users\\WDAGUtilityAccount\\AppData\\Local\\Temp\\cargo-installhvHDSy\\release\\build\\shamirsecretsharing-15fa30fb38a6aa42\\out\\sss/sss.o" "-c" "sss/sss.c"
  cargo:warning=cl : Command line error D8021 : invalid numeric argument '/Wno-sign-compare'
  exit code: 2

  --- stderr


  error occurred: Command "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-O2" "-Brepro" "-W4" "-Wno-sign-compare" "-FoC:\\Users\\WDAGUtilityAccount\\AppData\\Local\\Temp\\cargo-installhvHDSy\\release\\build\\shamirsecretsharing-15fa30fb38a6aa42\\out\\sss/sss.o" "-c" "sss/sss.c" with args "cl.exe" did not execute successfully (status code exit code: 2).


warning: build failed, waiting for other jobs to finish...
error: failed to compile `shamirsecretsharing-cli v0.1.1 (https://github.com/dsprenkels/sss-cli?branch=v0.1#d327af9d)`, intermediate artifacts can be found at `C:\Users\WDAGUtilityAccount\AppData\Local\Temp\cargo-installhvHDSy`
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