I'm trying to build my software on an ARMv7 board with Arch Linux. Also I build for my software a PGO build. The first build compiles without errors, but the second build crashs than I'm using my profile optimized directory for the build. I got this error message here
cc1: out of memory allocating 66574076 bytes after a total of 148316160 bytes
Currently I have 2GB RAM. I've tried to set my swapfile as big as I can (20G) and also my ulimit is unlimit
$ ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 14879
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 14879
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
But it still not compile and I don't know what I can do additionally here to compile my program.