Skip to content

1.62.0 build on Solaris fails with - error: -Csplit-debuginfo is unstable on this platfor #99208

Closed

Description

@psumbera

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

Activity

  1. ehuss commented on Jul 13, 2022

    @ehuss
    Contributor

    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.

  2. added
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Jul 13, 2022
  3. davidtwco commented on Jul 13, 2022

    @davidtwco
    Member

    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.

  4. apiraino commented on Jul 13, 2022

    @apiraino
    Contributor

    WG-prioritization assigning priority (Zulip discussion).

    @rustbot label -I-prioritize +P-high

  5. added
    P-highHigh priority
    and removed
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Jul 13, 2022
  6. added a commit that references this issue on Jul 14, 2022
    1e64a7b
  7. added a commit that references this issue on Jul 14, 2022
    f74358d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-solarisOperating system: SolarisP-highHigh priorityregression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions