- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 396
Closed
Labels
acknowledgedan issue is accepted as shortcoming to be fixedan issue is accepted as shortcoming to be fixed
Description
Duplicates
- I have searched the existing issues
Current behavior 😯
Compiling on windows failed failed with errors from sha1-asm, which is known in RustCrypto/asm-hashes#17 and should be migrated by gix-features by disabling sha1/asm on windows:
warning: cl : Command line warning D9024 : unrecognized source file type 'src/x64.S', object file assumed
warning: cl : Command line warning D9027 : source file 'src/x64.S' ignored
error: failed to run custom build command for `sha1-asm v0.5.1`
Caused by:
  process didn't exit successfully: `D:\a\cargo-binstall\cargo-binstall\target\release\build\sha1-asm-898e65df03af5add\build-script-build` (exit code: 1)
  --- stdout
  TARGET = Some("x86_64-pc-windows-msvc")
  OPT_LEVEL = Some("z")
  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\\Enterprise\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-O1" "-Brepro" "-W4" "-c" "-FoD:\\a\\cargo-binstall\\cargo-binstall\\target\\x86_64-pc-windows-msvc\\release\\build\\sha1-asm-f3dce8890bea4dcb\\out\\src/x64.o" "-c" "src/x64.S"
  cargo:warning=cl : Command line warning D9024 : unrecognized source file type 'src/x64.S', object file assumed
  cargo:warning=cl : Command line warning D9027 : source file 'src/x64.S' ignored
  cl : Command line warning D9021 : no action performed
  exit code: 0
  cargo:rerun-if-env-changed=AR_x86_64-pc-windows-msvc
  AR_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=AR_x86_64_pc_windows_msvc
  AR_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=HOST_AR
  HOST_AR = None
  cargo:rerun-if-env-changed=AR
  AR = None
  cargo:rerun-if-env-changed=ARFLAGS_x86_64-pc-windows-msvc
  ARFLAGS_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=ARFLAGS_x86_64_pc_windows_msvc
  ARFLAGS_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=HOST_ARFLAGS
  HOST_ARFLAGS = None
  cargo:rerun-if-env-changed=ARFLAGS
  ARFLAGS = None
  running: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64\\lib.exe" "-out:D:\\a\\cargo-binstall\\cargo-binstall\\target\\x86_64-pc-windows-msvc\\release\\build\\sha1-asm-f3dce8890bea4dcb\\out\\libsha1.a" "-nologo" "D:\\a\\cargo-binstall\\cargo-binstall\\target\\x86_64-pc-windows-msvc\\release\\build\\sha1-asm-f3dce8890bea4dcb\\out\\src/x64.o"
  LINK : fatal error LNK1181: cannot open input file 'D:\a\cargo-binstall\cargo-binstall\target\x86_64-pc-windows-msvc\release\build\sha1-asm-f3dce8890bea4dcb\out\src\x64.o'
  exit code: 1181
  --- stderr
  error occurred: Command "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64\\lib.exe" "-out:D:\\a\\cargo-binstall\\cargo-binstall\\target\\x86_64-pc-windows-msvc\\release\\build\\sha1-asm-f3dce8890bea4dcb\\out\\libsha1.a" "-nologo" "D:\\a\\cargo-binstall\\cargo-binstall\\target\\x86_64-pc-windows-msvc\\release\\build\\sha1-asm-f3dce8890bea4dcb\\out\\src/x64.o" with args "lib.exe" did not execute successfully (status code exit code: 1181).
warning: build failed, waiting for other jobs to finish...
      Timing report saved to D:\a\cargo-binstall\cargo-binstall\target\cargo-timings\cargo-timing-20230629T142057Z.html
Expected behavior 🤔
Build should succeed.
Steps to reproduce 🕹
Compiling gix on x64/arm windows with features max-performance enabled.
Metadata
Metadata
Assignees
Labels
acknowledgedan issue is accepted as shortcoming to be fixedan issue is accepted as shortcoming to be fixed