<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 20 May 2023, 22:01 Pierre Muller via cfarm-users, <<a href="mailto:cfarm-users@lists.tetaneutral.net">cfarm-users@lists.tetaneutral.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Le 18/05/2023 à 19:55, mirabilos a écrit :<br>
> Pierre Muller via cfarm-users dixit:<br>
> <br>
>> LLVM ERROR: out of memory<br>
> <br>
>> Is the fact that it is not possible to build clang on openbsd a known problem?<br>
> <br>
> OpenBSD tends to have somewhat restrictive ulimits by default<br>
> to limit the amount of memory an “exploding” process can take.<br>
> <br>
> For at least -d but maybe also -m and/or -v do…<br>
> <br>
> ulimit -Sd $(ulimit -Hd)<br>
> <br>
> … to set the softlimit to the hardlimit (allowed usage for<br>
> your user).<br>
> <br>
> Building without debugging symbols is also a generic strategy with few RAM<br>
<br>
Thanks to all for the feedback,<br>
using the trick above allowed me to successfully build<br>
version 17.0 of clang and llvm-mc.<br>
<br>
Is there a way to put that in a location so anyone who wants to try it out can use<br>
it on that machine?<br>
<br>
know that /opt/cfarm was more or less supposed to be used for that,<br>
but on gcc220, it is completely empty...<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It should be world-writable so you can just create a clang-17.0 directory there.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div></div>