This repo has moved to: https://gitlab.com/mrisc32/mrisc32-gnu-toolchain
This is a top level repository for building the MRISC32 GNU toolchain.
The toolchain consists of:
The latest pre-built version of the toolchain can be found here.
Binaries are available for:
- Linux (x86_64)
- macOS (ARM64 + x86_64)
- Windows (x86_64)
Some releases also have pre-built versions for Linux ARM32 and/or ARM64 (e.g. for Raspberry Pi).
- Unpack the archive to a location of your choice.
- Add
path/to/mrisc32-gnu-toolchain/binto yourPATHenvironment variable (e.g. in$HOME/.bashrcon Linux).
Currently there are two methods for building the toolchain:
- Natively on your host machine (recommended).
- Using Docker.
The build has been tested on Ubuntu 20.04 (with GCC), macOS (with clang) and Windows (with MSYS2 and MinGW), but may work on other similar systems too.
The following packages are required (example given for Ubuntu):
sudo apt install bison build-essential curl flex texinfoTo build and install the GNU toolchain for MRISC32, do (example given for Ubuntu):
git submodule update --init --recursive
./build.sh --clean --prefix="$HOME/.local"For more options, see:
./build.sh --helpThe Docker based build will produce a toolchain for Linux hosts.
Install Docker.
To build the GNU toolchain for MRISC32, do:
git submodule update --init --recursive
./build-in-docker.shThe result is placed in the out/install folder. You can create a tar archive of the folder contents, or add out/install/bin to your PATH.