Quick and dirty instructions: $ git submodule update --init --recursive $ export RISCV=/path/to/install/riscv/toolchain $ ./build.sh Ubuntu packages needed: $ sudo apt-get install autoconf automake autotools-dev libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo Note: This requires GCC >= 4.8 for C++11 support (including thread_local). To use a compiler different than the default (for example on OS X), use: $ CC=gcc-4.8 CXX=g++-4.8 ./build.sh