Open VyomPatel0109 opened 5 months ago
We need more information than that to even try to understand what is wrong.
rustc --version --verbose
)Error : linking with cc failed: exit status: 1
is incredibly vague. Do you have a dependency that has a build script that assumes some library is available to link to (e.g. some *-sys
crate)?Cargo.toml
?我们需要更多的信息才能尝试了解问题所在。
- rustc 版本是什么?(
rustc --version --verbose
)- 请发布_完整的_错误消息。
Error : linking with cc failed: exit status: 1
非常模糊。您是否有一个依赖项,该依赖项具有一个构建脚本,该脚本假设可以链接到某些库(例如某些*-sys
板条箱)?- 我们如何重现您的问题?_您是否有一个货物项目可以在不_处于 EC2 环境中的情况下重现链接失败的问题?
release: 1.78.0 LLVM version: 18.1.2
could not compile rust-i18n-macro
(lib) due to 1 previous error
Error: Cargo build failed from Linux
Please also post your Cargo.toml
. "linking with cc failed" usually indicates that one or more of your dependencies assumes or requires some library to be available on your system, but that said library is not available to the linker for one reason or another.
Please also post your
Cargo.toml
. "linking with cc failed" usually indicates that one or more of your dependencies assumes or requires some library to be available on your system, but that said library is not available to the linker for one reason or another.
Is there any way? I'm using Docker
docker rust:alpine3.19
alpine3.19 build success
apk update
apk add --no-cache -U build-base
Error : linking with cc failed: exit status: 1
I got above error when I tried to run my rust project using Cargo run command on free tier EC2 instance of AWS. How to resolve it?