PrincetonUniversity / openpiton

The OpenPiton Platform
http://www.openpiton.org
626 stars 212 forks source link

Move pre-requisites to README #54

Open aolofsson opened 4 years ago

aolofsson commented 4 years ago

The pre-requisites hidden inside the ariane_setup.sh should probably be moved to README. There is currently no callout to these dependancies.

sudo apt install \

gcc-7 \

g++-7 \

gperf \

autoconf \

automake \

autotools-dev \

libmpc-dev \

libmpfr-dev \

libgmp-dev \

gawk \

build-essential \

bison \

flex \

texinfo \

python-pexpect \

libusb-1.0-0-dev \

default-jdk \

zlib1g-dev \

valgrind \

csh

Jbalkind commented 4 years ago

Thanks for bringing this up! We were recently trying to work out what the minimal set of packages actually is and what the equivalents are on Red Hat variants to resolve this and better document. I put together a draft of a Docker container a couple of weeks ago that seems to do the trick for centos 7: https://hub.docker.com/repository/docker/jbalkind/openpiton

The rub here is that most of those requirements are for building the RISC-V cross-compiler and consensus in some circles seems to be that we should no longer be rolling our own and instead rely on crosstools-ng or some other prebuilt toolchain that can be installed through the system package manager. It may still be a little soon to assume that people will have one easily available, though, and there's always the people who can't install a bunch of system packages. So I'm leaning more towards us including this (or a similar) list.