Skip to content

Instantly share code, notes, and snippets.

@abrodkin
Last active December 19, 2019 10:34
Show Gist options
  • Save abrodkin/e8a2e02857f95c718ba6aba8c53c4622 to your computer and use it in GitHub Desktop.
Save abrodkin/e8a2e02857f95c718ba6aba8c53c4622 to your computer and use it in GitHub Desktop.
Manual ARC GNU toolchain building with Synopsys scripts

Install dependencies

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

Get all the sources

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

Fire-up the build

./build-all.sh --no-auto-checkout --no-auto-pull --no-elf32 --glibc --cpu hs38_linux --no-pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment