<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/80999>80999</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
test-release.sh ninja install does builds in Phase 3
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
tstellar
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rorth
</td>
</tr>
</table>
<pre>
When running `test-release.sh` on Linux/sparc64 (although this happens everywhere), I noticed that in Phase3, `ninja install` actually does builds. This is unexpected, and made way worse because it passes on neither `-j<N>` options nor `-v`, so you cannot see what actually happens.
Missing the `-j<N>` even badly broke the Linux/sparc64 build which is on a somewhat resource-constrained system. For that reason, the build is run with `-j12` while the system has 24 cores. When it comes to Phase3, however, a large part of the build (`flang` in particular) is run with the full parallelism, which totally overwhelms the memory resources of the system and ultimately causes the build to fail.
`flang` has always been sort of nightmare on every system because the source files are quite big and compilation way more memory intensive than every other part of LLVM.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkVMuO47YS_Rp6U7Chh19aaDF35hoI0BNkESTrElUW2aFIhVWyRn8fkLY77snGXpA8rzoqZLaDJ2rV4X-qqoSFnMOoqkodvm1wFhNiG0MUs-lCv7Z_GvIQZ--tH0AdCyGWbSRHyLRjo44FBA9v1s8_VHXhCaM-7kFVZ3RiwjwYEGMZDE4TeQa6UVwXQ5FU1ajqK_wCPojV1IMYFLAefjPIVKczdSy89e8I1rOgc4kMtczo3Ap9IIZutq7nHcDvicQyzJ5-TKSF-gSAvocRe4IFV1hCZIKONM5MYAUmZCZO8j1ZMRQT4fZd1V9_VfX_s7NJbPAMPtzPbupYJFwOsIYZNHofBJgIliT-Q9vD7U4V31Tx5f773TKnDMXQf3joRh467N0KXQx_Ub70c6bZKyzGapOcBg8IHEbK1JE4zFHTVgfPEtF66oFXFhp3AJcQ7_FGQg4-WUgMd0TLab6wWDF3YWWVNC3GuruQOwwYZKj2oEMk3kHuhRXQYSQGCS9jM2FJY84DAIdxIJgwCoTrC6uqzupYXB36IbFZn-9YPecyNp9UpVfX2bl0BZ0jZ3lM6PcsJEgOPdwoLobcyPnBSGOI60cw_KR_uEnVmJ3YEYXcCrkU_KJPAlzRuk8jfBWc0kC34MrQEXngcHfo7WBkxEhpQLntT8Zn87KIrAmu1hFDuvz3bIWgs0MWpsM4WYepfLm6Y4gfhqwX8mxvCQifFCHX95ny29sf33ebvq37pm5wQ215Kk51eT7Xx41pUfdNfcXDtS87fSpPh7Nuyp4O5Zn0vjx1G9tWRbUvquJUHsr6cNgVnT5fj0e8nprTGZta7QsaUzjO3cZdiMPGMs_UnoumaTYOO3L82C-eFsiHjwUT2_Rm280Dq33hLAv_iyJWHLU_bRj4tAJeP_uPZQH1Zo6uNSITq_qLqi6qugxWzNztdBhVdUkUj7_tFMM7aVHVJQtjVV2y8H8CAAD__zhwvC4">