Compiling in low-memory conditions

Gilles Espinasse g.esp at free.fr
Mon Apr 4 07:34:44 CEST 2011


----- Original Message ----- 
From: "Tom Ritter" <tom at ritter.vg>
To: <gcrypt-devel at gnupg.org>; <gnupg-devel at gnupg.org>
Sent: Monday, April 04, 2011 12:51 AM
Subject: Compiling in low-memory conditions


> I was compiling libgcrypt and gnupg on a low-memory VPS, and ran into
> a few problems. First, I compiled libgcrypt, and ran into a gcc crash,
> when it ran out of memory trying to compile twofish.o.  It looked like
> this:
>
> gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/usr/local/include -g
> -O2 --param ggc-min-expand=0 --param ggc-min-heapsize=32768
> -fvisibility=hidden -Wall -MT twofish.lo -MD -MP -MF .deps/twofish.Tpo
> -c twofish.c  -fPIC -DPIC -o .libs/twofish.o
>
> cc1: out of memory allocating 3082800 bytes after a total of 4681728 bytes
> make[2]: *** [twofish.lo] Error 1
>
Not enabling debugging with '-g' should spare memory for the compilation.

Gilles




More information about the Gnupg-devel mailing list