Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to GCC 10.3 #1

Open
wants to merge 2 commits into
base: gcc-9.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Linux GCC 9.3.0 cross- and/or native- tool-chain for C and C++ (ADA, Fortran D and GO in native version only)
# Linux GCC 10.3.0 cross- and/or native- tool-chain for C and C++ (ADA, Fortran D and GO in native version only)
Scripts to build a linux-toolchain for:
+ the latticeMicro32 (LM32 soft-core processor), languages: C, C++
+ the Atmel Atmega Micro-controller series (AVR) e.g. for Arduino, languages: C, C++
Expand Down
13 changes: 10 additions & 3 deletions build-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ GCC_URL="http://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.gz
GLIBC_URL="https://ftp.gnu.org/gnu/glibc/glibc-${GLIBC_VERSION}.tar.gz"
UCLIBC_URL="https://downloads.uclibc-ng.org/releases/${UCLIBC_VERSION}/uClibc-ng-${UCLIBC_VERSION}.tar.xz"
#NEW_LIB_URL="ftp://sources.redhat.com/pub/newlib/newlib-${NEW_LIB_VERSION}.tar.gz"
NEW_LIB_URL="ftp://sourceware.org/pub/newlib/newlib-${NEW_LIB_VERSION}.tar.gz"
#NEW_LIB_URL="ftp://sourceware.org/pub/newlib/newlib-${NEW_LIB_VERSION}.tar.gz"
NEW_LIB_URL="https://sourceware.org/ftp/newlib/newlib-${NEW_LIB_VERSION}.tar.gz"
GDB_URL="http://ftp.gnu.org/gnu/gdb/gdb-${GDB_VERSION}.tar.gz"
BIN_UTILS_URL="http://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERSION}.tar.bz2"
MPC_URL="https://ftp.gnu.org/gnu/mpc/mpc-${MPC_VERSION}.tar.gz"
Expand All @@ -55,11 +56,13 @@ then
ADDITIONAL_CONFIG_ARGS="$ADDITIONAL_CONFIG_ARGS --with-pkgversion=$PKG_VERSION"
fi

ADDITIONAL_CONFIG_ARGS="$ADDITIONAL_CONFIG_ARGS --disable-assembly"

ADDITIONAL_FIRST_STAGE_CONFIG_ARGS="$ADDITIONAL_FIRST_STAGE_CONFIG_ARGS $ADDITIONAL_CONFIG_ARGS"
ADDITIONAL_SECOND_STAGE_CONFIG_ARGS="$ADDITIONAL_SECOND_STAGE_CONFIG_ARGS $ADDITIONAL_CONFIG_ARGS"
ADDITIONAL_SECOND_STAGE_CONFIG_ARGS="$ADDITIONAL_SECOND_STAGE_CONFIG_ARGS --disable-source-highlight"

# ADDITIONAL_SECOND_STAGE_CONFIG_ARGS="$ADDITIONAL_SECOND_STAGE_CONFIG_ARGS --disable-gdb"
#------------------------------------------------------------------------------
seconds2timeFormat()
{
Expand Down Expand Up @@ -215,7 +218,8 @@ prepare_gcc_build()
{
local binUtilLinkList="bfd binutils gas gold gprof opcodes ld"
local newLibLinkList="newlib libgloss"
local gdbLinkList="gdb"
# local gdbLinkList="gdb gnulib gdbsupport sim"
local gdbLinkList="gdb gnulib gdbsupport"
local mpcLinkList="mpc"
local mpfrLinkList="mpfr"
local gmpLinkList="gmp"
Expand Down Expand Up @@ -281,7 +285,8 @@ WORK_DIR=$(pwd)

#PREFIX="${WORK_DIR}/temp"


export LC_ALL=C
ulimit -s 32768

if [ ! -n "$PREFIX" ]
then
Expand Down Expand Up @@ -324,6 +329,8 @@ extract_if_not_already_done

prepare_gcc_build

#exit 0

BUILD_DIR="${WORK_DIR}/_build-${TARGET}-${GCC_VERSION}"
if [ -d "$BUILD_DIR" ]
then
Expand Down
16 changes: 11 additions & 5 deletions gcc_versions.conf
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
GCC_VERSION="9.3.0"
GCC_VERSION="10.3.0"
#GCC_VERSION="9.3.0"
#GCC_VERSION="9.2.0"
#GCC_VERSION="9.1.0"
#GCC_VERSION="8.3.0"
NEW_LIB_VERSION="3.2.0"
NEW_LIB_VERSION="4.1.0"
#NEW_LIB_VERSION="3.2.0"
#NEW_LIB_VERSION="3.1.0"
#GLIBC_VERSION="2.29"
#GLIBC_VERSION="2.30"
GLIBC_VERSION="2.31"
#GLIBC_VERSION="2.31"
GLIBC_VERSION="2.34"
UCLIBC_VERSION="1.0.31"
GDB_VERSION="9.1"
GDB_VERSION="10.2"
#GDB_VERSION="9.1"
#GDB_VERSION="8.3"
#GDB_VERSION="7.12"
#BINUTILS_VERSION="2.37"
#BINUTILS_VERSION="2.34"
BINUTILS_VERSION="2.32"
#BINUTILS_VERSION="2.31.1"
MPC_VERSION="1.1.0"
#MPFR_VERSION="3.1.0"
MPFR_VERSION="4.0.2"
MPFR_VERSION="4.1.0"
#MPFR_VERSION="4.0.2"
#GMP_VERSION="5.0.2"
#GMP_VERSION="6.1.2"
GMP_VERSION="6.2.0"
Expand Down