"make: write error: stdout" on parallel builds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-signed (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
- Release of Ubuntu: 18.04.1 LTS (Kubuntu).
- Package version: linux-image-
- Expected outcome: Large parallel make build completing properly.
- What happened instead: Build stops with "make: write error: stdout".
Full explanation:
Since the update to kernel 4.15.0-44 (linux-
I don't think it's relevant, but I'm running those builds in an schroot with the same Ubuntu Bionic distro I'm also using as main host distro.
The specific error I get is this (in Spanish):
make[4]: error al escribir: stdout
I call Buildroot's make like this from KDE Konsole with "infinite history buffer" enabled (uses a tmp file to store the logs):
V=1 make ...some stuff... 2>&1
However, the error is reproducible in Konsole even if I call make without options and also if I use "limited (in-memory) history buffer" as well as "no history buffer". Buildroot autoselects a parallelization level (-j) automatically. In my case, I'm using a Xeon E-2176 CPU with 12 threads.
Searching on the Internet I found a thread[1] where people from the GNU Make project say that the error may be coming from the C runtime library (and I suspect originating from the kernel).
I can NOT reproduce the issue on linux-image-
Interestingly enough, I can NOT reproduce the issue on linux-image-
If I build redirecting stdout and stderr to different files to avoid terminal output and then watching the stdout file with tail -f, the tail command eventually finishes although the build continues and I can keep watching it by running tail again. An infinite build loop never finishes with this redirection (error not reproducible). Same results with the 2>&1 redirection to a single file.
All this looks a bit like a poltergeist, but the only thing I'm sure about is that it all started with the upgrade from 4.15.0-43 to -44 and it continues on -45.
Thank you.
[1] http://
Changed in linux-signed (Ubuntu): | |
status: | Confirmed → Fix Released |
I am seeing the same problem on a fully updated Ubuntu system running Linux 4.15.0-45.