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 2FD413858D1E for ; Tue, 14 Feb 2023 11:48:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2FD413858D1E Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1676375307; bh=+YR+jGiqUgGnYgMG6nluPAqJmQH7Sn0vRwQdMZ3ZOic=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=JgqLoXQgr+yuaLkyszyIVDRLA7E3wONSbFZxwvXhX3oz3LUezXH2bLhiZgjn9jyqK IZTUOriUHLYL8996ZCVRKfkmhdWVV5o2pfteZGgsnpGMjDyoPItteI+Kv9aP/PRjEK Xd1IKCDNcbhQUB7ppS7avF99k1/8PsfJ4E9Mfalo= Received: from [IPv6:240e:456:1030:5cf6:bedf:6bc:7e29:f3e5] (unknown [IPv6:240e:456:1030:5cf6:bedf:6bc:7e29:f3e5]) (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 B0BDD6688D; Tue, 14 Feb 2023 06:48:23 -0500 (EST) Message-ID: <8db704d6dae26764592f794835e07fc4100ed506.camel@xry111.site> Subject: Re: Cross Compiling for riscv64 From: Xi Ruoyao To: Sagar Acharya Cc: gcc-help@gcc.gnu.org Date: Tue, 14 Feb 2023 19:48:17 +0800 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 2023-02-14 at 12:37 +0100, Sagar Acharya via Gcc-help wrote: > g++: fatal error: Killed signal terminated program cc1plus > compilation terminated > make[2]: *** [Makefile:1143: gimple-match.o] Error 1 It looks like your system is out of memory then the kernel selects a process heavily using the memory and kill it. gimple-match.o is automatically generated, so it can be very large and compiling it will consume a large amount of memory. Try to add more RAM into your system, or build with a smaller -j value. The last resort is to add more swap space, but swapping can slow down the building process significantly. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University