This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: *bsd & darwin support in libiberty/physmem.c


 > From: Andrew Pinski <pinskia at physics dot uc dot edu>
 > 
 > Except since this does not take into account the soft limits, I have a
 > bootstrap failure:
 > 
 > stage1/xgcc -Bstage1/
 > -B/home/gates/pinskia/openbsd/i686-unknown-openbsd3.1/bin/ -c -g -O2
 > -DIN_GCC -W -Wall -Wwrite-strings -Ws trict-prototypes
 > -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
 > -fno-common -Werror -DHAVE_CONFIG_H -I. -I. -I/hom
 > e/gates/pinskia/src/gnu/gcc/src/gcc
 > -I/home/gates/pinskia/src/gnu/gcc/src/gcc/.
 > -I/home/gates/pinskia/src/gnu/gcc/src/gcc/config -I/
 > home/gates/pinskia/src/gnu/gcc/src/gcc/../include
 > /home/gates/pinskia/src/gnu/gcc/src/gcc/expr.c -o expr.o
 > 
 > cc1: out of memory allocating 65536 bytes after a total of 66253256 
 > bytes
 > 
 > 
 > Because my memory usage limit is less than what gets reported:
 > memoryuse       478424 kbytes
 > 
 > You can use getrlimit with RLIMIT_RSS.

Ok rlimits was next on my list.

However something seems strange here.  Your Ram was ~512M.  This
should have yielded a value of 64M for ggc-min-heapsize.  Your
memoryuse is set to ~470M.  And yet your compilation died allocation
up over 64M.  Why is this?

Is there some other rlimit set lower than RSS?  Can you show me all of
the rlimits on your system please?  (Especially RLIMIT_DATA.)

Can you also please reissue the compile with -v and tell me what the
GC heuristics are?

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi at caip dot rutgers dot edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]