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

error: unknown lint: clashing_extern_declarations and others #74628

Closed
psumbera opened this issue Jul 22, 2020 · 2 comments
Closed

error: unknown lint: clashing_extern_declarations and others #74628

psumbera opened this issue Jul 22, 2020 · 2 comments

Comments

@psumbera
Copy link
Contributor

I'm trying to build latest Rust sources from github on Solaris. There are no Solaris bootstrap archives therefore I'm using for bootstrap Rust 1.45.0. But I'm getting thinks like:

Building stage0 std artifacts (sparcv9-sun-solaris -> sparcv9-sun-solaris)
   Compiling core v0.0.0 (/builds/psumbera/RUST/rust/src/libcore)
error: unknown lint: `clashing_extern_declarations`
   --> src/libcore/lib.rs:298:9
    |
298 | #[allow(clashing_extern_declarations)]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `-D unknown-lints` implied by `-D warnings`

error: unknown lint: `clashing_extern_declarations`
   --> src/libcore/lib.rs:298:9
    |
298 | #[allow(clashing_extern_declarations)]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: the `#[track_caller]` attribute is an experimental feature
  --> src/libcore/ops/index.rs:68:5
   |
68 |     #[track_caller]
   |     ^^^^^^^^^^^^^^^
   |
   = note: see issue #47809 <https://github.com/rust-lang/rust/issues/47809> for more information
   = help: add `#![feature(track_caller)]` to the crate attributes to enable

error[E0658]: the `#[track_caller]` attribute is an experimental feature
   --> src/libcore/ops/index.rs:170:5
    |
170 |     #[track_caller]
    |     ^^^^^^^^^^^^^^^
    |
    = note: see issue #47809 <https://github.com/rust-lang/rust/issues/47809> for more information
    = help: add `#![feature(track_caller)]` to the crate attributes to enable

Any idea what is wrong?

@tmiasko
Copy link
Contributor

tmiasko commented Jul 22, 2020

The current version of rustc used for bootstraping is 1.46.0, so those errors
would indicate that 1.45.0 doesn't have clashing_extern_declarations lint and
the track_caller feature is still unstable.

You could either try checking out rustc from before #74395 (at that point it
should be possible to bootstrap from 1.45.0), or try reverting some of changes
there.

@Alexendoo Alexendoo removed the C-bug Category: This is a bug. label Jul 22, 2020
@psumbera
Copy link
Contributor Author

Thanks for explanation. So this is not real bug. Closing it.

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

3 participants