Skip to content

Cannot check rustc from master branch on Windows 10: build failure in rustc_codegen_gcc #142754

@AngelicosPhosphoros

Description

@AngelicosPhosphoros

Summary

python x.py check fails since commit 27f8efb .

Previous commit 64df9e3 works fine.

Command used

python x.py check

Expected behaviour

check should have pass

Actual behaviour

python x.py check fails with message

Checking stage0 gcc (x86_64-pc-windows-msvc)
    Checking rustc_codegen_gcc v0.1.0 (C:\rust-lang\compiler\rustc_codegen_gcc)
error[E0464]: multiple candidates for `rmeta` dependency `object` found
  --> compiler\rustc_codegen_gcc\src\lib.rs:28:1
   |
28 | extern crate object;
   | ^^^^^^^^^^^^^^^^^^^^
   |
   = note: candidate #1: C:\rust-lang\build\x86_64-pc-windows-msvc\stage0-sysroot\lib\rustlib\x86_64-pc-windows-msvc\lib\libobject-4cf2b494bb70904a.rmeta
   = note: candidate #2: C:\rust-lang\build\x86_64-pc-windows-msvc\stage0-sysroot\lib\rustlib\x86_64-pc-windows-msvc\lib\libobject-fdfb702ed2e7b9f3.rmeta

Bootstrap configuration (bootstrap.toml)

# See bootstrap.example.toml for documentation of available options
#
profile = "library"  # Includes one of the default files in src/bootstrap/defaults
change-id = 119899

Operating system

Windows 10 22H2

HEAD

27f8efb

Additional context

I actually failed to build current master c683403 and then run git bisect python x.py check to find first commit that fails to build.

I also tried clear install of Win10 on virtual machine with only python, Visual Studio Build tools and it failed with same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-gccThings relevant to the [future] GCC backendC-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions