3 then echo "Please run as root using 'sudo bash'"
8 apt-get
install -y git gnat gcc g
++ make file texinfo zlib1g-dev
10 # change into $SUDO_USER home directory
15 git clone https
://github.com
/ghdl
/ghdl.git
16 wget https
://ftp.gnu.org
/gnu
/gmp
/gmp-6.2
.1.
tar.xz
17 wget https
://ftp.gnu.org
/gnu
/mpc
/mpc-1.2
.1.
tar.gz
18 wget https
://www.mpfr.org
/mpfr-4.1
.0/mpfr-4.1
.0.
tar.xz
19 wget https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/isl-0.18.
tar.bz2
20 wget https
://ftp.gnu.org
/gnu
/gcc
/gcc-10.3
.0/gcc-10.3
.0.
tar.xz
22 tar -xf gcc-10.3
.0.
tar.xz
24 tar -xf ..
/gmp-6.2
.1.
tar.xz
26 tar -xf ..
/mpc-1.2
.1.
tar.gz
28 tar -xf ..
/mpfr-4.1
.0.
tar.xz
30 tar -xf ..
/isl-0.18.
tar.bz2
38 ..
/configure
--with-gcc=..
/..
/gcc-10.3
.0 --prefix=/usr
/local
/ghdl
40 mkdir gcc-objs
; cd gcc-objs
41 ..
/..
/..
/gcc-10.3
.0/configure
--prefix=/usr
/local
/ghdl
--enable-languages=c
,vhdl
--disable-bootstrap --disable-lto --disable-multilib --disable-libssp --disable-libgomp --disable-libquadmath
48 cd /home
/$SUDO_USER/src
/ghdl