If interested in building custom toolchain using binutils,gcc,and a library[categorization based on library used] from source. Content below:
- Build gcc with musl library
- Build gcc with newlib library
-
Build gcc with musl library Follow link[1] this is similar to riscv_gnu_toolchain[2] where in simple steps you can build the toolchain.
-
Build gcc with newlib library
- Create empty directory
- Untar attached tar file to above folder.
- Download sources from github git clone https://github.com/riscv/riscv-gcc.git git clone https://github.com/riscv/riscv-binutils-gdb git clone https://github.com/riscv/riscv-newlib
- In runall.sh set $PREFIX to
- run as ./runall.sh
Resource:[3]
If anything fails, please revert on list we will try solving it. [1]https://colematt.github.io/2018/11/26/building-llvm-for-riscv-cross-compilation.html
Links: [1]https://github.com/richfelker/musl-cross-make [2]https://github.com/riscv/riscv-gnu-toolchain [3]http://www.ifp.illinois.edu/~nakazato/tips/xgcc.html