Skip to content

Commit 76b7ef0

Browse files
eschnettgiordano
andauthored
0_Rootfs: Add GCC 14 (#10132)
* 0_Rootfs: Add GCC 14 * GCC 14: Remove outdated patches * GCC 14: Build with binutils 2.43.1 * GCC 14: Update cctools * [GCC 14] Fix building newer cctools * [GCC 14] Add some version-based conditionals in the scripts * [GCC 14] Build newer libtapi * [GCC 14] Add patch to make building libgcc for macOS work * [GCC 14] Update libtapi to latest commit which includes our patch * [GCC 14] Simplify logic to set `LIB64` directory * [GCC 14] Fix glibc musl rejection patch * [GCC 14] Add comments about necessity to make backward-compatible changes * [GCC 14] Delete dummy `libc.so` in riscv64-linux-gnu build --------- Co-authored-by: Mosè Giordano <[email protected]>
1 parent 61ec0b8 commit 76b7ef0

File tree

80 files changed

+408
-41
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+408
-41
lines changed

0_RootFS/GCCBootstrap@12-IainS/bundled/patches/libtapi/libtapi-llvm-missing-include.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Date: Tue, 10 Nov 2020 14:55:25 +0100
44
Subject: [PATCH] [nfc] Fix missing include
55

66
---
7-
llvm/utils/benchmark/src/benchmark_register.h | 1 +
7+
src/llvm/utils/benchmark/src/benchmark_register.h | 1 +
88
1 file changed, 1 insertion(+)
99

10-
diff --git a/llvm/utils/benchmark/src/benchmark_register.h b/llvm/utils/benchmark/src/benchmark_register.h
10+
diff --git a/src/llvm/utils/benchmark/src/benchmark_register.h b/src/llvm/utils/benchmark/src/benchmark_register.h
1111
index 0705e219f2fa2..4caa5ad4da079 100644
12-
--- a/llvm/utils/benchmark/src/benchmark_register.h
13-
+++ b/llvm/utils/benchmark/src/benchmark_register.h
12+
--- a/src/llvm/utils/benchmark/src/benchmark_register.h
13+
+++ b/src/llvm/utils/benchmark/src/benchmark_register.h
1414
@@ -1,6 +1,7 @@
1515
#ifndef BENCHMARK_REGISTER_H
1616
#define BENCHMARK_REGISTER_H
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include("../gcc_common.jl")
2+
build_and_upload_gcc(v"14.2.0")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../GCCBootstrap@4/bundled/patches/binutils_deterministic_dlltool.patch
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../GCCBootstrap@4/bundled/patches/binutils_freebsd_symbol_versioning.patch
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../GCCBootstrap@12/bundled/patches/gcc/gcc1210-libcc1-musl-poisoned-calloc.patch
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../GCCBootstrap@12/bundled/patches/gcc/gcc1210_mingw_include.patch
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From eb521cd67a69fdb0497feee5235e0f355a18d3c1 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Mos=C3=A8=20Giordano?= <[email protected]>
3+
Date: Sat, 4 Jan 2025 01:48:23 +0100
4+
Subject: [PATCH] Increase fallback min macOS version for libgcc to 10.8
5+
6+
`-mmacosx-version-min=10.5` seems to cause problems with ld64 from cctools
7+
(https://github.com/JuliaPackaging/Yggdrasil/pull/10132#issuecomment-2569925646),
8+
and in any case in Julia/BinaryBuilder we support macOS 10.12 at minimum.
9+
---
10+
libgcc/config.host | 6 +++---
11+
1 file changed, 3 insertions(+), 3 deletions(-)
12+
13+
diff --git a/libgcc/config.host b/libgcc/config.host
14+
index e75a7af64..12aa05581 100644
15+
--- a/libgcc/config.host
16+
+++ b/libgcc/config.host
17+
@@ -240,7 +240,7 @@ case ${host} in
18+
tmake_file="t-darwin-min-8 $tmake_file"
19+
;;
20+
*-*-darwin9* | *-*-darwin1[0-7]*)
21+
- tmake_file="t-darwin-min-5 $tmake_file"
22+
+ tmake_file="t-darwin-min-8 $tmake_file"
23+
;;
24+
*-*-darwin[4-8]*)
25+
tmake_file="t-darwin-min-1 $tmake_file"
26+
@@ -248,8 +248,8 @@ case ${host} in
27+
*)
28+
# Fall back to configuring for the oldest system known to work with
29+
# all archs and the current sources.
30+
- tmake_file="t-darwin-min-5 $tmake_file"
31+
- echo "Warning: libgcc configured to support macOS 10.5" 1>&2
32+
+ tmake_file="t-darwin-min-8 $tmake_file"
33+
+ echo "Warning: libgcc configured to support macOS 10.8" 1>&2
34+
;;
35+
esac
36+
# We are not using libtool to build the libs here, so we need to replicate
37+
--
38+
2.31.0
39+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../GCCBootstrap@10/bundled/patches/gcc1020_revert-generic-morestack_c.patch
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../GCCBootstrap@4/bundled/patches/gcc485_triplet_prefixed_cxx_headers.patch
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../GCCBootstrap@5/bundled/patches/gcc520-libgomp-Don-t-hard-code-MS-printf-attributes.patch

0 commit comments

Comments
 (0)