Closed
Description
I'm getting a SIGSEGV error when I try to build a project that depends on compiler-builtins, when passing the nostartfiles flag to the linker. I can also reproduce this in the git master branch of compiler-builtins with the .cargo/config file below:
Compiling compiler_builtins v0.1.31 (/work/compiler-builtins)
error: failed to run custom build command for `compiler_builtins v0.1.31 (/work/compiler-builtins)`
Caused by:
process didn't exit successfully: `/work/compiler-builtins/target/debug/build/compiler_builtins-f9b68c234adcc015/build-script-build` (signal: 11, SIGSEGV: invalid memory reference)
.cargo/config:
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-nostartfiles"]
Rust version: rustc 1.45.0-nightly (74e804683 2020-05-30)
It seems similar to issue #338, but that seems like it may have been already addressed back in rust 1.41, given info in the linked Rust bug.
Metadata
Metadata
Assignees
Labels
No labels