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
{{ message }}
Repository navigation
1.62.0 build on Solaris fails with - error: -Csplit-debuginfo is unstable on this platfor #99208
While building Rust 1.62.0 on Solaris SPARC it fails with:
Building stage0 tool unstable-book-gen (sparcv9-sun-solaris)
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /builds/psumbera/RUST/solaris-userland/components/rust/rustc/rustc-1.62.0-src/src/tools/rls/racer/Cargo.toml
workspace: /builds/psumbera/RUST/solaris-userland/components/rust/rustc/rustc-1.62.0-src/Cargo.toml
error: failed to run `rustc` to learn about target-specific information
Caused by:
process didn't exit successfully: `/builds/psumbera/RUST/solaris-userland/components/rust/rustc/build/sparcv9/build/bootstrap/debug/rustc - --crate-name ___ --print=file-names --cfg=bootstrap -Csymbol-mangling-version=v0 -Zmacro-backtrace -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Csplit-debuginfo=off -Ztls-model=initial-exec --target sparcv9-sun-solaris --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit status: 1)
--- stderr
error: `-Csplit-debuginfo` is unstable on this platform
Build completed unsuccessfully in 0:00:03
Looks like this was caused by #95612 (cc @davidtwco). It looks like that also caused issues with openbsd (#96597), I'm wondering if it would make sense to audit which platforms were affected to make sure they are all addressed?
Passing -Zunstable-options seems like a somewhat blunt solution. I would expect it to not pass -Csplit-debuginfo if the target does not support it and the user did not specify it. That is roughly what Cargo does, though I suspect that might be not as easy to do in bootstrap.
Looks like this was caused by #95612 (cc @davidtwco). It looks like that also caused issues with openbsd (#96597), I'm wondering if it would make sense to audit which platforms were affected to make sure they are all addressed?
Passing -Zunstable-options seems like a somewhat blunt solution. I would expect it to not pass -Csplit-debuginfo if the target does not support it and the user did not specify it. That is roughly what Cargo does, though I suspect that might be not as easy to do in bootstrap.
I'm not sure there's a great way of solving this properly in bootstrap. It should be solved for good by #98051 but if you want to submit a PR in the meantime that adds a condition for Solaris then I can r+ it.
Activity
ehuss commentedon Jul 13, 2022
Looks like this was caused by #95612 (cc @davidtwco). It looks like that also caused issues with openbsd (#96597), I'm wondering if it would make sense to audit which platforms were affected to make sure they are all addressed?
Passing
-Zunstable-optionsseems like a somewhat blunt solution. I would expect it to not pass-Csplit-debuginfoif the target does not support it and the user did not specify it. That is roughly what Cargo does, though I suspect that might be not as easy to do in bootstrap.davidtwco commentedon Jul 13, 2022
I'm not sure there's a great way of solving this properly in bootstrap. It should be solved for good by #98051 but if you want to submit a PR in the meantime that adds a condition for Solaris then I can r+ it.
apiraino commentedon Jul 13, 2022
WG-prioritization assigning priority (Zulip discussion).
@rustbot label -I-prioritize +P-high
solaris: unbreak build on native platform
Rollup merge of rust-lang#99236 - psumbera:Issue99208, r=Mark-Simulacrum