Skip to content

[parallel codegen] Windows linker failure #38254

Closed
@est31

Description

@est31

I can reproduce this on current master (7537f95), as well as a branch I have for the i128 PR (so its not a recent regression from the last 1-2 days...).

When I set codegen-units to 0 in config.toml, and start the build with ./x.py build -j 4, the stage 0 compiler artifact build fails with:

build\x86_64-pc-windows-gnu\stage0-rustc\x86_64-pc-windows-gnu\release\deps\rustc_metadata-f72209e13ac87845.0.o:(.text+0x1491a): undefined reference to `rustc_metadata::index::_$LT$impl$u20$rustc_metadata..schema..LazySeq$LT$rustc_metadata..index..Index$GT$$GT$::iter_enumerated::_$u7b$$u7b$closure$u7d$$u7d$::hf7d447e1d3033d13'
collect2.exe: error: ld returned 1 exit status


error: aborting due to previous error

Build failed, waiting for other jobs to finish...
error: Could not compile `rustc_metadata`.

The VM has 4 threads. The error is not spurious, I could reproduce it for three times, without any try where I couldn't reproduce it.

When I set codegen-units back to the default of 1 it compiles successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions