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

2023-05-21 Thread Jonathan Wakely via cfarm-users
On Sat, 20 May 2023, 22:01 Pierre Muller via cfarm-users, < cfarm-users@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

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

2023-05-20 Thread Pierre Muller via cfarm-users
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 “explodi

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

2023-05-19 Thread Peter Gutmann via cfarm-users
Pierre Muller via cfarm-users writes: >LLVM ERROR: out of memory Building LLVM from source consumes ridiculous amounts of memory, particularly if you build across multiple CPUs. If you're doing a parallel build you may want to limit it to 1/2 to 2/3 of the total number of cores/CPUs/whatever.

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

2023-05-18 Thread Pierre Muller via cfarm-users
Thanks for the tip, there was indeed a factor three between soft and hard limit for -d (data size) bash-5.2 ~$ ulimit -d -S 1048576 bash-5.2 ~$ ulimit -d -H 33554432 Using your suggestion allowed me to set the soft limit to the hard limit and this allowed at least to go past that first specific

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

2023-05-18 Thread mirabilos via cfarm-users
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 mayb

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

2023-05-18 Thread Pierre Muller via cfarm-users
I tried ti compile a custom clang on gcc220 test machine. For that I used a shallow copy of the git repository https://github.com/llvm/llvm-project.git Followed by cd llvm-project mkdir build cd build ../configure and gmake which failed with this error: [ 44%] Building AMDGPUGenAsmMat