-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Milestone
Description
It's always worked before. Turning back to compiling Rust after some period of other activities, and found out my binaries don't work anymore.
cargo new --bin bla
Created binary (application) `bla` project
cd /tmp/bla/
env RUSTFLAGS="-C target-feature=+crt-static" cargo build --target x86_64-unknown-linux-musl
Compiling bla v0.1.0 (file:///tmp/bla)
Finished dev [unoptimized + debuginfo] target(s) in 0.35 secs
Actual
file ./target/x86_64-unknown-linux-musl/debug/bla
./target/x86_64-unknown-linux-musl/debug/bla: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=8c6e0c77c39c031c76d95379bfe2593165b13a70, with debug_info, not stripped
Expected
A description of an executable statically linked to musl libc.
Meta
rustc 1.21.0-nightly (1d2a6df38 2017-08-03)
OS
Arch Linux with musl
package version 1.1.16-2
.
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.