Bug 7838 - Output from parallel make is difficult to read
Summary: Output from parallel make is difficult to read
Status: RESOLVED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.19.0
Assignee: Pierre Ossman
URL:
Keywords: prosaic
Depends on:
Blocks: 2783
  Show dependency treegraph
 
Reported: 2022-02-17 11:05 CET by Pierre Ossman
Modified: 2025-04-16 16:03 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2022-02-17 11:05:20 CET
When running make with multiple jobs (-j#), we get a massive speedup as we can use more CPU cores. The cost is unfortunately that the output will become jumbled as commands are intermixed. This makes it difficult to follow what happens when we need to debug something.

Fortunately newer make has support for buffering data and outputting it in a more readable order (likely to compete with ninja). It is documented here:

https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html

It is unclear what version added this. Our 3.82 doesn't have it, but Fedora's 4.3 does.
Comment 1 Pierre Ossman cendio 2025-04-15 16:03:39 CEST
This has been added to cenbuild:

https://git.cendio.se/thinlinc/cenbuild/-/commit/2f9355c4b3393014d6517d32515ce67e3f447f79

What's left is to add it to the ThinLinc builds.
Comment 4 Pierre Ossman cendio 2025-04-16 16:03:33 CEST
All done. Everything now has that extra flag.

Note You need to log in before you can comment on or make changes to this bug.