Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uprust-crypto doesn't build on x86_64-pc-windows-msvc #324
Comments
DaGenix
referenced this issue
Oct 28, 2015
Merged
Implement assembly routines for MSVC based toolchains #326
This comment has been minimized.
This comment has been minimized.
|
Thanks for the PR. The issue is that MSVC support inline assembly differently than GCC - and on x86_64, that means not at all. #326 should fix this by implementing the assembly in a way that it can be compiled by MSVC's toolchain. The AES-NI optimized AES implementation won't work (since I didn't port that code), but everything else should (except on 32-bit MSVC since Rust doesn't support unwinding there yet). |
DaGenix
closed this
in
#326
Oct 29, 2015
This comment has been minimized.
This comment has been minimized.
|
Ok, this problem should be fixed with v0.2.34. Please let me know if you're still seeing it. Thanks! |
briansmith
referenced this issue
Oct 29, 2015
Closed
Add x86_64-pc-windows-msvc and i686-pc-windows-msvc configurations #5
This comment has been minimized.
This comment has been minimized.
Thanks! I verified that the latest version of rust-crypto builds for -msvc. Also, FYI, the rust-crypto SHA-1/SHA-2 code is faster than the OpenSSL C code (not the assembly language code) on -msvc. Pretty cool! |
This comment has been minimized.
This comment has been minimized.
applejohnny
commented
Nov 19, 2015
|
I have similar problem :( cargo build
Compiling rust-crypto v0.2.34
failed to run custom build command for `rust-crypto v0.2.34`
Process didn't exit successfully: `C:\...\target\debug\build\rust-crypto-feefa0fa34543a2b\build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-pc-windows-gnu")
OPT_LEVEL = Some("0")
PROFILE = Some("debug")
TARGET = Some("x86_64-pc-windows-gnu")
debug=true opt-level=0
HOST = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CFLAGS_x86_64-pc-windows-gnu = None
CFLAGS_x86_64_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-m64" "-o" "C:\\...\\target\\debug\\build\\rust-crypto-feefa0fa34543a2b\\out\\src\\util_helpers.o" "-c" "src/util_helpers.c"
ExitStatus(ExitStatus(1))
command did not execute successfully, got: exit code: 1
|
briansmith commentedOct 26, 2015
When building crypto-bench for target x86_64-pc-windows-msvc, the build fails when building rust-crypto: