From 70005c4c48b950a7a826dd8191c08d4faad8a9bd Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Sat, 21 Jan 2023 18:00:14 -0600 Subject: [PATCH] fixes to installer script --- bin/wally-tool-chain-install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/wally-tool-chain-install.sh b/bin/wally-tool-chain-install.sh index c2be7cf0..2f6f1691 100755 --- a/bin/wally-tool-chain-install.sh +++ b/bin/wally-tool-chain-install.sh @@ -1,15 +1,19 @@ export RISCV=/opt/riscv export PATH=$PATH:$RISCV/bin -NUM_THREADS=4 +set -e # break on error + +NUM_THREADS=1 sudo mkdir -p $RISCV # UPDATE / UPGRADE -apt update +#apt update # INSTALL -apt install -y git gawk make texinfo bison flex build-essential python3 libz-dev libexpat-dev autoconf device-tree-compiler ninja-build libpixman-1-dev build-essential ncurses-base ncurses-bin libncurses5-dev dialog curl wget ftp libgmp-dev +#apt install -y git gawk make texinfo bison flex build-essential python3 libz-dev libexpat-dev autoconf device-tree-compiler ninja-build libpixman-1-dev build-essential ncurses-base ncurses-bin libncurses5-dev dialog curl wget ftp libgmp-dev + +ln -sf /usr/bin/python3 /usr/bin/python # this is unforunate. gcc needs python but it looks specifically for python and not python3 or python2. # gcc cross-compiler cd $RISCV