Skip to content

Building and testing rustc on *BSD fails on -C split-debuginfo #96643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
m-ou-se opened this issue May 2, 2022 · 2 comments
Closed

Building and testing rustc on *BSD fails on -C split-debuginfo #96643

m-ou-se opened this issue May 2, 2022 · 2 comments
Labels
E-help-wanted Call for participation: Help is requested to fix this issue. O-netbsd Operating system: NetBSD T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@m-ou-se
Copy link
Member

m-ou-se commented May 2, 2022

-Csplit-debuginfo is passed on at least NetBSD and FreeBSD when testing rustc, but that results in an error saying that the option is not yet stable.

bootstrap/builder.rs enables unstable options on Linux and Windows, but not on other platforms:

rust/src/bootstrap/builder.rs

Lines 1408 to 1415 in 879fb42

if target.contains("linux") || target.contains("windows") {
rustflags.arg("-Zunstable-options");
}
match self.config.rust_split_debuginfo {
SplitDebuginfo::Packed => rustflags.arg("-Csplit-debuginfo=packed"),
SplitDebuginfo::Unpacked => rustflags.arg("-Csplit-debuginfo=unpacked"),
SplitDebuginfo::Off => rustflags.arg("-Csplit-debuginfo=off"),
};

@m-ou-se m-ou-se added E-help-wanted Call for participation: Help is requested to fix this issue. O-netbsd Operating system: NetBSD T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels May 2, 2022
@alex-semenyuk
Copy link
Member

@rustbot claim

@m-ou-se m-ou-se changed the title Building and testing rustc on NetBSD fails on -C split-debuginfo Building and testing rustc on *BSD fails on -C split-debuginfo May 5, 2022
@luqmana
Copy link
Member

luqmana commented Aug 12, 2022

This was fixed in #96758

@alex-semenyuk alex-semenyuk removed their assignment Aug 16, 2022
@jyn514 jyn514 closed this as completed Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-help-wanted Call for participation: Help is requested to fix this issue. O-netbsd Operating system: NetBSD T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants