Support target "x86_64-unknown-linux-gnu"
hasezoey opened this issue · 2 comments
hasezoey commented
version used: git head 2c7dd81
toolchain used: stable-x86_64-unknown-linux-gnu
os: Linux Mint 20.2
Compile output
$ cargo build --release
Downloaded gumdrop v0.8.0
Downloaded gumdrop_derive v0.8.0
Downloaded pretty_env_logger v0.4.0
Downloaded libc v0.2.97
Downloaded 4 crates (555.3 KB) in 0.68s
Compiling proc-macro2 v1.0.27
Compiling unicode-xid v0.2.2
Compiling syn v1.0.73
Compiling memchr v2.4.0
Compiling libc v0.2.97
Compiling serde_derive v1.0.126
Compiling log v0.4.14
Compiling cfg-if v1.0.0
error[E0463]: can't find crate for `core`
|
= note: the `x86_64-unknown-linux-musl` target may not be installed
= help: consider downloading the target with `rustup target add x86_64-unknown-linux-musl`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: could not compile `cfg-if`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
Eraden commented
It's supported but there is .cargo/config
and default target is
[build]
target = "x86_64-unknown-linux-musl"
This target was chosen to make binary portable between different Linux distro
Eraden commented
Please compile using:
cargo build --release --target x86_64-unknown-linux-gnu