mesonbuild/meson

State corruption with multiple tasks running on same directory

Open

#2,922 opened on Jan 14, 2018

 (2 comments) (0 reactions) (0 assignees)Python (1,465 forks)batch import
buggood first issuehelp wanted

Repository metrics

Stars
 (4,978 stars)
PR merge metrics
 (Avg merge 139d 13h) (51 merged PRs in 30d)

Description

I ran ninja -C build after changing some options. At the middle, or towards the end, I hit ^Z to check on something. After checking, I totally forgot that the job was already running, and started it again. Realizing I had done that, I killed the new job, and resumed the old one. I got:

$ nice ninja -j4 -C armv7-build 
ninja: Entering directory `armv7-build'
[0/1] Regenerating build files.
Error during basic setup:

Something went terribly wrong. Please file a bug.
FAILED: build.ninja 
/usr/bin/python3.6 /home/ilia/src/meson/meson.py --internal regenerate /home/ilia/src/mesa-meson /home/ilia/src/mesa-meson/armv7-build --backend ninja
ninja: error: rebuilding 'build.ninja': subcommand failed

Do I now have to wipe the whole build directory and all the things that were already built in it?

Contributor guide