Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/rust/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rust can';t运行bellperson板条箱-“;无法为“fff v0.2.2”运行自定义生成命令;_Rust - Fatal编程技术网

Rust can';t运行bellperson板条箱-“;无法为“fff v0.2.2”运行自定义生成命令;

Rust can';t运行bellperson板条箱-“;无法为“fff v0.2.2”运行自定义生成命令;,rust,Rust,我正在尝试使用bellperson板条箱创建一个生锈项目。 甚至在我的代码中实际实现它之前(而不是在bellman板条箱中),我只是尝试用它构建,但我得到了一个错误 My Cargo.toml: [package] name = "temp1" version = "0.1.0" edition = "2018" [dependencies] bellperson = "0.9.2" 我的主要简历: fn mai

我正在尝试使用bellperson板条箱创建一个生锈项目。 甚至在我的代码中实际实现它之前(而不是在bellman板条箱中),我只是尝试用它构建,但我得到了一个错误

My Cargo.toml:

[package]
name = "temp1"
version = "0.1.0"
edition = "2018"

[dependencies]
bellperson = "0.9.2"
我的主要简历:

fn main() {
println!("yay");
}
错误:

warning: cl : Command line warning D9024 : unrecognized source file type './asm/mul_4.S', object file assumed
warning: cl : Command line warning D9027 : source file './asm/mul_4.S' ignored

error: failed to run custom build command for `fff v0.2.2`

Caused by:
  process didn't exit successfully: `C:\Users\dana\Desktop\project\save to disk\target\debug\build\fff-733f5e53c9fbd315\build-script-build` (exit code: 1)
--- stdout
TARGET = Some("x86_64-pc-windows-msvc")
OPT_LEVEL = Some("0")
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
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
DEBUG = Some("true")
running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-W4" "-c" "-FoC:\\Users\\dana\\Desktop\\project\\save to disk\\target\\debug\\build\\fff-051a6b4af5fa312a\\out\\./asm/mul_4.o" "-c" "./asm/mul_4.S"
cargo:warning=cl : Command line warning D9024 : unrecognized source file type './asm/mul_4.S', object file assumed
cargo:warning=cl : Command line warning D9027 : source file './asm/mul_4.S' ignored
cl : Command line warning D9021 : no action performed
exit code: 0
AR_x86_64-pc-windows-msvc = None
AR_x86_64_pc_windows_msvc = None
HOST_AR = None
AR = None
running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX64\\x64\\lib.exe" "-out:C:\\Users\\dana\\Desktop\\project\\save to disk\\target\\debug\\build\\fff-051a6b4af5fa312a\\out\\libff-derive-crypto.a" "-nologo" "C:\\Users\\dana\\Desktop\\project\\save to disk\\target\\debug\\build\\fff-051a6b4af5fa312a\\out\\./asm/mul_4.o"
LINK : fatal error LNK1181: cannot open input file 'C:\Users\dana\Desktop\project\save to disk\target\debug\build\fff-051a6b4af5fa312a\out\.\asm\mul_4.o'
exit code: 1181

--- stderr


error occurred: Command "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX64\\x64\\lib.exe" "-out:C:\\Users\\dana\\Desktop\\project\\save to disk\\target\\debug\\build\\fff-051a6b4af5fa312a\\out\\libff-derive-crypto.a" "-nologo" "C:\\Users\\dana\\Desktop\\project\\save to disk\\target\\debug\\build\\fff-051a6b4af5fa312a\\out\\./asm/mul_4.o" with args "lib.exe" did not execute successfully (status code exit code: 1181).
有没有办法解决这个问题,或者为什么会这样?谢谢

--编辑-- 尝试使用Cygwin运行它,运行CC=gcc AR=gcc cargo build,得到一个类似的错误:

error: failed to run custom build command for `fff v0.2.2`

Caused by:
  process didn't exit successfully: `C:\Users\dana\Desktop\project\save to disk\t
