From 397987a8a3b80340318e9e14c5ea11bd0a87841c Mon Sep 17 00:00:00 2001 From: Kartatz <105828205+Kartatz@users.noreply.github.com> Date: Tue, 13 Aug 2024 02:27:58 -0300 Subject: [PATCH] Update to GCC 14.2.0 --- .github/workflows/build.yml | 89 ++++++++++++++++++++++++++++++++----- build.sh | 12 +++-- submodules/obggcc | 2 +- 3 files changed, 85 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5fc5539..155a4d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: id: check-cache uses: actions/cache@main with: - key: gcc-14.1.0-1 + key: gcc-14.2.0 lookup-only: true path: | /tmp/x86_64-linux-gnu.tar.xz @@ -45,7 +45,7 @@ jobs: if: ${{ steps.check-cache.outputs.cache-hit != 'true' }} uses: actions/cache@main with: - key: gcc-14.1.0-1 + key: gcc-14.2.0 path: | /tmp/x86_64-linux-gnu.tar.xz /tmp/x86_64-linux-gnu.tar.xz.sha256 @@ -54,32 +54,101 @@ jobs: name: 'Cross build' needs: native-build runs-on: ubuntu-latest + continue-on-error: true strategy: matrix: target: [ - # 'alpha-unknown-linux-gnu', + 'ia64-unknown-linux-gnu', + 'alpha-unknown-linux-gnu', 'x86_64-unknown-linux-gnu', 'i386-unknown-linux-gnu', - # 'arm-unknown-linux-gnueabi', + 'arm-unknown-linux-gnueabi', 'arm-unknown-linux-gnueabihf', - # 'hppa-unknown-linux-gnu', + 'hppa-unknown-linux-gnu', 'aarch64-unknown-linux-gnu', - # 'mips-unknown-linux-gnu', - # 'mipsel-unknown-linux-gnu', + 'mips-unknown-linux-gnu', + 'mipsel-unknown-linux-gnu', 'powerpc-unknown-linux-gnu', - # 's390-unknown-linux-gnu', + 's390-unknown-linux-gnu', 's390x-unknown-linux-gnu', 'sparc-unknown-linux-gnu', - 'powerpc64le-unknown-linux-gnu' + 'powerpc64le-unknown-linux-gnu', + 'mips64el-unknown-linux-gnuabi64' ] steps: - uses: actions/checkout@main with: submodules: true + - name: Free up some space + run: | + sudo apt purge --allow-remove-essential --auto-remove \ + '*apache2*' \ + '*docker*' \ + '*dotnet*' \ + '*firefox*' \ + '*google*' \ + '*gstreamer*' \ + '*jdk*' \ + '*nginx*' \ + '*php*' \ + '*ruby*' \ + '*wayland*' \ + 'auto*' \ + 'azure-cli' \ + 'bind9*' \ + 'clang*' \ + 'container*' \ + 'fonts*' \ + 'gcc-9' \ + 'gcc-10' \ + 'gcc-11' \ + 'gcc-12' \ + 'gh' \ + 'glib*' \ + 'libmono*' \ + 'lld*' \ + 'llvm*' \ + 'mercurial*' \ + 'mysql*' \ + 'postgresql*' \ + 'powershell' \ + 'vim*' \ + 'x11*' \ + 'xdg*' > '/dev/null' + sudo apt purge --allow-remove-essential --auto-remove \ + 'linux-*' \ + 'apt' > '/dev/null' + sudo rm --recursive --force \ + "${HOME}/.cargo" \ + "${HOME}/.rustup" \ + "${HOME}/linuxbrew" \ + '/etc/apt' \ + '/etc/cni/net.d' \ + '/etc/docker' \ + '/etc/mono' \ + '/etc/mysql' \ + '/lib/tmpfiles.d' \ + '/opt/'* \ + '/opt/az' \ + '/usr/lib/heroku' \ + '/usr/lib/mono' \ + '/usr/libexec/docker' \ + '/usr/local/lib/android' \ + '/usr/local/lib/android' \ + '/usr/local/share/man' \ + '/usr/local/share/vcpkg' \ + '/usr/share/fonts' \ + '/usr/share/icons' \ + '/usr/share/java' \ + '/usr/share/php' \ + '/usr/share/swift' \ + '/var/lib/apache2' \ + '/var/lib/gems' \ + '/var/log' - name: Restore from cache uses: actions/cache@main with: - key: gcc-14.1.0-1 + key: gcc-14.2.0 fail-on-cache-miss: true path: | /tmp/x86_64-linux-gnu.tar.xz diff --git a/build.sh b/build.sh index 13e3be8..2e18482 100644 --- a/build.sh +++ b/build.sh @@ -16,7 +16,7 @@ declare -r mpc_tarball='/tmp/mpc.tar.gz' declare -r mpc_directory='/tmp/mpc-1.3.1' declare -r binutils_tarball='/tmp/binutils.tar.xz' -declare -r binutils_directory='/tmp/binutils-2.42' +declare -r binutils_directory='/tmp/binutils-2.43' declare -r lld_tarball='/tmp/lld.tar.xz' @@ -35,8 +35,8 @@ function setup_gcc_source() { if [ "${tgt}" = 'hppa' ] || [ "${tgt}" = 'alpha' ] || [ "${tgt}" = 'amd64' ] || [ "${tgt}" = 'i386' ]; then gcc_version='14' - gcc_directory='/tmp/gcc-14.1.0' - gcc_url='https://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz' + gcc_directory='/tmp/gcc-14.2.0' + gcc_url='https://ftp.gnu.org/gnu/gcc/gcc-14.2.0/gcc-14.2.0.tar.xz' else gcc_version='11' gcc_directory='/tmp/gcc-11.2.0' @@ -117,7 +117,7 @@ if ! [ -f "${mpc_tarball}" ]; then fi if ! [ -f "${binutils_tarball}" ]; then - wget --no-verbose 'https://ftp.gnu.org/gnu/binutils/binutils-2.42.tar.xz' --output-document="${binutils_tarball}" + wget --no-verbose 'https://ftp.gnu.org/gnu/binutils/binutils-2.43.tar.xz' --output-document="${binutils_tarball}" tar --directory="$(dirname "${binutils_directory}")" --extract --file="${binutils_tarball}" patch --directory="${binutils_directory}" --strip='1' --input="${workdir}/patches/0001-Revert-gold-Use-char16_t-char32_t-instead-of-uint16_.patch" @@ -190,8 +190,6 @@ rm --force --recursive ./* make all --silent --jobs make install -sed -i 's/#include /#include \n#include /g' "${toolchain_directory}/include/mpc.h" - [ -d "${binutils_directory}/build" ] || mkdir "${binutils_directory}/build" declare -r targets=( @@ -336,7 +334,7 @@ for target in "${targets[@]}"; do --with-mpfr="${toolchain_directory}" \ --with-bugurl='https://github.com/AmanoTeam/Atar/issues' \ --with-gcc-major-version-only \ - --with-pkgversion="Atar v0.4-${revision}" \ + --with-pkgversion="Atar v0.5-${revision}" \ --with-sysroot="${toolchain_directory}/${triplet}" \ --with-native-system-header-dir='/include' \ --enable-__cxa_atexit \ diff --git a/submodules/obggcc b/submodules/obggcc index 2144477..335914a 160000 --- a/submodules/obggcc +++ b/submodules/obggcc @@ -1 +1 @@ -Subproject commit 2144477c6c319365dc4fe40cf2a9006dff4f3bbd +Subproject commit 335914a684c154b99bf894cce96e7786c9733e39