OpenXiangShan / ready-to-run

3 stars 8 forks source link

script: add auto_bump script to compile on centos7 docker #21

Closed cyyself closed 6 months ago

cyyself commented 6 months ago

We didn't have a script to build ready-to-run binaries, which would confuse some new XiangShan users and developers from the community and even make it hard to bump them when new features and bug fixes are added to spike or nemu. So adding this script to get this solved.

Note: Building on CentOS 7 is now a workaround for some EDA environments. I hope we will use some modern software package manager like Nix someday to run this software on the EDA environment.

good-circle commented 6 months ago

Should we also bump riscv64-nemu-interpreter-dual-so with make riscv64-dual-xs-ref_defconfig?

cyyself commented 6 months ago

Should we also bump riscv64-nemu-interpreter-dual-so with make riscv64-dual-xs-ref_defconfig?

We also bumped riscv64-nemu-interpreter-dual-so in bump-nemu.sh. We have make riscv64-dual-xs-ref_defconfig there is to fetch dependencies as a workaround for the old version of GNU Make as I commented in the shell script.

poemonsense commented 6 months ago

Is it possible to use GitHub ubuntu-20.04 CI servers to build them? Then we don't need this centos7. CI provides free ubuntu servers for actions.

cyyself commented 6 months ago

Is it possible to use GitHub ubuntu-20.04 CI servers to build them? Then we don't need this centos7. CI provides free ubuntu servers for actions.

Centos7 is required for the EDA servers to use these binaries. I hope someday the EDA software we use can run on modem linux distros with newer glibc. If we want to build it on Ubuntu, we need to replace an old version of glibc and other libraries; in ubuntu-20.04, it is pretty tricky.

poemonsense commented 6 months ago

Is it possible to use GitHub ubuntu-20.04 CI servers to build them? Then we don't need this centos7. CI provides free ubuntu servers for actions.

Centos7 is required for the EDA servers to use these binaries. I hope someday the EDA software we use can run on modem linux distros with newer glibc. If we want to build it on Ubuntu, we need to replace an old version of glibc and other libraries; in ubuntu-20.04, it is pretty tricky.

Previously we are building all so using ubuntu-20.04. They should work well on the eda servers