make -j2 aborts with "make[3]: *** read jobs pipe: Success. Stop."
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
make (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Porting a particular build of v8 from ubuntu 17.10 to ubuntu 18.04 circa beta 2,
its make failed at -j2, but succeeded at -j1.
The error message was odd:
...
make[3]: Entering directory '/home/
testing/
testing/
make[3]: Leaving directory '/home/
make[3]: *** read jobs pipe: Success. Stop.
make[3]: *** Waiting for unfinished jobs....
make[3]: Entering directory '/home/
/home/
make[3]: Leaving directory '/home/
make[3]: *** write jobserver: Bad file descriptor. Stop.
Makefile:318: recipe for target 'x64.release' failed
make[2]: *** [x64.release] Error 2
make[2]: INTERNAL: Exiting with 1 jobserver tokens available; should be 2!
Makefile:48: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/
dh_auto_build: make -j8 -O returned exit code 2
debian/rules:10: recipe for target 'build' failed
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1152:
dpkg-buildpackage -rfakeroot -us -uc -ui -b -j8 failed
...
This is on a machine with 32GB of RAM.
The problem reproduces quickly and reliably. Happy to try other versions of make and/or provide more data.