From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 6AB6F38376C0 for ; Fri, 10 Jun 2022 12:14:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6AB6F38376C0 Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 1F671667EA; Fri, 10 Jun 2022 08:14:34 -0400 (EDT) Message-ID: <996468e7556a34c30413aaa977e9f26688be8c93.camel@xry111.site> Subject: Re: Out of memory while building GCC 12.1.0 From: Xi Ruoyao To: Fiodar Stryzhniou , gcc-help Date: Fri, 10 Jun 2022 20:14:33 +0800 In-Reply-To: <6af5f478-817e-ecdc-174f-cfd8dd6c0376@mail.ru> References: <6af5f478-817e-ecdc-174f-cfd8dd6c0376@mail.ru> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.2 MIME-Version: 1.0 X-Spam-Status: No, score=3.0 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_SUSPICIOUS_NTLD, KAM_NUMSUBJECT, LIKELY_SPAM_FROM, PDS_OTHER_BAD_TLD, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: *** 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 12:14:38 -0000 On Fri, 2022-06-10 at 14:55 +0300, Fiodar Stryzhniou wrote: /* snip */ > 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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 build/genautom= ata=20 > ../../gcc-12.1.0/./gcc/common.md=20 > ../../gcc-12.1.0/./gcc/config/arm/arm.md insn-conditions.md >=20 > 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 /* snip */ > 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 >=20 > Looks like fork-bomb. >=20 > I have 8Gb ram. Adding 10Gb swap doesn't help. >=20 > Here mine shell script used for easy gcc build -=20 > https://github.com/fedor4ever/GCC4Symbian. It looks like you are using "make -j" without a number somehow. Then make will attempt to fork as many parallel jobs as possible. Recheck your script. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University