Skip to content
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

python x.py setup complains about missing ninja #84938

Closed
lopopolo opened this issue May 5, 2021 · 4 comments · Fixed by #84940
Closed

python x.py setup complains about missing ninja #84938

lopopolo opened this issue May 5, 2021 · 4 comments · Fixed by #84940
Labels
A-contributor-roadblock Area: Makes things more difficult for new or seasoned contributors to Rust C-bug Category: This is a bug.

Comments

@lopopolo
Copy link
Contributor

lopopolo commented May 5, 2021

Hi, I'm setting up a checkout of the Rust repository on a Windows machine. I would like to run x.py setup to generate a config.toml file with the library profile. x.py aborts due to ninja not being installed, even though this does not appear to be necessary for the library profile because x.py fetches pre-built copies of LLVM.

To work around this I had to copy the example config and manually modify the ninja setting to false. Running x.py setup again returns an error since the config file already exists, although it does suggest setting a top-level profile key.

This is a speedbump on the road to contributing.

@lopopolo lopopolo added the C-bug Category: This is a bug. label May 5, 2021
@jyn514 jyn514 added the A-contributor-roadblock Area: Makes things more difficult for new or seasoned contributors to Rust label May 5, 2021
@jyn514
Copy link
Member

jyn514 commented May 19, 2021

Note: to reproduce this, run x setup library (the error only occurs after the prompt for which profile).

@kornelski
Copy link
Contributor

I've ran into this too. It'd be nice if setup could put ninja=false in config.toml automatically. Otherwise it's a funny situation where it requires config.toml in order to create the config.toml.

@kornelski
Copy link
Contributor

The error message doesn't say in which section to put ninja=false in! Just ninja=false alone in the file causes a TOML parse error. I've tried putting it in a [build] section, but it didn't like it either.

@jyn514
Copy link
Member

jyn514 commented Jun 1, 2021

@kornelski it goes in the llvm section

JohnTitor added a commit to JohnTitor/rust that referenced this issue Jun 4, 2021
Note that `ninja = false` goes under `[llvm]`

Addresses rust-lang#84938 (comment) - `@kornelski` does this look good?

r? `@Mark-Simulacrum` cc `@joshtriplett`
@bors bors closed this as completed in 83664bd Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-contributor-roadblock Area: Makes things more difficult for new or seasoned contributors to Rust C-bug Category: This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants