Out of memory while building GCC 12.1.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OS - Devuan Chimaera 4.0 stable release

Config:
configure  --target=$TARGET --prefix=$PREFIX  --without-headers \
	--enable-languages="c,c++,lto" --enable-lto --enable-interwork \
	--enable-long-long --enable-tls --enable-multilib --enable-wchar_t \
	--enable-c99 --with-newlib --with-dwarf2 --with-static-standard-libraries \
	--disable-hosted-libstdcxx --disable-libstdcxx-pch --disable-shared \
	--disable-option-checking --disable-threads --disable-nls \
	--disable-win32-registry --disable-libssp --disable-libquadmath

Build GCC 11.2.0 without problem.

I tried to build 12.1.0 several times. Result always same.

I build with "make -j6 -k 2> make-gcc.log". This help catch build errors. I sit and wait while memory usage grows over 4 Gb. Then terminate console flow with 'ctrl-c'. I see in make-gcc.log:

g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
/bin/bash: line 2: 17472 Killed build/genautomata ../../gcc-12.1.0/./gcc/common.md ../../gcc-12.1.0/./gcc/config/arm/arm.md insn-conditions.md > tmp-automata.cc
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** Deleting file 'doc/gccint.info'
make[2]: *** [Makefile:2492: s-attrtab] Interrupt
make[2]: *** [Makefile:1143: c/c-lang.o] Interrupt
make[2]: *** [Makefile:1143: c-family/stub-objc.o] Interrupt
make[2]: *** [Makefile:1143: attribs.o] Interrupt
make[2]: *** [Makefile:1143: c/c-errors.o] Interrupt
make[2]: *** [Makefile:1143: c/c-decl.o] Interrupt
make[2]: *** [Makefile:1143: c/c-typeck.o] Interrupt
make[2]: *** [Makefile:1143: c/c-convert.o] Interrupt
make[2]: *** [Makefile:1143: c/c-aux-info.o] Interrupt
make[2]: *** [Makefile:1143: c/c-objc-common.o] Interrupt
make[2]: *** [Makefile:1143: c/c-parser.o] Interrupt
make[2]: *** [Makefile:1143: c/c-fold.o] Interrupt
make[2]: *** [Makefile:1143: c/gimple-parser.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-common.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-cppbuiltin.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-dump.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-format.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-gimplify.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-indentation.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-lex.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-omp.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-opts.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-pch.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-ppoutput.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-pragma.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-pretty-print.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-semantics.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-ada-spec.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-ubsan.o] Interrupt
make[2]: *** [Makefile:1143: c-family/known-headers.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-attribs.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-warn.o] Interrupt
make[2]: *** [Makefile:1143: c-family/c-spellcheck.o] Interrupt
make[2]: *** [../../gcc-12.1.0/./gcc/config/arm/t-arm:168: arm-c.o] Interrupt
make[2]: *** [Makefile:2317: default-c.o] Interrupt
make[2]: *** [Makefile:1143: gimple-match.o] Interrupt
make[2]: *** [Makefile:1143: generic-match.o] Interrupt
make[2]: *** [Makefile:1143: insn-emit.o] Interrupt
make[2]: *** [Makefile:1143: insn-extract.o] Interrupt
make[2]: *** [Makefile:1143: insn-modes.o] Interrupt
make[2]: *** [Makefile:1143: insn-opinit.o] Interrupt
make[2]: *** [Makefile:1143: insn-output.o] Interrupt
make[2]: *** [Makefile:1143: insn-peep.o] Interrupt
make[2]: *** [Makefile:1143: insn-preds.o] Interrupt
make[2]: *** [Makefile:1143: insn-recog.o] Interrupt
make[2]: *** [Makefile:1143: ggc-page.o] Interrupt
make[2]: *** [Makefile:1143: adjust-alignment.o] Interrupt
make[2]: *** [Makefile:1143: alias.o] Interrupt
make[2]: *** [Makefile:1143: alloc-pool.o] Interrupt
make[2]: *** [Makefile:1143: auto-inc-dec.o] Interrupt
make[2]: *** [Makefile:1143: auto-profile.o] Interrupt
make[2]: *** [Makefile:1143: bb-reorder.o] Interrupt
make[2]: *** [Makefile:1143: bitmap.o] Interrupt
make[2]: *** [Makefile:1143: builtins.o] Interrupt
make[2]: *** [Makefile:1143: caller-save.o] Interrupt
make[2]: *** [Makefile:1143: calls.o] Interrupt
make[2]: *** [Makefile:1143: ccmp.o] Interrupt
make[2]: *** [Makefile:1143: cfg.o] Interrupt
make[2]: *** [Makefile:1143: cfganal.o] Interrupt
make[2]: *** [Makefile:1143: cfgbuild.o] Interrupt
make[2]: *** [Makefile:1143: cfgcleanup.o] Interrupt
make[2]: *** [Makefile:1143: cfgexpand.o] Interrupt
make[2]: *** [Makefile:1143: cfghooks.o] Interrupt
make[2]: *** [Makefile:1143: cfgloop.o] Interrupt
make[2]: *** [Makefile:1143: cfgloopanal.o] Interrupt
make[2]: *** [Makefile:1143: cfgloopmanip.o] Interrupt
make[2]: *** [Makefile:1143: cfgrtl.o] Interrupt
make[2]: *** [Makefile:1143: ctfc.o] Interrupt
make[2]: *** [Makefile:1143: ctfout.o] Interrupt
make[2]: *** [Makefile:1143: btfout.o] Interrupt
make[2]: *** [Makefile:1143: symtab.o] Interrupt
make[2]: *** [Makefile:1143: symtab-thunks.o] Interrupt
make[2]: *** [Makefile:1143: symtab-clones.o] Interrupt
make[2]: *** [Makefile:1143: cgraph.o] Interrupt
make[2]: *** [Makefile:1143: cgraphbuild.o] Interrupt
make[2]: *** [Makefile:1143: cgraphunit.o] Interrupt
make[2]: *** [Makefile:1143: cgraphclones.o] Interrupt
make[2]: *** [Makefile:1143: combine.o] Interrupt
make[2]: *** [Makefile:1143: combine-stack-adj.o] Interrupt
make[2]: *** [Makefile:1143: compare-elim.o] Interrupt
make[2]: *** [Makefile:1143: context.o] Interrupt
make[2]: *** [Makefile:1143: convert.o] Interrupt
make[2]: *** [Makefile:1143: coroutine-passes.o] Interrupt
make[2]: *** [Makefile:1143: coverage.o] Interrupt
make[2]: *** [Makefile:1143: cppbuiltin.o] Interrupt
make[2]: *** [Makefile:1143: cppdefault.o] Interrupt
make[2]: *** [Makefile:1143: cprop.o] Interrupt
make[2]: *** [Makefile:1143: cse.o] Interrupt
make[2]: *** [Makefile:1143: cselib.o] Interrupt
make[2]: *** [Makefile:1143: data-streamer.o] Interrupt
make[2]: *** [Makefile:1143: data-streamer-in.o] Interrupt
make[2]: *** [Makefile:1143: data-streamer-out.o] Interrupt
make[2]: *** [Makefile:1143: dbxout.o] Interrupt
make[2]: *** [Makefile:1143: dbgcnt.o] Interrupt
make[2]: *** [Makefile:1143: dce.o] Interrupt
make[2]: *** [Makefile:1143: ddg.o] Interrupt
make[2]: *** [Makefile:1143: debug.o] Interrupt
make[2]: *** [Makefile:1143: df-core.o] Interrupt
make[2]: *** [Makefile:1143: df-problems.o] Interrupt
make[2]: *** [Makefile:1143: df-scan.o] Interrupt
make[2]: *** [Makefile:1143: dfp.o] Interrupt
make[2]: *** [Makefile:1143: digraph.o] Interrupt
make[2]: *** [Makefile:1143: dojump.o] Interrupt
make[2]: *** [Makefile:1143: dominance.o] Interrupt
make[2]: *** [Makefile:1143: domwalk.o] Interrupt
make[2]: *** [Makefile:1143: double-int.o] Interrupt
make[2]: *** [Makefile:1143: dse.o] Interrupt
make[2]: *** [Makefile:1143: dumpfile.o] Interrupt
make[2]: *** [Makefile:1143: dwarf2asm.o] Interrupt
make[2]: *** [Makefile:1143: dwarf2cfi.o] Interrupt
make[2]: *** [Makefile:1143: dwarf2ctf.o] Interrupt
make[2]: *** [Makefile:1143: dwarf2out.o] Interrupt
make[2]: *** [Makefile:1143: early-remat.o] Interrupt
make[2]: *** [Makefile:1143: emit-rtl.o] Interrupt
make[2]: *** [Makefile:1143: et-forest.o] Interrupt
make[2]: *** [Makefile:1143: except.o] Interrupt
make[2]: *** [Makefile:1143: explow.o] Interrupt
make[2]: *** [Makefile:1143: expmed.o] Interrupt
make[2]: *** [Makefile:1143: expr.o] Interrupt
make[2]: *** [Makefile:1143: fibonacci_heap.o] Interrupt
make[2]: *** [Makefile:1143: file-prefix-map.o] Interrupt
make[2]: *** [Makefile:1143: final.o] Interrupt
make[2]: *** [Makefile:1143: fixed-value.o] Interrupt
make[2]: *** [Makefile:1143: fold-const.o] Interrupt
make[2]: *** [Makefile:1143: fold-const-call.o] Interrupt
make[2]: *** [Makefile:1143: function.o] Interrupt
make[2]: *** [Makefile:1143: function-abi.o] Interrupt
make[2]: *** [Makefile:1143: function-tests.o] Interrupt
make[2]: *** [Makefile:1143: fwprop.o] Interrupt
make[2]: *** [Makefile:1143: gcc-rich-location.o] Interrupt
make[2]: *** [Makefile:1143: gcse.o] Interrupt
make[2]: *** [Makefile:1143: gcse-common.o] Interrupt
make[2]: *** [Makefile:1143: ggc-common.o] Interrupt
make[2]: *** [Makefile:1143: ggc-tests.o] Interrupt
make[2]: *** [Makefile:1143: gimple.o] Interrupt
make[2]: *** [Makefile:1143: gimple-array-bounds.o] Interrupt
make[2]: *** [Makefile:1143: gimple-builder.o] Interrupt
make[2]: *** [Makefile:1143: gimple-expr.o] Interrupt
make[2]: *** [Makefile:1143: gimple-if-to-switch.o] Interrupt
make[2]: *** [Makefile:1143: gimple-iterator.o] Interrupt
make[2]: *** [Makefile:1143: gimple-fold.o] Interrupt
make[2]: *** [Makefile:1143: gimple-harden-conditionals.o] Interrupt
make[2]: *** [Makefile:1143: gimple-laddress.o] Interrupt
make[2]: *** [Makefile:1143: gimple-loop-interchange.o] Interrupt
make[2]: *** [Makefile:1143: gimple-loop-jam.o] Interrupt
make[2]: *** [Makefile:1143: gimple-loop-versioning.o] Interrupt
make[2]: *** [Makefile:1143: gimple-low.o] Interrupt
make[2]: *** [Makefile:1143: gimple-predicate-analysis.o] Interrupt
make[2]: *** [Makefile:1143: gimple-pretty-print.o] Interrupt
make[2]: *** [Makefile:1143: gimple-range.o] Interrupt
make[2]: *** [Makefile:1143: gimple-range-cache.o] Interrupt
make[2]: *** [Makefile:1143: gimple-range-edge.o] Interrupt
make[2]: *** [Makefile:1143: gimple-range-fold.o] Interrupt
make[2]: *** [Makefile:1143: gimple-range-gori.o] Interrupt
make[2]: *** [Makefile:1143: gimple-range-trace.o] Interrupt
make[2]: *** [Makefile:1143: gimple-ssa-backprop.o] Interrupt
make[2]: *** [Makefile:1143: gimple-ssa-evrp.o] Interrupt
make[2]: *** [Makefile:1143: gimple-ssa-evrp-analyze.o] Interrupt
make[2]: *** [Makefile:1143: gimple-ssa-isolate-paths.o] Interrupt
make[2]: *** [Makefile:1143: gimple-ssa-nonnull-compare.o] Interrupt
make[2]: *** [Makefile:1143: gimple-ssa-split-paths.o] Interrupt
make[2]: *** [Makefile:1143: gimple-ssa-store-merging.o] Interrupt
make[2]: *** [Makefile:1143: gimple-ssa-strength-reduction.o] Interrupt
make[2]: *** [Makefile:1143: gimple-ssa-sprintf.o] Interrupt
make[2]: *** [Makefile:1143: gimple-ssa-warn-access.o] Interrupt
make[2]: *** [Makefile:1143: gimple-ssa-warn-restrict.o] Interrupt
make[2]: *** [Makefile:1143: gimple-ssa-warn-alloca.o] Interrupt
make[2]: *** [Makefile:2475: s-automata] Interrupt
make[2]: *** [Makefile:3406: doc/gccint.info] Interrupt
make[2]: *** Deleting intermediate file 'gcc.pod'
make[1]: *** [Makefile:4620: all-gcc] Interrupt
make: *** [Makefile:1035: all] Interrupt

Looks like fork-bomb.

I have 8Gb ram. Adding 10Gb swap doesn't help.

Here mine shell script used for easy gcc build - https://github.com/fedor4ever/GCC4Symbian.
--
Fiodar Stryzhniou



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux