Problems Building 7.0-Beta3 with -Os

From: Jan Lentfer <Jan.Lentfer_at_web.de>
Date: Wed, 05 Dec 2007 15:50:59 +0100
Dear List,

I am having problems compiling 7.0-Beta3 on my VIA C7 system with 1 GIG 
of RAM.
The problem seems to be the memory consumption so I turned off all 
larger processes. This is what happens:

===> gnu/usr.bin/cc/libdecnumber (all)
===> gnu/usr.bin/cc/cc_int (all)
cc -Os -pipe -DIN_GCC -DHAVE_CONFIG_H 
-DPREFIX=\"/usr/obj/usr/RELENG_7/src/tmp/usr\" 
-I/usr/obj/usr/RELENG_7/src/tmp/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../cc_tools 
-I/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../cc_tools 
-I/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc 
-I/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config 
-I/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/include 
-I/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libcpp/include 
-I/usr/RELENG_7/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libdecnumber  
-I/usr/obj/usr/RELENG_7/src/tmp/legacy/usr/include -c 
../cc_tools/insn-attrtab.c

cc1: out of memory allocating 136475392 bytes
*** Error code 1

Stop in /usr/RELENG_7/src/gnu/usr.bin/cc/cc_int.
*** Error code 1

Stop in /usr/RELENG_7/src/gnu/usr.bin/cc.
*** Error code 1

Stop in /usr/RELENG_7/src.
*** Error code 1

Stop in /usr/RELENG_7/src.
*** Error code 1

Stop in /usr/RELENG_7/src.



Compliation works while only using "-O" optimization level. -O2 and -Os 
both break with this. It used to work in 6.2, though.

This is the output of vmstat 1:

 procs      memory      page                    disks     faults      cpu
 r b w     avm    fre  flt  re  pi  po  fr  sr ad0 da0   in   sy  cs us 
sy id
 2 1 0  221236 567308  538   0   0   0   0   0   0   0 1271  175 292 95  
5  0
 1 1 0  221236 567292    4   0   0   0   4   0   8   0 1301  153 359 98  
2  0
 1 1 0  221236 567276    4   0   0   0   0   0   0   0 1310  135 369 98  
2  0
 1 1 0  221132 567404    0   0   0   0  32   0   0   0 1283  153 313 98  
2  0
 1 1 0  221132 567404    0   0   0   0   0   0   5   0 1290  135 320 95  
5  0
 1 1 0  221132 567404    0   0   0   0   8   0  53   0 1355  135 514 98  
2  0
 1 1 0  221132 567404    0   0   0   0   0   0   0   0 1303  142 356 98  
2  0
 2 1 0  221132 567404    0   0   0   0   0   0   0   0 1291  135 325 98  
2  0
 1 1 0  221708 566972  108   0   0   0   0   0   0   0 1307  142 359 98  
2  0
 1 1 0  221964 566716   64   0   0   0   0   0   0   0 1288  143 326 98  
2  0
 1 1 0  222476 566204  128   0   0   0   0   0   1   0 1278  136 305 98  
2  0
 1 1 0  252300 536584 7456   0   0   0  58   0   0   0 1314  141 378 88 
12  0
 1 1 0  222804 566108    0   0   0   0 7381   0   0   0 1286  136 302 
97  3  0
 1 1 0  489972 350200 54007   0   0   0  95   0   0   0 1288  155 320 37 
63  0
 1 1 0  623384 174992 43861   0   0   0  92   0   0   0 1299  138 347 43 
57  0
 >>>> Compilation break
 0 0 0   70200 711396 2515   0   0   0 136608   0   9   0 1257  453 281  
9 91  0
 0 0 0   70200 711396    0   0   0   0   3   0   3   0 1296  135 341  0 
32 68
 0 0 0   70200 711396    0   0   0   0   0   0   0   0 1324  135 397  0  
2 98
 0 0 0   70200 711396    0   0   0   0   0   0   0   0 1299  142 348  0  
2 98
 0 0 0   70200 711396    0   0   0   0   0   0   0   0 1300  135 349  0  
2 98
 0 0 0   70200 711396    0   0   0   0   0   0   0   0 1310  135 367  0  
2 98
 0 0 0   70200 711396    0   0   0   0   0   0   0   0 1295  142 339  0  
2 98


Since I am not subscribed could you please also answer via private mail, 
thanks a lot in advance.


Jan Lentfer
Received on Wed Dec 05 2007 - 13:51:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:23 UTC