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

Assertion failed #1971

Closed
x1314aq opened this issue May 17, 2021 · 6 comments
Closed

Assertion failed #1971

x1314aq opened this issue May 17, 2021 · 6 comments
Milestone

Comments

@x1314aq
Copy link

x1314aq commented May 17, 2021

I have an error using latest ninja on Windows. It failed with following:

CMake Error:
  Running

   '/usr/local/bin/ninja.exe' '-C' '/cygdrive/c/Users/qwe/code/dsa/build' '-t' 'recompact'

  failed with:

   assertion "deps_data[i] < (int)nodes_.size()" failed: file "/cygdrive/c/Users/qwe/code/ninja-1.10.2/src/deps_log.cc", line 217, function: LoadStatus DepsLog::Load(const string&, State*, std::string*)

  Subprocess aborted

There are various files maybe you are interested in.

ninja.zip

@x1314aq
Copy link
Author

x1314aq commented May 29, 2021

any updates?

1 similar comment
@ZEPORATH
Copy link

any updates?

@jonesmz

This comment was marked as abuse.

@jonesmz

This comment was marked as abuse.

@rbrugo
Copy link

rbrugo commented Oct 14, 2024

I'm having the same issue with ninja 1.12.1:

ninja: /usr/src/debug/ninja/ninja-1.12.1/src/deps_log.cc:217: LoadStatus DepsLog::Load(const std::string&, State*, std::string*): Assertion `deps_data[i] < (int)nodes_.size()' failed.
Subprocess aborted

And the only way to make the compilation work is to re-compile everything.
Is there any other known workaround?

@digit-google
Copy link
Contributor

digit-google commented Oct 14, 2024

This was fixed recently by #2489

@jhasse jhasse added this to the 1.12.2 milestone Nov 8, 2024
@jhasse jhasse closed this as completed Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants