Skip to content

Commit f5aa2f7

Browse files
committed
GCCBootstrap: Build GCC v14
We need to build GCC v14 instead of v9 because we are eventually going to build the "real" GCC v14 for all platforms, and we can't use too old of a GCC to build GCC v14.
1 parent 839b3dd commit f5aa2f7

File tree

2 files changed

+32
-27
lines changed

2 files changed

+32
-27
lines changed

bootstrap/GCCBootstrap/build_tarballs.jl

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,41 +46,43 @@ end
4646

4747
build_tarballs(;
4848
src_name = "GCCBootstrap",
49-
src_version = v"9.4.0",
49+
src_version = v"14.2.0",
5050
sources = [
5151
# crosstool-ng can download the files, but we'd rather download them ourselves
52-
FileSource("http://mirrors.kernel.org/gnu/gcc/gcc-9.4.0/gcc-9.4.0.tar.xz",
53-
"c95da32f440378d7751dd95533186f7fc05ceb4fb65eb5b85234e6299eb9838e"),
54-
FileSource("https://mirrors.kernel.org/gnu/mpfr/mpfr-4.1.0.tar.xz",
55-
"0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f"),
56-
FileSource("https://mirrors.kernel.org/gnu/mpc/mpc-1.2.1.tar.gz",
57-
"17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459"),
58-
FileSource("https://gcc.gnu.org/pub/gcc/infrastructure/isl-0.24.tar.bz2",
59-
"fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"),
60-
FileSource("https://mirrors.kernel.org/gnu/gmp/gmp-6.2.1.tar.xz",
61-
"fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2"),
52+
FileSource("http://mirrors.kernel.org/gnu/gcc/gcc-14.2.0/gcc-14.2.0.tar.xz",
53+
"a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9"),
54+
FileSource("https://mirrors.kernel.org/gnu/mpfr/mpfr-4.2.1.tar.xz",
55+
"277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2"),
56+
FileSource("https://mirrors.kernel.org/gnu/mpc/mpc-1.3.1.tar.gz",
57+
"ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8"),
58+
FileSource("https://libisl.sourceforge.io/isl-0.26.tar.xz",
59+
"a0b5cb06d24f9fa9e77b55fabbe9a3c94a336190345c2555f9915bb38e976504"),
60+
FileSource("https://mirrors.kernel.org/gnu/gmp/gmp-6.3.0.tar.xz",
61+
"a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898"),
6262
FileSource("http://mirrors.kernel.org/pub/linux/kernel/v4.x/linux-4.1.49.tar.xz",
6363
"ff2e0ea5c536650aef64447c3aaa49c1a25e8f1db4ec4f7da700d3176f512ba8"),
6464
FileSource("https://mirrors.kernel.org/gnu/glibc/glibc-2.17.tar.xz",
6565
"6914e337401e0e0ade23694e1b2c52a5f09e4eda3270c67e7c3ba93a89b5b23e"),
6666
FileSource("https://mirrors.kernel.org/gnu/glibc/glibc-2.19.tar.xz",
6767
"2d3997f588401ea095a0b27227b1d50cdfdd416236f6567b564549d3b46ea2a2"),
68-
FileSource("https://musl.libc.org/releases/musl-1.2.2.tar.gz",
69-
"9b969322012d796dc23dda27a35866034fa67d8fb67e0e2c45c913c3d43219dd"),
70-
FileSource("https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v9.0.0.tar.bz2",
71-
"1929b94b402f5ff4d7d37a9fe88daa9cc55515a6134805c104d1794ae22a4181"),
72-
FileSource("https://github.com/madler/zlib/archive/refs/tags/v1.2.12.tar.gz",
73-
"d8688496ea40fb61787500e863cc63c9afcbc524468cedeb478068924eb54932"; target="zlib-1.2.12.tar.gz"),
74-
FileSource("http://mirrors.kernel.org/gnu/ncurses/ncurses-6.2.tar.gz",
75-
"30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d"),
68+
FileSource("https://musl.libc.org/releases/musl-1.2.5.tar.gz",
69+
"a9a118bbe84d8764da0ea0d28b3ab3fae8477fc7e4085d90102b8596fc7c75e4"),
70+
FileSource("https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v12.0.0.tar.bz2",
71+
"cc41898aac4b6e8dd5cffd7331b9d9515b912df4420a3a612b5ea2955bbeed2f"),
72+
FileSource("https://github.com/madler/zlib/archive/refs/tags/v1.3.1.tar.gz",
73+
"17e88863f3600672ab49182f217281b6fc4d3c762bde361935e436a95214d05c"; target="zlib-1.3.1.tar.gz"),
74+
FileSource("https://github.com/facebook/zstd/releases/download/v1.5.6/zstd-1.5.6.tar.gz",
75+
"8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1"),
76+
FileSource("http://mirrors.kernel.org/gnu/ncurses/ncurses-6.4.tar.gz",
77+
"6931283d9ac87c5073f30b6290c4c75f21632bb4fc3603ac8100812bed248159"),
7678
FileSource("http://mirrors.kernel.org/gnu/libiconv/libiconv-1.16.tar.gz",
7779
"e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04"),
78-
FileSource("http://mirrors.kernel.org/gnu/gettext/gettext-0.21.tar.xz",
79-
"d20fcbb537e02dcf1383197ba05bd0734ef7bf5db06bdb241eb69b7d16b73192"),
80+
FileSource("http://mirrors.kernel.org/gnu/gettext/gettext-0.23.1.tar.xz",
81+
"c1f97a72a7385b7e71dd07b5fea6cdaf12c9b88b564976b23bd8c11857af2970"),
8082
FileSource("http://mirrors.kernel.org/gnu/binutils/binutils-2.29.1.tar.xz",
8183
"e7010a46969f9d3e53b650a518663f98a5dde3c3ae21b7d71e5e6803bc36b577"),
82-
FileSource("http://mirrors.kernel.org/gnu/binutils/binutils-2.38.tar.xz",
83-
"e316477a914f567eccc34d5d29785b8b0f5a10208d36bbacedcc39048ecfe024"),
84+
FileSource("http://mirrors.kernel.org/gnu/binutils/binutils-2.43.1.tar.xz",
85+
"13f74202a3c4c51118b797a39ea4200d3f6cfbe224da6d1d95bb938480132dfd"),
8486
DirectorySource(joinpath(@__DIR__, "./bundled"))
8587
],
8688
host_dependencies = [
@@ -90,7 +92,7 @@ build_tarballs(;
9092
host;
9193
uuid = Base.UUID("86569e53-7a4c-551c-9ab0-bc1131c15cd4"),
9294
repo = Pkg.Types.GitRepo(
93-
source="https://github.com/JuliaBinaryWrappers/CrosstoolNG_jll.jl",
95+
source="https://github.com/staticfloat/CrosstoolNG_jll.jl",
9496
rev="main",
9597
),
9698
),
@@ -102,6 +104,9 @@ build_tarballs(;
102104
# to make the point that this recipe does not require a functioning CToolchain.
103105
apt update && apt install -y build-essential || true
104106
107+
# We don't need the `LD_LIBRARY_PATH` that is set for the CSL libs
108+
unset LD_LIBRARY_PATH
109+
105110
# Generate the appropriate crosstool-ng config file for our current target
106111
${WORKSPACE}/srcdir/gen_config.sh > .config
107112

bootstrap/GCCBootstrap/bundled/gen_config.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ set -euo pipefail
66
cat <<-EOF
77
CT_CONFIG_VERSION=4
88
9-
# Always build GCC v9.X
10-
CT_GCC_V_9=y
9+
# Always build GCC v14.X
10+
CT_GCC_V_14=y
1111
1212
# Disable progress bar, it fills up our logs:
1313
CT_LOG_PROGRESS_BAR=n
@@ -127,7 +127,7 @@ case "${target}" in
127127
*mingw*)
128128
echo "CT_LIBC_MINGW_W64=y"
129129
echo "CT_THREADS_POSIX=y"
130-
echo "CT_MINGW_W64_V_V9_0=y"
130+
echo "CT_MINGW_W64_V_V12_0=y"
131131
;;
132132
*)
133133
echo "ERROR: Unhandled libc '${target}'" >&2

0 commit comments

Comments
 (0)