Cannot check `rustc` from master branch on Windows 10: build failure in rustc_codegen_gcc
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Summary
python x.py check fails since commit 27f8efbae2bf906ea6f967dd3fe1eb0e7faf3a2e .
Previous commit 64df9e3c8a38e6975a6376ba0384d0a7bd4949ea 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
27f8efbae2bf906ea6f967dd3fe1eb0e7faf3a2e
Additional context
I actually failed to build current master c68340350c78eea402c4a85f8d9c1b7d3d607635 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing python x.py check on Windows 10 at the reported commit, then inspect compiler/rustc_codegen_gcc/src/lib.rs and the bootstrap configuration in bootstrap.toml around the duplicate object rmeta candidates. Compare the bisected commit with its predecessor; done means the Windows check completes without the E0464 multiple-candidates error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- build-system, compilers, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100