From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp45.i.mail.ru (smtp45.i.mail.ru [94.100.177.105]) by sourceware.org (Postfix) with ESMTPS id 1D614383D830 for ; Fri, 10 Jun 2022 11:55:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1D614383D830 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=mail.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mail.ru DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail4; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:To:Subject:From:From:Subject:Content-Type:Content-Transfer-Encoding:To:Cc; bh=MIKJtq6T6FsqZZMFcgqmXWUCoTi0xuM/cSoLB1o5KkQ=; t=1654862152;x=1655467552; b=GD34gyf1KS5pD8Jsr347t/qYdVKs0fF9xkArlQKTFyHJxB327UoN4BfSil+io1tha8In8ZsO/pesVfCWkTQ+U0eO7bW2AWIGbPBSDUu80++Hd+gkzskqnj1KZTg5qbnpCMQMUTC5P658WE2Y/b5fF0aVMwaOzBu0kg+SRb+77Ei7Qj+tEiPobiYPjR7Whh5FLtSFmIiTOhTeUpVo93y8xZ3mxDyzhza4DYEh/OsEHEg+osxv50r83HUO+WepbdFIp2i2rJ69aG+poYLilMnIymHilrZmwue6EEMUzrVleXObWyNDDH3vb9qR58OyPRv0flyGZd/Crvyy2EDoJxakyw==; Received: by smtp45.i.mail.ru with esmtpa (envelope-from ) id 1nzdEz-0004zZ-Tu for gcc-help@gcc.gnu.org; Fri, 10 Jun 2022 14:55:50 +0300 From: Fiodar Stryzhniou Subject: Out of memory while building GCC 12.1.0 To: gcc-help Message-ID: <6af5f478-817e-ecdc-174f-cfd8dd6c0376@mail.ru> Date: Fri, 10 Jun 2022 14:55:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Authentication-Results: smtp45.i.mail.ru; auth=pass smtp.auth=fedor_qd@mail.ru smtp.mailfrom=fedor_qd@mail.ru X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD97D44297578DBEB86CC0506E018D2C7F54E241DB180169FE4182A05F538085040DE8E96DEA8FC91782CAD58AE60F9DC502949546D79D0DC8CA76B58903077887C X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE78E88BD1CA827EF00C2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE722EA870BBF4AACFC8F08D7030A58E5AD1A62830130A00468AEEEE3FBA3A834EE7353EFBB5533756683BF3A71D03FAA4A96DF2ECC790DA520D77B5224FD7EA6E01DF9E95F17B0083B26EA987F6312C9EC26055571C92BF10F6FD1C55BDD38FC3FD2E47CDBA5A96583C09775C1D3CA48CF776A0366D588B3C3117882F4460429724CE54428C33FAD30A8DF7F3B2552694AC26CFBAC0749D213D2E47CDBA5A9658378DA827A17800CE77FFCE1C639F4728C9FA2833FD35BB23DF004C90652538430302FCEF25BFAB3454AD6D5ED66289B5278DA827A17800CE79F9FC772DC56F71CD32BA5DBAC0009BE395957E7521B51C20BC6067A898B09E4090A508E0FED6299176DF2183F8FC7C02BBEFD4DEE8ED4F8CD04E86FAF290E2D7E9C4E3C761E06A71DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6821DB69C87B6DA73089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-8FC586DF: 6EFBBC1D9D64D975 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C41E93BD56E7067354307CAA32FF218580205367B2BCC23E5B9087F534BBD4219DA9D420A4CFB5DD3E424FD4DC75F451EDB50839546942AFF8C0EEDBCBED19CD5BD59269BC5F550898DBE8DEE28BC9005C7AC0F1D1BDB38A634EAF44D9B582CE87C8A4C02DF684249C2E763F503762DF504DBC578B17CB11D78E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34A9873270276D4334132D6DDEBBD5B40E7504D81DDBAEDF8E269CD8933CE4335FE52F9FC6566B33FC1D7E09C32AA3244CDC65167A1AA9EE27E602EEF188CB28F88A6D4CC6FBFAC2513EB3F6AD6EA9203E X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj/W+skaHQI8Pu8lYDVj1tuw== X-Mailru-Sender: B5420D632883B294CF6673AD81AF0FB68614187F7076D1E094493E2E1D105A74E2527C969975515C2B4E3A9B39D17ED8FB559BB5D741EB9638645ACA06CB6E346F53C80213D1719C67EA787935ED9F1B X-Mras: Ok X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2022 11:55:55 -0000 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