I have a machine running Xubuntu 64 bit and I'm trying to compile my pretty long C code. I am using gcc
.
I chrooted in a raspbian stretch environment because the executable code must run on my Raspberry PI 3 model B+. To chroot I followed these instructions:
sudo mount /dev/sdb2 /mntsudo apt-get install qemu qemu-user qemu-user-staticsudo cp /usr/bin/qemu-arm-static /mnt/usr/bin/ sudo chroot /mnt
After get inside the raspbian environment I executed:
gcc -Os $(python3-config --cflags --ldflags) Code.c -o ExecutableCode
and got this output:
cc1: out of memory allocating 32324 bytes after a total of 543821824 bytes
The computational capabilities of my computer are pretty high (my PC is a workstation), therefore I do not believe that memory runs out. Does someone have ideas?