Re: g++ for riscv32 "bare metal"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 22, 2020 at 12:52 PM Alex Rocha Prado <alex.prado@xxxxxxx> wrote:
>     Based on what I saw on the internet, to compile g++ it is mandatory to perform the following steps:
> 1) Configure, compile and install binutils
> 2) Configure, compile and install gcc
> 3) Configure, compile and install newlib
> 4) Reconfigure, recompile and reinstall gcc/g++ using --with-newlib option in configure
> (DO NOT WORK)

It isn't clear what error you got, but you might try looking at
supported build scripts.  crosstool-ng can build a bare metal compiler
for riscv.  There is also the riscv/riscv-gnu-toolchain project on
github that can build a bare metal compiler.  You could try looking at
these build scripts to see how they work.

Jim



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux