From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id B0AC5394CC3F for ; Mon, 9 Mar 2020 16:36:54 +0000 (GMT) Received: by mail-wr1-x42a.google.com with SMTP id t11so12079291wrw.5 for ; Mon, 09 Mar 2020 09:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Pr+SWhgiOyHOcYjhEP4nKn45DfU/rM3mMnEznWLYGOs=; b=kB8OwcfmEsM+hYTmKhLebonq1MXtjvfc4kN3dzOBB9O3B5cTcyGia/Xxk6cgLXhR9H WnA6ArUHBgdPDXX0UcHZmWlRoNCc7FPhg3uoqJFXT8ZkFrvlicMyuSK5cTUetbEOKllk q52XUf/jORFGMFVWdRwObYwHRCEjH2BLdYl3Us7GjZ5EBTCoYPRsE7M26H70i34bz5gi RGqbpY/J2hdJctpeQm4n9oYLwrVcKksfH/+1ajVJHf+OLXg9p83Mpy6bmxTBwBDOZ301 Ac37uYLh6eGxb1Eo8whhz5eoASlmagHneTwy3RG6rC0XGGDJ8m93d8/VE8y6XwviBkm7 JzUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Pr+SWhgiOyHOcYjhEP4nKn45DfU/rM3mMnEznWLYGOs=; b=mo2hlTjF9PfsoIRa/4eYUbL/3S5DfjULb3CANOnpPu97GKLF5a3sFiWq899w1rbZAY +TfYigGUhtOBcwhIcd5wadOqxuREsRYvAwA+l8kPg9+l8fAAvuahkP55Mq+PeBA9yPMi nlxZd/FkWDwwW2yTHR5noocDeiv8sbEVgI4nTK3ohIMVI/ArUBG3MK5ZrRunfjEGumlq DIJxAnLXJraWmN0qy+Z/ULPZLuqj0zLhHv0CGEEqfbw31UbtdNkgX6tDXYXFPFGDpG5g fSNFPtzEJDchCLBJAfwH6xANCRgi7bCrSBcjaNcYso7VX7Fan2tLfEWy7L/NudQrnGhn IPQA== X-Gm-Message-State: ANhLgQ0mgxClIArmmi6J3nzySDVNk1HeYXZzO+l+EuXgr8UOGCSRDeU5 IrdFNcK8vBx7W41C6EFrUaRKyvTbd0UyUvuOkuY= X-Google-Smtp-Source: ADFU+vvyuBthobrmC2b3azCsHHp4XMfuiWsMXEnFtuWszI0HTckgXgkjiKXX49QWHLWmRKptXbASgsarredW4JS6de4= X-Received: by 2002:adf:bad0:: with SMTP id w16mr12820102wrg.233.1583771813776; Mon, 09 Mar 2020 09:36:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Mon, 9 Mar 2020 16:36:42 +0000 Message-ID: Subject: Re: RISC-V G++ and Gfortran Help To: Vijay Holimath Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Mon, 09 Mar 2020 16:36:55 -0000 On Mon, 9 Mar 2020 at 15:36, Vijay Holimath wrote: > > Moreover, in cross-ng tool (https://crosstool-ng.github.io/) in ct-ng > menu-config there are no option to build C++ and gfortran for RISC-V > architecture. This thing is, I need to modify certain source codes in the > source tree and rebuild both C++ and gfortran for RISC-V architecture. So, > I am looking for a command or tool or config file which will allow me > download all source files for C++ and gfortran compilers, modify certain > part of source code in source tree and re build the compiler from scratch. Like I already said, all the source files are in the same tree as the C compiler. So you already have them. It looks like crosstool-ng does support building any of the language front-ends supported by GCC, see: https://github.com/crosstool-ng/crosstool-ng/blob/c969be1880f99b6da4d98afd7bda641b7868a717/scripts/build/cc/gcc.sh#L37 Maybe you should just spend some time investigating crosstool-ng.