Skip to content

rustc on Mingw64(MSYS2) fails to build #108628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Teapot4195 opened this issue Mar 1, 2023 · 7 comments
Closed

rustc on Mingw64(MSYS2) fails to build #108628

Teapot4195 opened this issue Mar 1, 2023 · 7 comments
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools O-windows-gnu Toolchain: GNU, Operating system: Windows

Comments

@Teapot4195
Copy link
Contributor

Teapot4195 commented Mar 1, 2023

When trying to run any ./x.py subcommand, bootstrap panics trying to canonicalize the path returned by the git command.

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:910:74```
@Teapot4195 Teapot4195 changed the title rustc on Mingw64(MSYS2) fails rustc on Mingw64(MSYS2) fails to build Mar 1, 2023
@ChrisDenton
Copy link
Member

Is this using a git installed via the msys2 package manager? I believe that has been patched to use msys2 style paths which the Rust build system does not support.

@Teapot4195
Copy link
Contributor Author

It is installed

@Teapot4195
Copy link
Contributor Author

well, i think that we should change the README so that we do not instruct people to install the git provided by msys2

as of right now it instructs users to run pacman -S git which is very misleading

@workingjubilee
Copy link
Member

Agreed. What would be the correct advisory regarding installing git, here?

@Teapot4195
Copy link
Contributor Author

The instructions should tell users to not install the msys version of git, instead users should install the regular version using chocolatey or otherwise and to add the path to msys.

@workingjubilee workingjubilee added O-windows-gnu Toolchain: GNU, Operating system: Windows A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools labels Mar 4, 2023
@mati865
Copy link
Contributor

mati865 commented Mar 4, 2023

Duplicate of #105696

@workingjubilee
Copy link
Member

Ah! Closing then.

@workingjubilee workingjubilee closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools O-windows-gnu Toolchain: GNU, Operating system: Windows
Projects
None yet
Development

No branches or pull requests

4 participants