Skip to content

building rust 1.60.0 on SPARC with 1.59.0 fails w/ lint error #16

@nbriggs

Description

@nbriggs

It's probably really an upstream problem, but could be solved by patching the rust distribution (removing a test case) so that it doesn't fail and abort the build when testing the lint-docs component due to inline assembly not being supported on SPARC archictectures:

Building stage0 tool lint-docs (sparcv9-sun-solaris)
    Finished release [optimized] target(s) in 1.55s
warning: the code example in lint `named_asm_labels` in /scratch/clone/components/rust/rustc/rustc-1.60.0-src/compiler/rustc_lint/src/builtin.rs failed to generate the expected output: did not find lint `named_asm_labels` in output of example, got:

error[E0472]: inline assembly is unsupported on this target
 --> lint_example.rs:5:9
  |
5 |         asm!("foo: bar");
  |         ^^^^^^^^^^^^^^^^


error: aborting due to previous error


Rustbook (sparcv9-sun-solaris) - rustc

The easy workaround is to build with -i make option and ignore the failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions