Repository navigation
Linking dylib with "lto = true": assertion failed: !is_full_lto_enabled(sess) #50324
Copy link
Copy link
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.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-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.
Description
Activity
- addedI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
on May 3, 2018 Thanks for the bug report, @zachreizner!
This could either be construed as a bug where it should ignore
-C ltowhen compiling crates with dylib deps, or a bug in rustc as it should just do "as much LTO as it can" which means skipping crates that come in through dylibs. I'd be fine either way!Is this related to #45689 ?
Yes it's probably the same or a very similar assertion
@alexcrichton any update on this?
Reacted by BELFODIL AimeneNo, as far as I know no work has happened on this
- addedT-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.C-bugCategory: This is a bug.Category: This is a bug.A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binaries
on Oct 2, 2018 As of #101403 on nightly
-Zdylib-ltocan now be passed if you want to LTO a rust dylib.This shouldn't crash anymore. And for allowing LTO with dylib at all it works on nightly with
-Zdylib-ltoand #31854 is still open.
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.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-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.
Approximate file tree:
Top-level Cargo.lock:
test_dylib/Cargo.toml:
Snippet of output from
RUST_BACKTRACE=1 cargo build --release --verbose: