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

windows上最新main分支cargo run --release失败 #155

Open
structure-charger opened this issue Feb 20, 2025 · 1 comment
Open

windows上最新main分支cargo run --release失败 #155

structure-charger opened this issue Feb 20, 2025 · 1 comment

Comments

@structure-charger
Copy link

cargo 1.84.0 (66221abde 2024-11-19) msvc visual studio 2022
rustc
warning: [email protected]: ToolExecError: Command "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX64\x64\cl.exe" "-nologo" "-MD" "-O2" "-Brepro" "-I" "include" "-I" "C:\Users\admin\pproject\ai00_server\target\release\build\ring-f6cb4d659b8f3d5b\out" "-W4" "/Gy" "/Zc:wchar_t" "/Zc:forScope" "/Zc:inline" "/Wall" "/wd4127" "/wd4464" "/wd4514" "/wd4710" "/wd4711" "/wd4820" "/wd5045" "-DNDEBUG" "-FoC:\Users\admin\pproject\ai00_server\target\release\build\ring-f6cb4d659b8f3d5b\out\0f1e39740815ef8c-mem.o" "-c" "crypto/mem.c" with args cl.exe did not execute successfully (status code exit code: 2).
error: failed to run custom build command for ring v0.17.8

Caused by:
process didn't exit successfully: C:\Users\admin\pproject\ai00_server\target\release\build\ring-4481988865b04382\build-script-build (exit code: 1)
--- stderr

error occurred in cc-rs: Command "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX64\x64\cl.exe" "-nologo" "-MD" "-O2" "-Brepro" "-I" "include" "-I" "C:\Users\admin\pproject\ai00_server\target\release\build\ring-f6cb4d659b8f3d5b\out" "-W4" "/Gy" "/Zc:wchar_t" "/Zc:forScope" "/Zc:inline" "/Wall" "/wd4127" "/wd4464" "/wd4514" "/wd4710" "/wd4711" "/wd4820" "/wd5045" "-DNDEBUG" "-FoC:\Users\admin\pproject\ai00_server\target\release\build\ring-f6cb4d659b8f3d5b\out\0f1e39740815ef8c-mem.o" "-c" "crypto/mem.c" with args cl.exe did not execute successfully (status code exit code: 2).

warning: build failed, waiting for other jobs to finish...

看上去ring包build失败

@cryscan
Copy link
Collaborator

cryscan commented Feb 20, 2025

确保使用 stable-x86_64-pc-windows-msvc 工具链。

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

2 participants