From c68b232f305cf6d2f2e387161cc6e1b617b8d857 Mon Sep 17 00:00:00 2001 From: Kartatz <105828205+Kartatz@users.noreply.github.com> Date: Fri, 31 May 2024 16:26:59 -0300 Subject: [PATCH] Update to GCC 14.1.0 --- .github/workflows/build.yml | 38 ++++- aarch64-unknown-linux-musl.sh | 9 -- arm-unknown-linux-musleabihf.sh | 9 -- armv7l-unknown-linux-musleabihf.sh | 9 -- build.sh | 145 ++++++++---------- i386-unknown-linux-musl.sh | 8 - mips-unknown-linux-musl.sh | 9 ++ mips64-unknown-linux-musl.sh | 8 - mipsel-unknown-linux-musl.sh | 9 ++ ...char16_t-char32_t-instead-of-uint16_.patch | 77 ++++++++++ powerpc-unknown-linux-musl.sh | 9 ++ powerpc64le-unknown-linux-musl.sh | 8 - riscv64-unknown-linux-musl.sh | 8 - s390x-unknown-linux-musl.sh | 8 - submodules/obggcc | 2 +- x86_64-unknown-linux-musl.sh | 9 -- 16 files changed, 205 insertions(+), 160 deletions(-) create mode 100644 mips-unknown-linux-musl.sh create mode 100644 mipsel-unknown-linux-musl.sh create mode 100644 patches/0001-Revert-gold-Use-char16_t-char32_t-instead-of-uint16_.patch create mode 100644 powerpc-unknown-linux-musl.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3866b38..4ff62b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,15 +13,27 @@ jobs: - uses: actions/checkout@main with: submodules: true + - name: Check for cache + id: check-cache + uses: actions/cache@main + with: + key: gcc-14.1.0-1 + lookup-only: true + path: | + /tmp/x86_64-linux-gnu.tar.xz + /tmp/x86_64-linux-gnu.tar.xz.sha256 - name: Build Raiden + if: ${{ steps.check-cache.outputs.cache-hit != 'true' }} run: | bash './build.sh' 'native' - name: Generate tarball + if: ${{ steps.check-cache.outputs.cache-hit != 'true' }} run: | declare tarball_filename='/tmp/x86_64-linux-gnu.tar.xz' tar --directory='/tmp' --create --file=- 'raiden' | xz --threads='0' --compress -9 > "${tarball_filename}" sha256sum "${tarball_filename}" | sed 's|/tmp/||' > "${tarball_filename}.sha256" - name: Upload artifact + if: ${{ steps.check-cache.outputs.cache-hit != 'true' }} uses: actions/upload-artifact@main with: name: native-toolchain @@ -29,6 +41,14 @@ jobs: path: | /tmp/x86_64-linux-gnu.tar.xz /tmp/x86_64-linux-gnu.tar.xz.sha256 + - name: Cache artifact + if: ${{ steps.check-cache.outputs.cache-hit != 'true' }} + uses: actions/cache@main + with: + key: gcc-14.1.0-1 + path: | + /tmp/x86_64-linux-gnu.tar.xz + /tmp/x86_64-linux-gnu.tar.xz.sha256 cross-build: name: 'Cross build' @@ -38,6 +58,7 @@ jobs: strategy: matrix: target: [ + 'ia64-unknown-linux-gnu', 'alpha-unknown-linux-gnu', 'x86_64-unknown-linux-gnu', 'i386-unknown-linux-gnu', @@ -51,19 +72,24 @@ jobs: '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: Download artifact - uses: actions/download-artifact@main + - name: Restore from cache + uses: actions/cache@main with: - name: native-toolchain + key: gcc-14.1.0-1 + fail-on-cache-miss: true + path: | + /tmp/x86_64-linux-gnu.tar.xz + /tmp/x86_64-linux-gnu.tar.xz.sha256 - name: Setup toolchain run: | - tar --directory='/tmp' --extract --file='./x86_64-linux-gnu.tar.xz' + tar --directory='/tmp' --extract --file='/tmp/x86_64-linux-gnu.tar.xz' mv '/tmp/raiden' '/tmp/raiden-toolchain' - name: Build Raiden with OBGGCC run: | @@ -79,7 +105,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@main with: - name: cross-toolchain + name: ${{ matrix.target }} if-no-files-found: error path: | /tmp/${{ matrix.target }}.tar.xz diff --git a/aarch64-unknown-linux-musl.sh b/aarch64-unknown-linux-musl.sh index 6daa7a5..4875cb2 100644 --- a/aarch64-unknown-linux-musl.sh +++ b/aarch64-unknown-linux-musl.sh @@ -1,18 +1,9 @@ #!/bin/bash -declare packages=( - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/aarch64/musl-1.1.24_17.aarch64-musl.xbps' - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/aarch64/musl-devel-1.1.24_17.aarch64-musl.xbps' - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/aarch64/kernel-libc-headers-5.10.4_1.aarch64.xbps' - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/aarch64/libexecinfo-devel-1.1_3.aarch64-musl.xbps' -) - declare extra_configure_flags='' declare triplet='aarch64-unknown-linux-musl' declare ld='ld-musl-aarch64.so.1' -declare sysroot='https://web.archive.org/web/0if_/https://repo-default.voidlinux.org/live/current/void-aarch64-musl-ROOTFS-20230628.tar.xz' - declare os='void' diff --git a/arm-unknown-linux-musleabihf.sh b/arm-unknown-linux-musleabihf.sh index e7e6e6d..f9ea4cb 100644 --- a/arm-unknown-linux-musleabihf.sh +++ b/arm-unknown-linux-musleabihf.sh @@ -1,18 +1,9 @@ #!/bin/bash -declare packages=( - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/musl/musl-1.1.24_17.armv6l-musl.xbps' - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/musl/musl-devel-1.1.24_17.armv6l-musl.xbps' - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/kernel-libc-headers-5.10.4_1.armv6l.xbps' - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/musl/libexecinfo-devel-1.1_3.armv6l-musl.xbps' -) - declare extra_configure_flags='--with-arch=armv6 --with-fpu=vfp --with-float=hard' declare triplet='arm-unknown-linux-musleabihf' declare ld='ld-musl-armhf.so.1' -declare sysroot='https://web.archive.org/web/0if_/https://repo-default.voidlinux.org/live/current/void-armv6l-musl-ROOTFS-20230628.tar.xz' - declare os='void' diff --git a/armv7l-unknown-linux-musleabihf.sh b/armv7l-unknown-linux-musleabihf.sh index 86d5d8f..031d8df 100644 --- a/armv7l-unknown-linux-musleabihf.sh +++ b/armv7l-unknown-linux-musleabihf.sh @@ -1,18 +1,9 @@ #!/bin/bash -declare packages=( - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/musl/musl-1.1.24_17.armv7l-musl.xbps' - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/musl/musl-devel-1.1.24_17.armv7l-musl.xbps' - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/kernel-libc-headers-5.10.4_1.armv7l.xbps' - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/musl/libexecinfo-devel-1.1_3.armv7l-musl.xbps' -) - declare extra_configure_flags='--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard' declare triplet='armv7l-unknown-linux-musleabihf' declare ld='ld-musl-armhf.so.1' -declare sysroot='https://web.archive.org/web/0if_/https://repo-default.voidlinux.org/live/current/void-armv7l-musl-ROOTFS-20230628.tar.xz' - declare os='void' diff --git a/build.sh b/build.sh index 40e36f8..6c289dc 100644 --- a/build.sh +++ b/build.sh @@ -2,31 +2,63 @@ set -eu -declare -r current_source_directory="${PWD}" +declare -r workdir="${PWD}" declare -r revision="$(git rev-parse --short HEAD)" declare -r toolchain_directory='/tmp/raiden' declare -r gmp_tarball='/tmp/gmp.tar.xz' -declare -r gmp_directory='/tmp/gmp-6.2.1' +declare -r gmp_directory='/tmp/gmp-6.3.0' declare -r mpfr_tarball='/tmp/mpfr.tar.xz' -declare -r mpfr_directory='/tmp/mpfr-4.2.0' +declare -r mpfr_directory='/tmp/mpfr-4.2.1' 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.40' +declare -r binutils_directory='/tmp/binutils-2.42' -declare -r gcc_tarball='/tmp/gcc.tar.gz' -declare -r gcc_directory='/tmp/gcc-13.2.0' +declare gcc_directory='' + +declare -r sysroot_tarball='/tmp/sysroot.tar.xz' + +function setup_gcc_source() { + + local gcc_version='' + local gcc_url='' + local gcc_tarball='' + local tgt="${1}" + + declare -r tgt + + 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_tarball="/tmp/gcc-${gcc_version}.tar.xz" + + declare -r gcc_version + declare -r gcc_url + declare -r gcc_tarball + + if ! [ -f "${gcc_tarball}" ]; then + wget --no-verbose "${gcc_url}" --output-document="${gcc_tarball}" + tar --directory="$(dirname "${gcc_directory}")" --extract --file="${gcc_tarball}" + fi + + [ -d "${gcc_directory}/build" ] || mkdir "${gcc_directory}/build" + + sed --in-place 's/LDBL_MANT_DIG == 113/defined(__powerpc__) || defined(__powerpc64__) || defined(__s390x__)/g' "${gcc_directory}/libgcc/dfp-bit.h" + sed --in-place 's/soft-fp.h/this-does-not-exist.h/g' "${gcc_directory}/libquadmath/math/sqrtq.c" + +} declare -r optflags='-Os' declare -r linkflags='-Wl,-s' -declare -r max_jobs="$(($(nproc) * 8))" +declare -r max_jobs="$(($(nproc) * 17))" declare build_type="${1}" @@ -51,32 +83,27 @@ if ! (( is_native )); then fi if ! [ -f "${gmp_tarball}" ]; then - curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://mirrors.kernel.org/gnu/gmp/gmp-6.2.1.tar.xz' --output "${gmp_tarball}" + wget --no-verbose 'https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz' --output-document="${gmp_tarball}" tar --directory="$(dirname "${gmp_directory}")" --extract --file="${gmp_tarball}" fi if ! [ -f "${mpfr_tarball}" ]; then - curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://mirrors.kernel.org/gnu/mpfr/mpfr-4.2.0.tar.xz' --output "${mpfr_tarball}" + wget --no-verbose 'https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.1.tar.xz' --output-document="${mpfr_tarball}" tar --directory="$(dirname "${mpfr_directory}")" --extract --file="${mpfr_tarball}" fi if ! [ -f "${mpc_tarball}" ]; then - curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://mirrors.kernel.org/gnu/mpc/mpc-1.3.1.tar.gz' --output "${mpc_tarball}" + wget --no-verbose 'https://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz' --output-document="${mpc_tarball}" tar --directory="$(dirname "${mpc_directory}")" --extract --file="${mpc_tarball}" fi if ! [ -f "${binutils_tarball}" ]; then - curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://mirrors.kernel.org/gnu/binutils/binutils-2.40.tar.xz' --output "${binutils_tarball}" + wget --no-verbose 'https://ftp.gnu.org/gnu/binutils/binutils-2.42.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" fi -if ! [ -f "${gcc_tarball}" ]; then - curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://mirrors.kernel.org/gnu/gcc/gcc-13.2.0/gcc-13.2.0.tar.xz' --output "${gcc_tarball}" - tar --directory="$(dirname "${gcc_directory}")" --extract --file="${gcc_tarball}" -fi - -sed --in-place 's/LDBL_MANT_DIG == 106/defined(__powerpc64__)/g' "${gcc_directory}/libgcc/dfp-bit.h" - [ -d "${gmp_directory}/build" ] || mkdir "${gmp_directory}/build" cd "${gmp_directory}/build" @@ -120,7 +147,7 @@ cd "${mpc_directory}/build" --enable-shared \ --enable-static \ ${cross_compile_flags} \ - CFLAGS="${optflags}" \ + CFLAGS="${optflags} -fpermissive" \ CXXFLAGS="${optflags}" \ LDFLAGS="${linkflags}" @@ -128,76 +155,38 @@ make all --jobs make install declare -ra targets=( + # 'powerpc-unknown-linux-musl' + 's390x-unknown-linux-musl' + 'powerpc64le-unknown-linux-musl' + # 'mips-unknown-linux-musl' + # 'mipsel-unknown-linux-musl' 'mips64-unknown-linux-musl' 'armv7l-unknown-linux-musleabihf' - 'powerpc64le-unknown-linux-musl' 'x86_64-unknown-linux-musl' 'aarch64-unknown-linux-musl' 'arm-unknown-linux-musleabihf' 'riscv64-unknown-linux-musl' - 's390x-unknown-linux-musl' 'i386-unknown-linux-musl' ) for target in "${targets[@]}"; do - source "${current_source_directory}/${target}.sh" + source "${workdir}/${target}.sh" cd "$(mktemp --directory)" - if [ "${os}" == 'void' ]; then - declare sysroot_filename="./sysroot.tar.xz" - else - declare sysroot_filename="./sysroot.tar.gz" - fi - - curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --output "${sysroot_filename}" --url "${sysroot}" - - tar --extract --file="${sysroot_filename}" || true + curl \ + --url "https://github.com/AmanoTeam/musl-sysroot/releases/latest/download/${triplet}.tar.xz" \ + --retry '30' \ + --retry-all-errors \ + --retry-delay '0' \ + --retry-max-time '0' \ + --location \ + --continue-at '-' \ + --output "${sysroot_tarball}" - if [ "${os}" == 'void' ]; then - declare package_filename="./package.tar.xst" - else - declare package_filename="./package.tar.gz" - fi - - for package in "${packages[@]}"; do - curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --output "${package_filename}" --url "${package}" - tar --extract --file="${package_filename}" - done + tar --directory="${toolchain_directory}" --extract --file="${sysroot_tarball}" - [ -d "${toolchain_directory}/${triplet}" ] || mkdir --parent "${toolchain_directory}/${triplet}" - - cp --recursive './usr/include' "${toolchain_directory}/${triplet}" - cp --recursive './usr/lib' "${toolchain_directory}/${triplet}" - - if [ -d './lib' ]; then - cp --remove-destination --recursive './lib/'* "${toolchain_directory}/${triplet}/lib" - fi - - pushd "${toolchain_directory}/${triplet}/lib" - - if [ "${os}" == 'alpine' ]; then - find . -xtype l | xargs ls -l | grep '/lib/' | awk '{print "unlink "$9" && ln -s $(basename "$11") $(basename "$9")"}' | bash - - unlink './libc.so' - mv "${ld}" './libc.so' - - patchelf --set-soname 'libc.so' './libc.so' - fi - - if [ -L "${ld}" ]; then - unlink "${ld}" - fi - - ln --symbolic './libc.so' "${ld}" - - while read filename; do - if [[ "${filename}" =~ ^lib(pthread|resolv|rt|c|m|util|xnet)\.(so|a)$ || "${filename}" =~ ^.*\.o$ || "${filename}" =~ ^ld\-.*\.so.*$ ]]; then - continue - fi - - rm --recursive "${filename}" - done <<< "$(ls)" + unlink "${sysroot_tarball}" [ -d "${binutils_directory}/build" ] || mkdir "${binutils_directory}/build" @@ -218,9 +207,11 @@ for target in "${targets[@]}"; do CXXFLAGS="${optflags}" \ LDFLAGS="${linkflags}" - make all --jobs="${max_jobs}" + make all --jobs make install + setup_gcc_source "${triplet}" + [ -d "${gcc_directory}/build" ] || mkdir "${gcc_directory}/build" cd "${gcc_directory}/build" @@ -235,7 +226,7 @@ for target in "${targets[@]}"; do --with-mpc="${toolchain_directory}" \ --with-mpfr="${toolchain_directory}" \ --with-bugurl='https://github.com/AmanoTeam/Raiden/issues' \ - --with-pkgversion="Raiden v0.4-${revision}" \ + --with-pkgversion="Raiden v0.5-${revision}" \ --with-sysroot="${toolchain_directory}/${triplet}" \ --with-gcc-major-version-only \ --with-native-system-header-dir='/include' \ @@ -285,7 +276,7 @@ for target in "${targets[@]}"; do for name in *; do rm "${name}" - ln -s "../../bin/${triplet}-${name}" "${name}" + ln --symbolic "../../bin/${triplet}-${name}" "${name}" done rm --recursive "${toolchain_directory}/share" diff --git a/i386-unknown-linux-musl.sh b/i386-unknown-linux-musl.sh index 9be2761..8377091 100644 --- a/i386-unknown-linux-musl.sh +++ b/i386-unknown-linux-musl.sh @@ -1,17 +1,9 @@ #!/bin/bash -declare packages=( - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/edge/main/x86/musl-1.2.4-r0.apk' - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/edge/main/x86/musl-dev-1.2.4-r0.apk' - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/edge/main/x86/linux-headers-6.3-r0.apk' -) - declare extra_configure_flags='--with-arch=i586 --with-tune=generic' declare triplet='i386-unknown-linux-musl' declare ld='ld-musl-i386.so.1' -declare sysroot='https://web.archive.org/web/0if_/https://dl-cdn.alpinelinux.org/alpine/edge/releases/x86/alpine-minirootfs-3.17.0-x86.tar.gz' - declare os='alpine' diff --git a/mips-unknown-linux-musl.sh b/mips-unknown-linux-musl.sh new file mode 100644 index 0000000..cc81f01 --- /dev/null +++ b/mips-unknown-linux-musl.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +declare extra_configure_flags='' + +declare triplet='mips-unknown-linux-musl' + +declare ld='ld-musl-mips.so.1' + +declare os='sabotage' diff --git a/mips64-unknown-linux-musl.sh b/mips64-unknown-linux-musl.sh index 12270f0..4cd1cba 100644 --- a/mips64-unknown-linux-musl.sh +++ b/mips64-unknown-linux-musl.sh @@ -1,17 +1,9 @@ #!/bin/bash -declare packages=( - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/v3.14/main/mips64/musl-1.2.2-r3.apk' - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/v3.14/main/mips64/musl-dev-1.2.2-r3.apk' - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/v3.14/main/mips64/linux-headers-5.10.41-r0.apk' -) - declare extra_configure_flags='--with-arch=mips3 --with-tune=mips64 --with-mips-plt --with-float=soft --with-abi=64' declare triplet='mips64-unknown-linux-musl' declare ld='ld-musl-mips64-sf.so.1' -declare sysroot='https://web.archive.org/web/0if_/https://dl-cdn.alpinelinux.org/alpine/v3.14/releases/mips64/alpine-minirootfs-3.14.2-mips64.tar.gz' - declare os='alpine' diff --git a/mipsel-unknown-linux-musl.sh b/mipsel-unknown-linux-musl.sh new file mode 100644 index 0000000..bf7ba45 --- /dev/null +++ b/mipsel-unknown-linux-musl.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +declare extra_configure_flags='' + +declare triplet='mipsel-unknown-linux-musl' + +declare ld='ld-musl-mips.so.1' + +declare os='sabotage' diff --git a/patches/0001-Revert-gold-Use-char16_t-char32_t-instead-of-uint16_.patch b/patches/0001-Revert-gold-Use-char16_t-char32_t-instead-of-uint16_.patch new file mode 100644 index 0000000..9a850ab --- /dev/null +++ b/patches/0001-Revert-gold-Use-char16_t-char32_t-instead-of-uint16_.patch @@ -0,0 +1,77 @@ +From c5fcba3bc2b47e1061e066deac04efbbdb53362d Mon Sep 17 00:00:00 2001 +From: Kartatz <105828205+Kartatz@users.noreply.github.com> +Date: Wed, 8 May 2024 07:04:54 +0200 +Subject: [PATCH] Revert "gold: Use char16_t, char32_t instead of uint16_t, + uint32_t as character types" + +This reverts commit 5e9091dab8858b25210a91d22fbbbfdee9c969ad. +--- +diff --git a/gold/merge.cc b/gold/merge.cc +index ca15149c767..55de3013a1b 100644 +--- a/gold/merge.cc ++++ b/gold/merge.cc +@@ -665,10 +665,10 @@ template + class Output_merge_string; + + template +-class Output_merge_string; ++class Output_merge_string; + + template +-class Output_merge_string; ++class Output_merge_string; + + #if defined(HAVE_TARGET_32_LITTLE) || defined(HAVE_TARGET_32_BIG) + template +diff --git a/gold/output.cc b/gold/output.cc +index ead67f20363..3375d322506 100644 +--- a/gold/output.cc ++++ b/gold/output.cc +@@ -29,7 +29,6 @@ + #include + #include + #include +-#include + + #ifdef HAVE_SYS_MMAN_H + #include +@@ -2707,10 +2706,10 @@ Output_section::add_merge_input_section(Relobj* object, unsigned int shndx, + pomb = new Output_merge_string(addralign); + break; + case 2: +- pomb = new Output_merge_string(addralign); ++ pomb = new Output_merge_string(addralign); + break; + case 4: +- pomb = new Output_merge_string(addralign); ++ pomb = new Output_merge_string(addralign); + break; + default: + return false; +diff --git a/gold/stringpool.cc b/gold/stringpool.cc +index d8f38cfabc1..2e4a746d1a8 100644 +--- a/gold/stringpool.cc ++++ b/gold/stringpool.cc +@@ -25,7 +25,6 @@ + #include + #include + #include +-#include + + #include "output.h" + #include "parameters.h" +@@ -528,9 +527,9 @@ template + class Stringpool_template; + + template +-class Stringpool_template; ++class Stringpool_template; + + template +-class Stringpool_template; ++class Stringpool_template; + + } // End namespace gold. +-- +2.36.6 + diff --git a/powerpc-unknown-linux-musl.sh b/powerpc-unknown-linux-musl.sh new file mode 100644 index 0000000..434e90d --- /dev/null +++ b/powerpc-unknown-linux-musl.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +declare extra_configure_flags='' + +declare triplet='powerpc-unknown-linux-musl' + +declare ld='ld-musl-powerpc.so.1' + +declare os='sabotage' diff --git a/powerpc64le-unknown-linux-musl.sh b/powerpc64le-unknown-linux-musl.sh index 5bebf03..d1e1c40 100644 --- a/powerpc64le-unknown-linux-musl.sh +++ b/powerpc64le-unknown-linux-musl.sh @@ -1,17 +1,9 @@ #!/bin/bash -declare packages=( - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/edge/main/ppc64le/musl-1.2.4-r0.apk' - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/edge/main/ppc64le/musl-dev-1.2.4-r0.apk' - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/edge/main/ppc64le/linux-headers-6.3-r0.apk' -) - declare extra_configure_flags='--with-abi=elfv2' declare triplet='powerpc64le-unknown-linux-musl' declare ld='ld-musl-powerpc64le.so.1' -declare sysroot='https://web.archive.org/web/0if_/https://dl-cdn.alpinelinux.org/alpine/edge/releases/ppc64le/alpine-minirootfs-3.10.0-ppc64le.tar.gz' - declare os='alpine' diff --git a/riscv64-unknown-linux-musl.sh b/riscv64-unknown-linux-musl.sh index 39cf03c..8e68cd0 100644 --- a/riscv64-unknown-linux-musl.sh +++ b/riscv64-unknown-linux-musl.sh @@ -1,17 +1,9 @@ #!/bin/bash -declare packages=( - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/edge/main/riscv64/musl-1.2.4-r0.apk' - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/edge/main/riscv64/musl-dev-1.2.4-r0.apk' - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/edge/main/riscv64/linux-headers-6.3-r0.apk' -) - declare extra_configure_flags='--with-arch=rv64gc --with-abi=lp64d' declare triplet='riscv64-unknown-linux-musl' declare ld='ld-musl-riscv64.so.1' -declare sysroot='https://web.archive.org/web/0if_/https://dl-cdn.alpinelinux.org/alpine/edge/releases/riscv64/alpine-minirootfs-3.17.0-riscv64.tar.gz' - declare os='alpine' diff --git a/s390x-unknown-linux-musl.sh b/s390x-unknown-linux-musl.sh index d8a989b..75dbaf6 100644 --- a/s390x-unknown-linux-musl.sh +++ b/s390x-unknown-linux-musl.sh @@ -1,17 +1,9 @@ #!/bin/bash -declare packages=( - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/edge/main/s390x/musl-1.2.4-r0.apk' - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/edge/main/s390x/musl-dev-1.2.4-r0.apk' - 'https://web.archive.org/web/0if_/https://dl-3.alpinelinux.org/alpine/edge/main/s390x/linux-headers-6.3-r0.apk' -) - declare extra_configure_flags='--with-arch=z196 --with-tune=zEC12 --with-zarch' declare triplet='s390x-unknown-linux-musl' declare ld='ld-musl-s390x.so.1' -declare sysroot='https://web.archive.org/web/0if_/https://dl-cdn.alpinelinux.org/alpine/edge/releases/s390x/alpine-minirootfs-3.17.0-s390x.tar.gz' - declare os='alpine' diff --git a/submodules/obggcc b/submodules/obggcc index 0820ee6..d411590 160000 --- a/submodules/obggcc +++ b/submodules/obggcc @@ -1 +1 @@ -Subproject commit 0820ee6a030d2d5b0d16dfc87eff7ad4b3310cfa +Subproject commit d411590b5ac8898180b9bfa805c11f56d907b755 diff --git a/x86_64-unknown-linux-musl.sh b/x86_64-unknown-linux-musl.sh index c80f61c..036e647 100644 --- a/x86_64-unknown-linux-musl.sh +++ b/x86_64-unknown-linux-musl.sh @@ -1,18 +1,9 @@ #!/bin/bash -declare packages=( - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/musl/musl-1.1.24_17.x86_64-musl.xbps' - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/musl/musl-devel-1.1.24_17.x86_64-musl.xbps' - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/kernel-libc-headers-5.10.4_1.x86_64.xbps' - 'https://web.archive.org/web/0if_/https://alpha.de.repo.voidlinux.org/current/musl/libexecinfo-devel-1.1_3.x86_64-musl.xbps' -) - declare extra_configure_flags='' declare triplet='x86_64-unknown-linux-musl' declare ld='ld-musl-x86_64.so.1' -declare sysroot='https://web.archive.org/web/0if_/https://repo-default.voidlinux.org/live/current/void-x86_64-musl-ROOTFS-20230628.tar.xz' - declare os='void'