2 # really this is covered by hdl-tools-yosys already, it's best to
3 # use that (and install yosys at the same time, you'll need it anyway)
5 then echo "Please run as root using 'sudo bash'"
10 apt-get
install -y git gnat gcc g
++ make file texinfo zlib1g-dev
12 # change into $SUDO_USER home directory
17 git clone https
://github.com
/ghdl
/ghdl.git
18 wget https
://ftp.gnu.org
/gnu
/gmp
/gmp-6.2
.1.
tar.xz
19 wget https
://ftp.gnu.org
/gnu
/mpc
/mpc-1.2
.1.
tar.gz
20 wget https
://www.mpfr.org
/mpfr-4.1
.0/mpfr-4.1
.0.
tar.xz
21 wget https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/isl-0.18.
tar.bz2
22 wget https
://ftp.gnu.org
/gnu
/gcc
/gcc-10.3
.0/gcc-10.3
.0.
tar.xz
24 tar -xf gcc-10.3
.0.
tar.xz
26 tar -xf ..
/gmp-6.2
.1.
tar.xz
28 tar -xf ..
/mpc-1.2
.1.
tar.gz
30 tar -xf ..
/mpfr-4.1
.0.
tar.xz
32 tar -xf ..
/isl-0.18.
tar.bz2
36 # see hdl-tools-yosys, a *very* specific version is needed to work
37 # with yosys and the yosys-ghdl-plugin
40 git checkout
263c843ed49f59cb4cc3038bafcac2b9238ebad4
43 ..
/configure
--with-gcc=..
/..
/gcc-10.3
.0 --prefix=/usr
/local
/ghdl
45 mkdir gcc-objs
; cd gcc-objs
46 ..
/..
/..
/gcc-10.3
.0/configure
--prefix=/usr
/local
/ghdl \
47 --enable-languages=c
,vhdl
--disable-bootstrap --disable-lto \
48 --disable-multilib --disable-libssp --disable-libgomp \
49 --disable-libquadmath --enable-default-pie
56 cd /home
/$SUDO_USER/src
/ghdl