Skip to content

python x.py setup complains about missing ninja #84938

Closed
@lopopolo

Description

@lopopolo
Contributor

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.

Activity

added
A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to Rust
on May 5, 2021
jyn514

jyn514 commented on May 19, 2021

@jyn514
Member

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

kornelski

kornelski commented on Jun 1, 2021

@kornelski
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

kornelski commented on Jun 1, 2021

@kornelski
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

jyn514 commented on Jun 1, 2021

@jyn514
Member

@kornelski it goes in the llvm section

added a commit that references this issue on Jun 4, 2021

Rollup merge of rust-lang#85988 - jyn514:ninja-error, r=joshtriplett

062e789
added a commit that references this issue on Jun 6, 2021

Rollup merge of rust-lang#84940 - jyn514:ninja, r=Mark-Simulacrum

83664bd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @kornelski@lopopolo@jyn514

      Issue actions

        python x.py setup complains about missing ninja · Issue #84938 · rust-lang/rust