Skip to content
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

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

Open
nbriggs opened this issue May 26, 2023 · 0 comments
Open

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

nbriggs opened this issue May 26, 2023 · 0 comments

Comments

@nbriggs
Copy link

nbriggs commented May 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant