Rocket: failed to run custom build command for `ring v0.11.0`

Created on 25 Sep 2018  路  6Comments  路  Source: SergioBenitez/Rocket

I got the mentioned error today!!

Note: I got this error at WIn 10, did not get it at Mac!

capture

D:rust\my_app> cargo +nightly build
Compiling ring v0.11.0
error: failed to run custom build command for ring v0.11.0
process didn't exit successfully: D:\rust\my_app\target\debug\build\ring-cb4eeba313ba3ebf\build-script-build (exit code: 101)
--- stdout
=::: ::\
=D:: D:rust\my_app
ALLUSERSPROFILE: C:\ProgramData
APPDATA: C:\Users\Hasan Yousef\AppDataRoaming
CARGO: \?C:\Users\Hasan Yousef.rustup\toolchains\nightly-x86_64-pc-windows-msvcbin\cargo.exe
CARGO_CFG_DEBUG_ASSERTIONS:
CARGO_CFG_PROC_MACRO:
CARGO_CFG_TARGET_ARCH: x86_64
CARGO_CFG_TARGET_ENDIAN: little
CARGO_CFG_TARGET_ENV: msvc
CARGO_CFG_TARGET_FAMILY: windows
CARGO_CFG_TARGET_FEATURE: fxsr,mmx,sse,sse2
CARGO_CFG_TARGET_HAS_ATOMIC: 16,32,64,8,cas,ptr
CARGO_CFG_TARGET_OS: windows
CARGO_CFG_TARGET_POINTER_WIDTH: 64
CARGO_CFG_TARGET_THREAD_LOCAL:
CARGO_CFG_TARGET_VENDOR: pc
CARGO_CFG_WINDOWS:
CARGO_FEATURE_DEFAULT: 1
CARGO_FEATURE_DEV_URANDOM_FALLBACK: 1
CARGO_FEATURE_USE_HEAP: 1
CARGO_HOME: C:\Users\Hasan Yousef.cargo
CARGO_MAKEFLAGS: --jobserver-fds=__rust_jobserver_semaphore_1641538000 --jobserver-auth=__rust_jobserver_semaphore_1641538000
CARGO_MANIFEST_DIR: C:\Users\Hasan Yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0
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_NAME: ring
CARGO_PKG_VERSION: 0.11.0
CARGO_PKG_VERSION_MAJOR: 0
CARGO_PKG_VERSION_MINOR: 11
CARGO_PKG_VERSION_PATCH: 0
CARGO_PKG_VERSION_PRE:
CHOCOLATEYINSTALL: C:\ProgramData\chocolatey
CHOCOLATEYLASTPATHUPDATE: Sun Sep 23 19:14:04 2018
COMMONPROGRAMFILES: C:\Program FilesCommon Files
COMMONPROGRAMFILES(X86): C:\Program Files (x86)Common Files
COMMONPROGRAMW6432: C:\Program FilesCommon Files
COMPUTERNAME: DESKTOP-KPD1Q5Q
COMSPEC: C:\Windows\system32\cmd.exe
DEBUG: true
HOMEDRIVE: C:
HOMEPATH: \Users\Hasan Yousef
HOST: x86_64-pc-windows-msvc
LD_LIBRARY_PATH: C:\Users\Hasan Yousef.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib
LOCALAPPDATA: C:\Users\Hasan Yousef\AppData\Local
LOGONSERVER: \DESKTOP-KPD1Q5Q
NUMBER_OF_PROCESSORS: 4
NUM_JOBS: 4
ONEDRIVE: C:\Users\Hasan Yousef\OneDrive
OPT_LEVEL: 0
OS: Windows_NT
OUT_DIR: D:rust\my_apptarget\debugbuildring-b6811a876271f6d3\out
PATH: D:rust\my_apptarget\debug\deps;C:\Users\Hasan Yousef.rustup\toolchains\nightly-x86_64-pc-windows-msvcbin;C:\Users\Hasan Yousef.cargobin;C:\Users\Hasan Yousef.rustup\toolchains\nig
htly-x86_64-pc-windows-msvcbin;C:\Program Files (x86)\InteliCLS Client\;C:\Program Files\InteliCLS Client\;C:\Windows\system32;C:\Windows;C:\WindowsSystem32\Wbem;C:\WindowsSystem32\Window
sPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine ComponentsDAL;C:\Program Files\Intel\Intel(R) Management Engine ComponentsDAL;C:\Program Files (x86)\Intel\Intel(R)
Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFibin\;C:\Program FilesCommon Files\Intel\WirelessCommon\;C:\Progra
mData\chocolateybin;C:\Program Files\Microsoft VS Codebin;C:\Program Files\Git\cmd;C:\Users\Hasan Yousef.cargobin;C:\Users\Hasan Yousef\AppData\Local\Microsoft\WindowsApps;
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE: AMD64
PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
PROCESSOR_LEVEL: 6
PROCESSOR_REVISION: 8e09
PROFILE: debug
PROGRAMDATA: C:\ProgramData
PROGRAMFILES: C:\Program Files
PROGRAMFILES(X86): C:\Program Files (x86)
PROGRAMW6432: C:\Program Files
PROMPT: $P$G
PSMODULEPATH: C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC: C:\Users\Public
RUSTC: rustc
RUSTDOC: rustdoc
RUSTUP_HOME: C:\Users\Hasan Yousef.rustup
RUSTUP_TOOLCHAIN: nightly-x86_64-pc-windows-msvc
RUST_RECURSION_COUNT: 1
SESSIONNAME: Console
SYSTEMDRIVE: C:
SYSTEMROOT: C:\Windows
TARGET: x86_64-pc-windows-msvc
TEMP: C:\Users\HASANY~1\AppData\Local\Temp
TMP: C:\Users\HASANY~1\AppData\Local\Temp
USERDOMAIN: DESKTOP-KPD1Q5Q
USERDOMAIN_ROAMINGPROFILE: DESKTOP-KPD1Q5Q
USERNAME: Hasan Yousef
USERPROFILE: C:\Users\Hasan Yousef
WINDIR: C:\Windows
OPT_LEVEL = Some("0")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
CC_x86_64-pc-windows-msvc = None
HOST = Some("x86_64-pc-windows-msvc")
CC_x86_64_pc_windows_msvc = None
CC_x86_64-pc-windows-msvc = None
CC_x86_64_pc_windows_msvc = None
HOST_CC = None
CC = None
HOST_CC = None
CC = None
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CC_x86_64-pc-windows-msvc = None
CC_x86_64_pc_windows_msvc = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
running "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\cl.exe" "/nologo" "/MD" "/Z7" "/I" "include" "/GS" "/Gy" "/EHsc" "
/GR-" "/Zc:wchar_t" "/Zc:forScope" "/Zc:inline" "/Zc:rvalueCast" "/sdl" "/Wall" "/WX" "/wd4127" "/wd4464" "/wd4514" "/wd4710" "/wd4711" "/wd4820" "/Od" "/RTCsu" "/W4" "-c" "/FoD:\rust\my_app
\target\debug\build\ring-b6811a876271f6d3\out\ecp_nistz256.obj" "crypto/ec/ecp_nistz256.c"
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\cl.exe" "/nologo" "/MD" "/Z7" "/I" "include" "/GS" "/Gy" "/EHsc" "
/GR-" "/Zc:wchar_t" "/Zc:forScope" "/Zc:inline" "/Zc:rvalueCast" "/sdl" "/Wall" "/WX" "/wd4127" "/wd4464" "/wd4514" "/wd4710" "/wd4711" "/wd4820" "/Od" "/RTCsu" "/W4" "-c" "/FoD:\rust\my_app
\target\debug\build\ring-b6811a876271f6d3\out\constant_time_test.obj" "crypto/constant_time_test.c"
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\cl.exe" "/nologo" "/MD" "/Z7" "/I" "include" "/GS" "/Gy" "/EHsc" "
/GR-" "/Zc:wchar_t" "/Zc:forScope" "/Zc:inline" "/Zc:rvalueCast" "/sdl" "/Wall" "/WX" "/wd4127" "/wd4464" "/wd4514" "/wd4710" "/wd4711" "/wd4820" "/Od" "/RTCsu" "/W4" "-c" "/FoD:\rust\my_app
\target\debug\build\ring-b6811a876271f6d3\out\generic.obj" "crypto/bn/generic.c"
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CC_x86_64-pc-windows-msvc = None
CC_x86_64_pc_windows_msvc = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\cl.exe" "/nologo" "/MD" "/Z7" "/I" "include" "/GS" "/Gy" "/EHsc" "
/GR-" "/Zc:wchar_t" "/Zc:forScope" "/Zc:inline" "/Zc:rvalueCast" "/sdl" "/Wall" "/WX" "/wd4127" "/wd4464" "/wd4514" "/wd4710" "/wd4711" "/wd4820" "/Od" "/RTCsu" "/W4" "-c" "/FoD:\rust\my_app
\target\debug\build\ring-b6811a876271f6d3\out\curve25519.obj" "crypto/curve25519/curve25519.c"
constant_time_test.c
generic.c
curve25519.c
ecp_nistz256.c
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(128) : error C2220: warning treated as error - no 'object' file generated
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(128) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspec
tre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(127) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(128) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(208) : error C2220: warning treated as error - no 'object' file generated
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(208) : warning C5045: Compiler will insert Spectre mitigation for memory load if /
Qspectre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(207) : note: index 'j' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(217) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(205) : warning C5045: Compiler will insert Spectre mitigation for memory load if /
Qspectre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(204) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(217) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(194) : warning C5045: Compiler will insert Spectre mitigation for memory load if /
Qspectre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(193) : note: index 'j' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(217) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(191) : warning C5045: Compiler will insert Spectre mitigation for memory load if /
Qspectre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(190) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(217) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(185) : warning C5045: Compiler will insert Spectre mitigation for memory load if /
Qspectre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(184) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\constant_time_test.c(217) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3510) : error C2220: warning treated as error - no 'object' file generated
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3685) : error C2220: warning treated as error - no 'object' file generated
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3510) : warning C5045: Compiler will insert Spectre mitigation for memory load
if /Qspectre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3509) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3510) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3685) : warning C5045: Compiler will insert Spectre mitigation for memory load
if /Qspectre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3669) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3685) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3495) : warning C5045: Compiler will insert Spectre mitigation for memory load
if /Qspectre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3494) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3495) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3682) : warning C5045: Compiler will insert Spectre mitigation for memory load
if /Qspectre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3669) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3682) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3677) : warning C5045: Compiler will insert Spectre mitigation for memory load
if /Qspectre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3669) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3677) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3674) : warning C5045: Compiler will insert Spectre mitigation for memory load
if /Qspectre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3669) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\curve25519\curve25519.c(3674) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\ecp_nistz256.c(76) : error C2220: warning treated as error - no 'object' file generated
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\ecp_nistz256.c(76) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspe
ctre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\ecp_nistz256.c(75) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\ecp_nistz256.c(78) : note: feeds call on this line
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CC_x86_64-pc-windows-msvc = None
CC_x86_64_pc_windows_msvc = None
HOST_CC = None
CC = None
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CC_x86_64-pc-windows-msvc = None
CC_x86_64_pc_windows_msvc = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\cl.exe" "/nologo" "/MD" "/Z7" "/I" "include" "/GS" "/Gy" "/EHsc" "
/GR-" "/Zc:wchar_t" "/Zc:forScope" "/Zc:inline" "/Zc:rvalueCast" "/sdl" "/Wall" "/WX" "/wd4127" "/wd4464" "/wd4514" "/wd4710" "/wd4711" "/wd4820" "/Od" "/RTCsu" "/W4" "-c" "/FoD:\rust\my_app
\target\debug\build\ring-b6811a876271f6d3\out\gfp_p384.obj" "crypto/ec/gfp_p384.c"
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\cl.exe" "/nologo" "/MD" "/Z7" "/I" "include" "/GS" "/Gy" "/EHsc" "
/GR-" "/Zc:wchar_t" "/Zc:forScope" "/Zc:inline" "/Zc:rvalueCast" "/sdl" "/Wall" "/WX" "/wd4127" "/wd4464" "/wd4514" "/wd4710" "/wd4711" "/wd4820" "/Od" "/RTCsu" "/W4" "-c" "/FoD:\rust\my_app
\target\debug\build\ring-b6811a876271f6d3\out\limbs.obj" "crypto/limbs/limbs.c"
gfp_p384.c
limbs.c
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(47) : error C2220: warning treated as error - no 'object' file generated
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\gfp_p384.c(224) : error C2220: warning treated as error - no 'object' file generated
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(47) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre
switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(46) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(47) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\gfp_p384.c(224) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectr
e switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\gfp_p384.c(223) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\gfp_p384.c(224) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(93) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre
switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(89) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(93) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(117) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspec
tre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(116) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(117) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(111) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectr
e switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(110) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(111) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\ecp_nistz384.inl(35) : error C2220: warning treated as error - no 'object' file generated
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(73) : error C2220: warning treated as error - no 'object' file generated
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\ecp_nistz384.inl(35) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qs
pectre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\ecp_nistz384.inl(34) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\ecp_nistz384.inl(37) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(73) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre
switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(72) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(75) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(128) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspec
tre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(127) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(128) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(126) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectr
e switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(125) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(126) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\gfp_p384.c(93) : error C2220: warning treated as error - no 'object' file generated
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(161) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectr
e switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(160) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(161) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\gfp_p384.c(93) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre
switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\gfp_p384.c(92) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\ec\gfp_p384.c(93) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(117) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspec
tre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(116) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(117) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(58) : error C2220: warning treated as error - no 'object' file generated
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(58) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre
switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(57) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(58) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(128) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspec
tre switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(127) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.inl(128) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(143) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectr
e switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(142) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(143) : note: feeds call on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(138) : warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectr
e switch specified
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(137) : note: index 'i' range checked by comparison on this line
c:\users\hasan yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0\crypto\limbs\limbs.c(143) : note: feeds call on this line

