&引用;未能分析清单";使用libc板条箱的本地修改副本编译rustc时

&引用;未能分析清单";使用libc板条箱的本地修改副本编译rustc时,rust,libc,rust-cargo,Rust,Libc,Rust Cargo,我需要使用修改过的libc板条箱构建rustc编译器。我克隆了libc目录并进行了更改,现在如何在构建中包含修改后的libc 这是我的货物 [patch.crates io] #与上述货物类似,我们希望RLS使用“rustfmt”的供应商版本` #我们也在运输(以确保RLS和 #`rustfmt`可执行文件的版本完全相同)。 rustfmt nightly={path=“src/tools/rustfmt”} #请参阅'src/tools/rustc workspace hack/README.

我需要使用修改过的libc板条箱构建
rustc
编译器。我克隆了libc目录并进行了更改,现在如何在构建中包含修改后的libc

这是我的货物

[patch.crates io]
#与上述货物类似,我们希望RLS使用“rustfmt”的供应商版本`
#我们也在运输(以确保RLS和
#`rustfmt`可执行文件的版本完全相同)。
rustfmt nightly={path=“src/tools/rustfmt”}
#请参阅'src/tools/rustc workspace hack/README.md'中的注释了解发生了什么
#这里
rustc工作区hack={path='src/tools/rustc工作区hack'}
#请参阅“tools/rustc std workspace core/README.md”中的注释了解发生了什么
#这里
rustc标准工作区核心={path='src/tools/rustc标准工作区核心'}
rustc std workspace alloc={path='src/tools/rustc std workspace alloc'}
rustc std workspace std={path='src/tools/rustc std workspace std'}
libc={path=“../libc”}
[补丁。“https://github.com/rust-lang/rust-clippy"]
clippy_lints={path=“src/tools/clippy/clippy_lints”}
[依赖关系]
#libc={verion=“0.2”,默认特性=false,path=“../libc”}
这是我得到的错误:

mahto@hydlnxeng27:/local/mnt/workspace/mahto/rust$./x.py build--config config.toml src/libstd 2>&1 | tee build.log
仅更新已更改的子模块
子模块在0.04秒内更新
错误:无法在`/local/mnt/workspace/mahto/rust/Cargo.toml解析清单`
原因:
虚拟清单未指定[依赖项]
无法运行:/local/mnt/workspace/mahto/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo build--清单路径/local/mnt/workspace/mahto/rust/src/bootstrap/cargo.toml
生成在0:00:00内成功完成
在注释掉Cargo.toml中的
dependencies
部分后,我得到了以下新错误:

错误[E0433]:未能解析:未解析的导入
错误:由于上一个错误而中止
有关此错误的详细信息,请尝试“rustc--explain E0433”。
错误:无法编译'libc'。