This is the mail archive of the gcc-bugs@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]

[Bug bootstrap/30229] New: Out of memory error during make of gcc 4.1.1


Here's the last part of the build output:

Automaton `athlon_mult'
       16 NDFA states,             48 NDFA arcs
       16 DFA states,              48 DFA arcs
       16 minimal DFA states,      48 minimal DFA arcs
      273 all insns          4 insn equivalence classes
   50 transition comb vector els,    64 trans table els: use simple vect
   50 state alts comb vector els,    64 state alts table els: use simple vect
   64 min delay table els, compression factor 2

Automaton `athlon_fp'
    15522 NDFA states,          99908 NDFA arcs
    15522 DFA states,           99908 DFA arcs
      463 minimal DFA states,    3038 minimal DFA arcs
      273 all insns         21 insn equivalence classes
 3057 transition comb vector els,  9723 trans table els: use comb vect
 3057 state alts comb vector els,  9723 state alts table els: use comb vect
 9723 min delay table els, compression factor 1

17533 all allocated states,     102661 all allocated arcs
32710 all allocated alternative states
 6256 all transition comb vector els, 16780 all trans table els
 6256 all state alts comb vector els, 16780 all state alts table els
16780 all min delay table els
    0 locked states num

  transformation: 0.050000, building DFA: 14.190000
  DFA minimization: 0.590000, making insn equivalence: 0.020000
 all automaton generation: 15.060000, output: 0.120000
/bin/sh ../../gcc-4.1.1/gcc/../move-if-change tmp-attrtab.c insn-attrtab.c
echo timestamp > s-attrtab
gcc   -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC   -W -Wall
-Wwrite-
strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute   
-
DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/.
-I../../gcc
-4.1.1/gcc/../include -I../../gcc-4.1.1/gcc/../libcpp/include     -c
insn-attrta
b.c \
  -o insn-attrtab.o

cc1: out of memory allocating 74639040 bytes after a total of 23290048 bytes
make[2]: *** [insn-attrtab.o] Error 1
make[2]: Leaving directory `/me/out/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/me/out/gcc'
make: *** [bootstrap-lean] Error 2
builderacademy:~/out# ulimit -a
core file size        (blocks, -c) 0
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) unlimited
max memory size       (kbytes, -m) unlimited
open files                    (-n) 1024
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) 8192
cpu time             (seconds, -t) unlimited
max user processes            (-u) unlimited
virtual memory        (kbytes, -v) unlimited

As you can see, there's no limit issues. The question is: why does cc1 try to
allocate another 70MB ? I can see no easy way around this.

I'm trying to compile on a machine with about 12GB of virtual memory, so
I'm unsure why gcc crashes on me.

Here's some more info about my system:
The old version of gcc I'm trying to upgrade:
builderacademy:~# gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,ob
jc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--enable-__cxa_atexi
t --with-system-zlib --enable-nls --without-included-gettext
--enable-clocale=gn
u --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)

My version of glibc:
builderacademy:~# dpkg -l libc6
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  libc6          2.3.2.ds1-22sa GNU C Library: Shared libraries and Timezone


-- 
           Summary: Out of memory error during make of gcc 4.1.1
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: thomas dot arp at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30229


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