From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by sourceware.org (Postfix) with ESMTPS id AFCF3385840F for ; Tue, 14 Feb 2023 12:29:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AFCF3385840F Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=tutanota.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tutanota.com Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w4.tutanota.de (Postfix) with ESMTP id D1C65106015C; Tue, 14 Feb 2023 12:28:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1676377739; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=xfGwVlWILWB8jWk9EtzD5TRHNAq2Qh8bjkX68xjrqNc=; b=viRKmGrtRda0mjVFlfUvzaq0jec2idJPSisTM0Xj+olfVnUnxXSr+cBv7wb5el9N kmdGfRjI2FGUu35IPWeEHyPAUFtq6FoOWJcyCUmzXXiZnPfwa120fUuwavD4lwgKGZ6 kP6XYsBqWlPowj4TUOzaS61yvo64fPw7aKvhXK7WdOrZzzZAi0YWHVQj/HVjD8dSCv8 XsWG/dtOB85XgirwRQOMB/kQdUI8wuRcYT+TnI7W1EaJh1FYezUB1PAVevYPfmFJ40U UC3hNeWMraheeGJ4/vTcPTTUS8mf+n5W6UosTQQ2x51nZN9+wrLANNlzbZqq0CZ6mvJ CzWGTRc83Q== Date: Tue, 14 Feb 2023 13:28:59 +0100 (CET) From: Sagar Acharya To: Xi Ruoyao Cc: gcc-help@gcc.gnu.org Message-ID: In-Reply-To: <8db704d6dae26764592f794835e07fc4100ed506.camel@xry111.site> References: <8db704d6dae26764592f794835e07fc4100ed506.camel@xry111.site> Subject: Re: Cross Compiling for riscv64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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: I'm compiling on RPI3. The real question is, whether building a compiler should require 900MB memory? And my answer to it is a clear undisputed no. 900MB is more than enough memory for building a compiler. I thank you very much for your help, Xi! Thanking you Sagar Acharya https://designman.org 14 Feb 2023, 17:18 by xry111@xry111.site: > 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. > > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University >