arget\debug\build\fff-733f5e53c9fbd315\build-script-build` (exit code: 1)
--- stdout
TARGET = Some("x86_64-pc-windows-msvc")
OPT_LEVEL = Some("0")
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")
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")
running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-fram
e-pointer" "-m64" "-Wall" "-Wextra" "-c" "-FoC:\\Users\\dana\\Desktop\\project\\s
ave to disk\\target\\debug\\build\\fff-051a6b4af5fa312a\\out\\./asm/mul_4.o" "-c"
 "./asm/mul_4.S"
exit code: 0
AR_x86_64-pc-windows-msvc = None
AR_x86_64_pc_windows_msvc = None
HOST_AR = None
AR = Some("gcc")
running: "gcc" "-out:C:\\Users\\dana\\Desktop\\project\\save to disk\\target\\deb
ug\\build\\fff-051a6b4af5fa312a\\out\\libff-derive-crypto.a" "-nologo" "C:\\Users
\\dana\\Desktop\\project\\save to disk\\target\\debug\\build\\fff-051a6b4af5fa312
a\\out\\./asm/mul_4.o"
cargo:warning=gcc: error: C:\Users\dana\Desktop\project\save to disk\target\debug
\build\fff-051a6b4af5fa312a\out\./asm/mul_4.o: No such file or directory
cargo:warning=gcc: error: unrecognized command line option ‘-nologo’
cargo:warning=gcc: fatal error: no input files
cargo:warning=compilation terminated.
exit code: 1

--- stderr


error occurred: Command "gcc" "-out:C:\\Users\\dana\\Desktop\\project\\save to di
sk\\target\\debug\\build\\fff-051a6b4af5fa312a\\out\\libff-derive-crypto.a" "-nol
ogo" "C:\\Users\\dana\\Desktop\\project\\save to disk\\target\\debug\\build\\fff-
051a6b4af5fa312a\\out\\./asm/mul_4.o" with args "gcc" did not execute successfull
y (status code exit code: 1).



warning: build failed, waiting for other jobs to finish...
error: build failed
--第二版-- 和MinGW一起试过,负责货物建造。仍然不起作用,仍然存在类似问题:

warning: cl : Command line warning D9024 : unrecognized source file type './asm/mul_4.S', object file assumed
warning: cl : Command line warning D9027 : source file './asm/mul_4.S' ignored

error: failed to run custom build command for `fff v0.2.2`

Caused by:
  process didn't exit successfully: `C:\Users\dana\Desktop\project\save to disk\target\debug\build\fff-733f5e53c9fbd315\build-script-build` (exit code: 1)
--- stdout
TARGET = Some("x86_64-pc-windows-msvc")
OPT_LEVEL = Some("0")
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
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
DEBUG = Some("true")
running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-W4" "-c" "-FoC:\\Users\\dana\\Desktop\\project\\save to disk\\target\\debug\\build\\fff-051a6b4af5fa312a\\out\\./asm/mul_4.o" "-c" "./asm/mul_4.S"
cargo:warning=cl : Command line warning D9024 : unrecognized source file type './asm/mul_4.S', object file assumed
cargo:warning=cl : Command line warning D9027 : source file './asm/mul_4.S' ignored
cl : Command line warning D9021 : no action performed
exit code: 0
AR_x86_64-pc-windows-msvc = None
AR_x86_64_pc_windows_msvc = None
HOST_AR = None
AR = None
running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX64\\x64\\lib.exe" "-out:C:\\Users\\dana\\Desktop\\project\\save to disk\\target\\debug\\build\\fff-051a6b4af5fa312a\\out\\libff-derive-crypto.a" "-nologo" "C:\\Users\\dana\\Desktop\\project\\save to disk\\target\\debug\\build\\fff-051a6b4af5fa312a\\out\\./asm/mul_4.o"
LINK : fatal error LNK1181: cannot open input file 'C:\Users\dana\Desktop\project\save to disk\target\debug\build\fff-051a6b4af5fa312a\out\.\asm\mul_4.o'
exit code: 1181

--- stderr


error occurred: Command "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX64\\x64\\lib.exe" "-out:C:\\Users\\dana\\Desktop\\project\\save to disk\\target\\debug\\build\\fff-051a6b4af5fa312a\\out\\libff-derive-crypto.a" "-nologo" "C:\\Users\\dana\\Desktop\\project\\save to disk\\target\\debug\\build\\fff-051a6b4af5fa312a\\out\\./asm/mul_4.o" with args "lib.exe" did not execute successfully (status code exit code: 1181).



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

看起来
fff
板条箱包含无法使用MSVC生成的程序集文件。您可能需要安装GNU工具链,例如cygwin。我已经20年没有使用Windows了,因此我无法提供详细信息。使用Cygwin尝试过,运行CC=gcc-AR=gcc-cargo-build,仍然不起作用:(看起来你的目标triple仍然设置为
x86_64-pc-windows-msvc
,因此
cc
板条箱将传递适合msvc工具链的选项。我真的不知道你是否可以在cygwin上编译Rust,或者你是否应该改用MinGW。谷歌可能比从不使用windows的人更清楚。谷歌发现t他的:所以也许你最好使用MinGW,这也给了你一个GNU工具链。使用MinGW尝试过-仍然不起作用:(看起来
fff
板条箱包含一个无法用MSVC生成的程序集文件。您可能需要安装GNU工具链,例如cygwin。我已经20年没有使用Windows了,因此无法提供详细信息。使用cygwin尝试过,运行CC=gcc AR=gcc cargo build,仍然无法工作:(看起来你的目标triple仍然设置为
x86_64-pc-windows-msvc
,因此
cc
板条箱将传递适合msvc工具链的选项。我真的不知道你是否可以在cygwin上编译Rust,或者你是否应该改用MinGW。谷歌可能比从不使用windows的人更清楚。谷歌发现t他的:所以也许你最好使用MinGW,这也给了你一个GNU工具链。使用MinGW尝试过-仍然不起作用:(