Skip to content

Windows build cause an error with "ring" #3375

@vit1251

Description

@vit1251

Checkout 0.0.13 and cargo build on Windows system cause an

...
Compiling ring v0.16.20
Compiling blake3 v1.3.1
Compiling tinyvec v1.5.1
Compiling kernel32-sys v0.2.2
Compiling heck v0.3.3
Compiling onig_sys v69.7.1
Compiling hashbrown v0.9.1
Compiling form_urlencoded v1.0.1
Compiling blake2b_simd v1.0.0
Compiling byte-unit v4.0.14
Compiling gcd v2.1.0
Compiling binary-heap-plus v0.4.1
Compiling rand_core v0.6.3
Compiling phf v0.10.1
error: failed to run custom build command for `ring v0.16.20`
Caused by:
 process didn't exit successfully: `C:\Work\coreutils\target\debug\build\ring-87b393e98829ddb3\build-script-build` (exit code:101)
 --- stdout
 OPT_LEVEL = Some("0")
 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 = Some("gcc.exe")
 CFLAGS_x86_64-pc-windows-msvc = None
 CFLAGS_x86_64_pc_windows_msvc = None
 HOST_CFLAGS = None
 CFLAGS = None
 CRATE_CC_NO_DEFAULTS = None
 DEBUG = Some("true")
 CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
 warning: build failed, waiting for other jobs to finish...
 error: build failed                                                                                                                                                                                                                                                            

Use an Widnows msvc toolchains:

C:\Work\coreutils>rustup show
Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\~\.rustup
stable-x86_64-pc-windows-msvc (default)
rustc 1.60.0 (7737e0b5c 2022-04-04)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions