Skip to content

Commit

Permalink
0_Rootfs: Add GCC 14 (#10132)
Browse files Browse the repository at this point in the history
* 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 <mose@gnu.org>
eschnett and giordano authored Jan 12, 2025
1 parent 61ec0b8 commit 76b7ef0
Showing 80 changed files with 408 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@ Date: Tue, 10 Nov 2020 14:55:25 +0100
Subject: [PATCH] [nfc] Fix missing include

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

diff --git a/llvm/utils/benchmark/src/benchmark_register.h b/llvm/utils/benchmark/src/benchmark_register.h
diff --git a/src/llvm/utils/benchmark/src/benchmark_register.h b/src/llvm/utils/benchmark/src/benchmark_register.h
index 0705e219f2fa2..4caa5ad4da079 100644
--- a/llvm/utils/benchmark/src/benchmark_register.h
+++ b/llvm/utils/benchmark/src/benchmark_register.h
--- a/src/llvm/utils/benchmark/src/benchmark_register.h
+++ b/src/llvm/utils/benchmark/src/benchmark_register.h
@@ -1,6 +1,7 @@
#ifndef BENCHMARK_REGISTER_H
#define BENCHMARK_REGISTER_H
2 changes: 2 additions & 0 deletions 0_RootFS/GCCBootstrap@14/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include("../gcc_common.jl")
build_and_upload_gcc(v"14.2.0")
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
From eb521cd67a69fdb0497feee5235e0f355a18d3c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mos=C3=A8=20Giordano?= <mose@gnu.org>
Date: Sat, 4 Jan 2025 01:48:23 +0100
Subject: [PATCH] Increase fallback min macOS version for libgcc to 10.8

`-mmacosx-version-min=10.5` seems to cause problems with ld64 from cctools
(https://github.com/JuliaPackaging/Yggdrasil/pull/10132#issuecomment-2569925646),
and in any case in Julia/BinaryBuilder we support macOS 10.12 at minimum.
---
libgcc/config.host | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libgcc/config.host b/libgcc/config.host
index e75a7af64..12aa05581 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -240,7 +240,7 @@ case ${host} in
tmake_file="t-darwin-min-8 $tmake_file"
;;
*-*-darwin9* | *-*-darwin1[0-7]*)
- tmake_file="t-darwin-min-5 $tmake_file"
+ tmake_file="t-darwin-min-8 $tmake_file"
;;
*-*-darwin[4-8]*)
tmake_file="t-darwin-min-1 $tmake_file"
@@ -248,8 +248,8 @@ case ${host} in
*)
# Fall back to configuring for the oldest system known to work with
# all archs and the current sources.
- tmake_file="t-darwin-min-5 $tmake_file"
- echo "Warning: libgcc configured to support macOS 10.5" 1>&2
+ tmake_file="t-darwin-min-8 $tmake_file"
+ echo "Warning: libgcc configured to support macOS 10.8" 1>&2
;;
esac
# We are not using libtool to build the libs here, so we need to replicate
--
2.31.0

Loading

0 comments on commit 76b7ef0

Please sign in to comment.