Ubuntu/Debian: apt-get update && apt-get install -y texinfo byacc flex libncurses5-dev zlib1g-dev libexpat1-dev texlive build-essential git wget gawk bison xz-utils make python3 rsync locales
CentOS/RHEL 7: yum install -y autoconf automake binutils bison byacc flex gcc gcc-c++ libtool patch texinfo-tex ncurses-devel ncurses-compat-libs flex zlib-devel expat-devel git texlive-collection-latexrecommended wget make xz rsync diffutils which
Fedora, CentOS/RHEL 8: dnf install -y autoconf automake binutils bison byacc flex gcc gcc-c++ libtool patch texinfo-tex ncurses-devel ncurses-compat-libs flex zlib-devel expat-devel git texlive-collection-latexrecommended wget make xz rsync diffutils which
git clone --depth 1 -b arc-2019.09-rc3 https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain.git
git clone --depth 1 -b arc-2019.09-rc3 https://github.com/foss-for-synopsys-dwc-arc-processors/binutils-gdb.git binutils
git clone --depth 1 -b arc-2019.09-rc3 https://github.com/foss-for-synopsys-dwc-arc-processors/gcc.git
git clone --depth 1 -b arc-2019.09-rc3 https://github.com/foss-for-synopsys-dwc-arc-processors/newlib.git
git clone --depth 1 -b arc-2019.09-rc3 https://github.com/foss-for-synopsys-dwc-arc-processors/glibc.git
git clone --depth 1 -b arc-2019.09-rc3-gdb https://github.com/foss-for-synopsys-dwc-arc-processors/binutils-gdb.git gdb
git clone --depth 1 -b linux-4.14.y https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
git clone --depth 1 -b v1.0.31 https://github.com/wbx-github/uclibc-ng.git
./build-all.sh --no-auto-checkout --no-auto-pull --no-elf32 --glibc --cpu hs38_linux --no-pdf