Skip to content

ninja is always recompiling everything #2703

@bitbugprime

Description

@bitbugprime

ninja version: 1.13.2
cmake version: 4.2.1

I'm not sure if it's related but I always get a "premature end of file; recovering" error from ninja when it runs. Annoyingly, ninja doesn't report the name of the offending file. CMake v4 bug?

In any case, if ninja runs the build to completion rerunning it recompiles everything it just built. I don't know how to debug this or what you need from me to reproduce it yourself.

Ninja 1.12.1 still gives the "premature end of file" warning, but doesn't exhibit the "always rebuild everything" behavior. Also, interestingly, it reports a different number for the total job size than 1.13.2 does. 1.13.2 thought there were about 1900 items left to build, which number doesn't change on a repeat build, while 1.12.1 reports about 3600 (and does properly decrease on a partial build).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions