RISC-V G++ and Gfortran Help

Vijay Holimath vijay.holimath@gmail.com
Tue Mar 10 02:00:19 GMT 2020

Thanks Jim. Yes, I can see C++ and Fortran for new version of crosstool-ng.
However, I am unable to generate .config file using the following

Enable newlib build (C-library section)
Enable "Build a multilib toolchain" (Target options section)
and also
selected C++ (C compiler section)
as mentioned in


I have attached my version of .config file which I build gcc from scratch.
May I request you to edit this file send me two .config files? One for C++
and other fortran.

Many Thanks.

On Tue, Mar 10, 2020 at 3:32 AM Jim Wilson <jimw@sifive.com> wrote:

> On Mon, Mar 9, 2020 at 6:58 AM Vijay Holimath <vijay.holimath@gmail.com>
> wrote:
> > I would like to build RISC-V g++ and gfortran compiler by downloading all
> > source codes to host pc (for linux OS) and then rebuild compiler from
> > scratch. I can build RISC-V gcc compiler from scratch by downloading to
> > host pc using https://crosstool-ng.github.io/  However, I have not
> > found any such cross compiler tool for g++ and gfortran. May I request
> you
> > to guide me on how to build RISC-V cross  C ++ and gfortran compiler from
> > source codes?
> Using ct-ng menuconfig, in the C compiler menu, I see tick boxes for
> C++ and Fortran.
> Jim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dot2.config
Type: application/octet-stream
Size: 17798 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20200310/c09ecfcc/attachment.obj>

More information about the Gcc-help mailing list