Facing issue with ninja

Skip to first unread message

Bhargav Shah

Apr 21, 2020, 6:20:00 AM4/21/20
to ninja-build
Hello all, 
We have recently migrated to Ninja based build systems. We are facing below error when we build (using ninja) for first time after git clone.

Error[Ms003]: could not open file "C:/git/test/test_object.o"  for writing.

If we clean and rebuild, it works without any errors.

Build system information: 
OS: Windows 10
Ninja version: 1.9.0
Compiler: gcc

Anyone else is facing similar kind of issue?

Also, we suspect that this issue is due to concurrency in building. 
Is there any way to tell ninja to serialize build process?

Thank you.


Jan Niklas Hasse

Apr 21, 2020, 6:46:48 AM4/21/20
to ninja-build
Is there any way to tell ninja to serialize build process?

ninja -j1

Nico Weber

Apr 21, 2020, 2:26:50 PM4/21/20
to Bhargav Shah, ninja-build
It sounds like the build rule that needs that .o file might not have a dependency on the build rule that creates it. What do you use to generate your ninja files?

`-j1` shouldn't be needed if your build configuration is correct.

You received this message because you are subscribed to the Google Groups "ninja-build" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ninja-build...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ninja-build/650f9c9c-b074-40d8-aca5-58b04003340b%40googlegroups.com.
Reply all
Reply to author
0 new messages