--- stderr
thread '' panicked at 'execution failed', C:\Users\Hasan Yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0build.rs:658:9thread '' panicked at 'execution fai
led', C:\Users\Hasan Yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0build.rs:658:9
note: Run with RUST_BACKTRACE=1 for a backtrace.
thread '' panicked at 'execution failed', C:\Users\Hasan Yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0build.rs:658:9

thread '' panicked at 'execution failed', C:\Users\Hasan Yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0build.rs:658:9
thread '' panicked at 'execution failed', C:\Users\Hasan Yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0build.rs:658:9
thread '' panicked at 'execution failed', C:\Users\Hasan Yousef.cargoregistry\src\github.com-1ecc6299db9ec823ring-0.11.0build.rs:658:9

All 6 comments

This is a duplicate of #642. In short: ring 0.11 can no longer build on windows because the spectre fixes introduced new warnings which trips up the ring build. ring decided not to publish a fix for 0.11 and instead fixed it in later major versions. This should be fixed in the 0.4 release of Rocket.

Any idea when 0.4 release of Rocket will be available!

@hajsf if you want 0.4dev you can git clone this repo and use it like this
rocket = { path = "./path/to/Rocket/core/lib" }
rocket_codegen = { path = "./path/to/Rocket/core/codegen" }
rocket_contrib = { path = "./path/to/Rocket/contrib/lib" }

@yknomeh I got my Cargo.toml as below:

[package]
name = "rocket4_prv"
version = "0.1.0"
authors = ["Hasan Yousef"]
edition = "2018"

[dependencies]
rocket = { path = "https://github.com/SergioBenitez/Rocket/tree/v0.4-preview/core/lib" }
rocket_codegen = { path = "https://github.com/SergioBenitez/Rocket/tree/v0.4-preview/core/codegen" }
rocket_contrib = { path = "https://github.com/SergioBenitez/Rocket/tree/v0.4-preview/contrib/lib" }

but got the below while running Cargo run:

PS D:rocket4_prv> cargo +nightly run
error: failed to load source for a dependency on rocket

Caused by:
Unable to update D:rocket4_prv\https:\github.comSergioBenitezRocket\tree\v0.4-p

Caused by:
failed to read `D:rocket4_prv\https:\github.comSergioBenitezRocket\tree\v0.4-pr

Caused by:
The filename, directory name, or volume label syntax is incorrect. (os error 123)

Did I made something wrong here!

@hajsf You need:

[dependencies]
rocket = { git = "https://github.com/SergioBenitez/Rocket" }
rocket_contrib = { git = "https://github.com/SergioBenitez/Rocket" }

Note that you shouldn't be depending on rocket_codegen directly anymore.

@SergioBenitez so how the simplest code should be, if I used the getting-started code below:

#![feature(plugin)]
#![plugin(rocket_codegen)]

extern crate rocket;

#[get("/")]
fn index() -> &'static str {
    "Hello, world!"
}

fn main() {
    rocket::ignite().mount("/", routes![index]).launch();
}

I'll get an errot:

error[E0463]: can't find crate for rocket_codegen
--> src\main.rs:2:11
|
| #![plugin(rocket_codegen)]
| ^^^^^^^^^^^^^^ can't find crate

And if I replaced #![plugin(rocket_codegen)], by #![feature(custom_attribute)] then I'm getting:

error: cannot find macro routes! in this scope
--> src\main.rs:12:33
|
| rocket::ignite().mount("/", routes![index]).launch();
|

Was this page helpful?
0 / 5 - 0 ratings

Related issues

haheute picture haheute  路  4Comments

Hokutosei picture Hokutosei  路  4Comments

loothood picture loothood  路  4Comments

paulvt picture paulvt  路  4Comments

kitsuneninetails picture kitsuneninetails  路  4Comments