Skip to content

Build of GNU toolchain 1.66.0 on Windows fails on rustbuild config.rs when git is installed in MSYS #105696

Closed
@georgik

Description

@georgik

Problem: The build of GNU toolchain 1.66.0 on Windows is failing in the rustbuild step when it's trying to locate git (MSYS git-2.38.1-1) .

Build steps:

python3 src/bootstrap/configure.py --release-channel=nightly --enable-extended --tools=clippy,cargo,rustfmt --dist-compression-formats='xz'
python3 x.py dist --stage 2

Failure:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." }', config.rs:863:74

Snippet from stack trace of rustbuild:

34:     0x7ff77f1114e6 - mainCRTStartup
                               at C:\M\mingw-w64-crt-git\src\build-MINGW64\C:/M/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt\crtexe.c:206:9

Workaround:

  • remove MSYS2 git
pacman -R git

After removing MSYS2 git the build pass without problem. The issue was not present in 1.65.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-windowsOperating system: WindowsO-windows-gnuToolchain: GNU, Operating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions