[cfarm-users] Unable to build clang on gcc220 x86_64-openbsd test machine

Jonathan Wakely jwakely.gcc at gmail.com
Sun May 21 09:08:49 CEST 2023


On Sat, 20 May 2023, 22:01 Pierre Muller via cfarm-users, <
cfarm-users at lists.tetaneutral.net> wrote:

>
>
> Le 18/05/2023 à 19:55, mirabilos a écrit :
> > Pierre Muller via cfarm-users dixit:
> >
> >> LLVM ERROR: out of memory
> >
> >> Is the fact that it is not possible to build clang on openbsd a known
> problem?
> >
> > OpenBSD tends to have somewhat restrictive ulimits by default
> > to limit the amount of memory an “exploding” process can take.
> >
> > For at least -d but maybe also -m and/or -v do…
> >
> > ulimit -Sd $(ulimit -Hd)
> >
> > … to set the softlimit to the hardlimit (allowed usage for
> > your user).
> >
> > Building without debugging symbols is also a generic strategy with few
> RAM
>
>    Thanks to all for the feedback,
> using the trick above allowed me to successfully build
> version 17.0 of clang and llvm-mc.
>
>    Is there a way to put that in a location so anyone who wants to try it
> out can use
> it on that machine?
>
>     know that /opt/cfarm was more or less supposed to be used for that,
> but on gcc220, it is completely empty...
>

It should be world-writable so you can just create a clang-17.0 directory
there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tetaneutral.net/pipermail/cfarm-users/attachments/20230521/bc51fcab/attachment.htm>


More information about the cfarm-users mailing list