<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63234>63234</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
The warning information generated during multi-thread compilation is out of order.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
zwjacob
</td>
</tr>
</table>
<pre>
I encountered the problem of printing disorder when compiling multi-threads. I would like to ask you if there is a way to solve it.
I wrote a test case myself, and this is a screenshot of disorderly lines:

It's normal in single-thread mode:

I searched the source code of llvm and located the cause. I found that a warning message was printed by three functions. Theoretically, the error message also occurred:

If I want to compile with multiple threads, how do I ensure that the warning output is in order?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8lMGO4ygQhp-GXEqOMMaJffBhenoj9X1eoIByzAyBiMITZZ9-hZPe7W1pD3vpC5YMKv76-f5CZn-ORJPoX0T_usO1LClPf95-ok1mZ5K7T29A0aY1FsrkoCwE15xMoAukGa7Zx-LjGZznlB1luC0UwabL1Yf6_7KG4puyZELHe3iDW1qDg-B_EZQEyL_gnlbwc62cCTwDwg3vdZNT-E3gy17IVyG_PdY3uOVUCBAKcQGLTHC5M4VZqO-AsUr0_KjDNhNFXlKpWt8lhjsEH4nFHyfx8l2Mz8JCtaJ_8Rc8k-hfhRqWUq4sum9CnYQ6nX1ZVrO36SLUKYTf75_mmtNPskWoEzJTYaFOulNKH48HoU7WdD0abBtS2jS6dX1jiHQzuNGMdMAWnRZq_FeHRagjQ0z5ggF8BPbxHOhpIlySoy-R3uu-H7RxTatc1-iZ2mZ0rmtItgdpNOKg8LN0YMJslyconNZsCWxyVB-g3rm9UEgWy_OMxZWpgjGndXs8LBsBOW74EDOeCW7ID9bIgblDtYJgXqMtPkXew4-FUqbiLYZwryDU0pRzyn-XwMAJkrVrzuS-xEBtTDceu75RRo-NlgM1g9NjM8yjPsq5lQOqzwbONSIYS-X_kSKCmy_LI0jXQPDMUm1ySTdwCWpCec30MK92_m5fWst1LTUMPsIGv-hOH-_7r3Xnps6N3Yg7mtrDcOiG41HJ3TLNw2Ba2TvdmrZzSGgPvTSkx8G5eTBq5yclVScPrZSjVFLuWyNHiTO5dtTY2qPQki7ow746uE_5vPPMK02HTnV6F9BQ4G0eKRXpBtumUKqOpzxtrpv1zELL4LnwP1WKL4GmHx-693GuGaqIwJki5Q06t-bPg-np9OOk52pb5XUzbL9bc5j-Nw-b7MrD1tZfAQAA___xALsY">