working compiler instructions

This commit is contained in:
Ada Orbit 2026-04-05 22:21:03 +02:00
parent 6f94e52d07
commit 9836a9e372
6 changed files with 22 additions and 13 deletions

View file

@ -2,7 +2,7 @@
set -e
# Step 1. Download GCC and binutils source code
# Definitions
ADACASIO_BINUTILS_VERSION="2.46.0"
ADACASIO_GCC_VERSION="15.2.0"
ADACASIO_BINUTILS_URL="https://ftp.gnu.org/gnu/binutils/binutils-$ADACASIO_BINUTILS_VERSION.tar.gz"
@ -10,6 +10,13 @@ ADACASIO_GCC_URL="https://ftp.gnu.org/gnu/gcc/gcc-15.2.0/gcc-$ADACASIO_GCC_VERSI
ADACASIO_PREFIX="$(pwd)/sysroot"
ADACASIO_TARGET="sh-elf"
# Install dependencies
# For now I have only tested Fedora 43. YMMV
sudo -i
dnf install mg
dnf upgrade
dnf install @c-development gnat gprbuild gmp-devel mpfr-devel libmpc-devel git
# prepare configure and build enviornment
wget -O binutils.tar.gz $ADACASIO_BINUTILS_URL
wget -O gcc.tar.gz $ADACASIO_GCC_URL