You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this cross compile should work but I make something wrong.
Here the steps I do:
docker container run -it --rm rust:1.80 bash
apt-get update
# Install and configure clang
apt-get install -y software-properties-common lsb-release
curl -sSL https://apt.llvm.org/llvm.sh | bash
export CARGO_TARGET_I586_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-Clink-self-contained=yes -Clinker=rust-lld"export CC_i586_unknown_linux_musl="clang-18"# Install musl
rustup target add i586-unknown-linux-musl
apt update && apt install -y musl-tools
# Create the project
cargo new foo
cd foo
cargo add ring
# build now
cargo build --release --target i586-unknown-linux-musl
I get the error:
root@4fca3feaf339:/foo# cargo build --release --target i586-unknown-linux-musl
Compiling ring v0.17.8
error[E0080]: evaluation of constant value failed
--> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/src/cpu/intel.rs:28:9
|
28 | assert!(cfg!(target_feature = "sse") && cfg!(target_feature = "sse2"));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: cfg!(target_feature = "sse") && cfg!(target_feature = "sse2")', /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/src/cpu/intel.rs:28:9
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0080`.
error: could not compile `ring` (lib) due to 1 previous error
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I believe this cross compile should work but I make something wrong.
Here the steps I do:
I get the error:
What am I doing wrong?
All reactions