clone from here: https://github.com/riscv-collab/riscv-gnu-toolchain/
deps to install:
autoconf command:
./configure --prefix=/Volumes/case-sensitive/opt/riscv --with-arch=rv64gc --with-abi=lp64d
manual patches:
might need to do this after recursive repos have been pulled in
force generate files:
cd binutils/binutils
bison -y -o sysinfo.c sysinfo.y
bison -y -d --defines=sysinfo.h -o sysinfo.c sysinfo.y
bison -d --defines=arparse.h -o arparse.c arparse.y
cd binutils/ld
bison -d --defines=ldgram.h -o ldgram.c ldgram.y
brew install ninja
bison