Skip to content

Rust bootstrap fails with recent stage0 build #31142

Closed

Description

@antonblanchard

I built a powerpc64le stage0 snapshot today, and I get a bootstrap failure when trying to use it:

src/libcore/option.rs:172:79: 172:81 error: This node does not have a stability attribute
src/libcore/option.rs:172 Some(#[cfg_attr(not(stage0), stable(feature = "rust1", since = "1.0.0"))] T)

I made progress by removing the stage0 checks, but assume that the check is there for a reason. Did old stage0 builds have issues with stability attributes?

Activity

  1. alexcrichton commented on Jan 23, 2016

    @alexcrichton
    Member

    This is likely because the bootstrap is only designed to work when starting from one compiler version. If you just successfully bootstrapped a new architecture and tried to turn around and rebootstrap again, that's a different version of the compiler which we can't bootstrap from.

    What's specifically happening here is that the current snapshot does not require an attribute at this location, but the compiled compiler does. This means that there's a cfg(stage0) guard, but when you use a brand new compiler to bootstrap it'll require the attribute.

    This basically ends up meaning that all our snapshot compilers must be kept in sync (e.g. all built from the same revision)

  2. antonblanchard commented on Jan 23, 2016

    @antonblanchard
    ContributorAuthor

    Ok makes sense, we can work around it until the stage0 compilers get resynced.

  3. alexcrichton commented on Jan 23, 2016

    @alexcrichton
    Member

    Ok, in that case I'll close this for now, but thanks for the report!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions