Skip to content

Commit 51e3cca

Browse files
committed
CrostoolNG: Bump to v1.27.0
We bump to the latest stable version of CrosstoolNG so that we can build GCC v14 as our bootstrap GCC for all platforms, so as to make things easier when targeting `aarch64-apple-darwin`.
1 parent 92be0f8 commit 51e3cca

File tree

6 files changed

+229
-252
lines changed

6 files changed

+229
-252
lines changed

bootstrap/CrosstoolNG/build_tarballs.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ host_linux = Platform(arch(HostPlatform()), "linux")
55

66
build_tarballs(;
77
src_name = "CrosstoolNG",
8-
src_version = v"1.25.0",
8+
src_version = v"1.27.0",
99
sources = [
10-
ArchiveSource("https://github.com/crosstool-ng/crosstool-ng/releases/download/crosstool-ng-1.25.0/crosstool-ng-1.25.0.tar.xz",
11-
"68162f342243cd4189ed7c1f4e3bb1302caa3f2cbbf8331879bd01fe06c60cd3"),
10+
ArchiveSource("https://github.com/crosstool-ng/crosstool-ng/releases/download/crosstool-ng-1.27.0/crosstool-ng-1.27.0.tar.xz",
11+
"0506ab98fa0ad6d263a555feeb2c7fff9bc24a434635d4b0cdff9137fe5b4477"),
1212
DirectorySource(joinpath(@__DIR__, "./bundled")),
1313
],
1414
target_dependencies = [
@@ -57,6 +57,7 @@ build_tarballs(;
5757
# Build crosstool-ng
5858
# The extra CFLAGS here are because the `kconfig/` directory of `crosstool-ng` doesn't
5959
# pay attention to the actual location of `ncurses`, it just directly looks for `panel.h`
60+
./bootstrap
6061
CFLAGS="-I${includedir}/ncursesw" ./configure --prefix=${prefix}
6162
make -j${nproc} V=1
6263
make -j${nproc} install
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
commit 3b13c109e2f0050b002b0d2385898ca75773aed7
2+
Author: Elliot Saba <[email protected]>
3+
Date: Mon Apr 7 14:21:00 2025 +0000
4+
5+
Hack to get around `-Wint-conversion` errors when building with GCC 14
6+
7+
diff --git a/include/atomic.h b/include/atomic.h
8+
index 5a5319a582..779c08ade6 100644
9+
--- a/include/atomic.h
10+
+++ b/include/atomic.h
11+
@@ -71,13 +71,13 @@
12+
({ \
13+
int __atg2_result; \
14+
if (sizeof (*mem) == 1) \
15+
- __atg2_result = pre##_8_##post (mem, __VA_ARGS__); \
16+
+ __atg2_result = (int)pre##_8_##post (mem, __VA_ARGS__); \
17+
else if (sizeof (*mem) == 2) \
18+
- __atg2_result = pre##_16_##post (mem, __VA_ARGS__); \
19+
+ __atg2_result = (int)pre##_16_##post (mem, __VA_ARGS__); \
20+
else if (sizeof (*mem) == 4) \
21+
- __atg2_result = pre##_32_##post (mem, __VA_ARGS__); \
22+
+ __atg2_result = (int)pre##_32_##post (mem, __VA_ARGS__); \
23+
else if (sizeof (*mem) == 8) \
24+
- __atg2_result = pre##_64_##post (mem, __VA_ARGS__); \
25+
+ __atg2_result = (int)pre##_64_##post (mem, __VA_ARGS__); \
26+
else \
27+
abort (); \
28+
__atg2_result; \

bootstrap/CrosstoolNG/bundled/patches/glibc/2.19/0100-sunrpc_on_musl.patch

Lines changed: 0 additions & 22 deletions
This file was deleted.

bootstrap/CrosstoolNG/bundled/patches/glibc/2.19/0101-ppc64le_mtfsf.patch

Lines changed: 0 additions & 156 deletions
This file was deleted.

bootstrap/CrosstoolNG/bundled/patches/glibc/2.19/0102-make_v4.4_jobserver.patch

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)