From e66b019e4a1afcc8332fb2e66d798c55356614eb Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Tue, 21 Jan 2025 11:03:13 -0700 Subject: [PATCH 1/3] tc_build: binutils: Unconditionally disable gprofng This is broken with GCC 15, which is now in Fedora rawhide. We do not use this for the kernel, so just disable it unconditionally to fix the build. Signed-off-by: Nathan Chancellor --- tc_build/binutils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tc_build/binutils.py b/tc_build/binutils.py index 09eb98c7..95749d76 100644 --- a/tc_build/binutils.py +++ b/tc_build/binutils.py @@ -18,6 +18,7 @@ def __init__(self): self.configure_flags = [ '--disable-compressed-debug-sections', '--disable-gdb', + '--disable-gprofng', '--disable-nls', '--disable-werror', '--enable-deterministic-archives', @@ -27,9 +28,6 @@ def __init__(self): '--quiet', '--with-system-zlib', ] - # gprofng uses glibc APIs that might not be available on musl - if tc_build.utils.libc_is_musl(): - self.configure_flags.append('--disable-gprofng') self.configure_vars = { 'CC': 'gcc', 'CXX': 'g++', From 0debf5180f7d9c4b888722797da4296f79fa8125 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Tue, 21 Jan 2025 10:26:27 -0700 Subject: [PATCH 2/3] build-llvm.py: Update DEFAULT_KERNEL_FOR_PGO to 6.13.0 Signed-off-by: Nathan Chancellor --- build-llvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-llvm.py b/build-llvm.py index 5d043610..f9aa2425 100755 --- a/build-llvm.py +++ b/build-llvm.py @@ -17,7 +17,7 @@ GOOD_REVISION = '2ab9233f4f393c240c37ef092de09d907fe5c890' # The version of the Linux kernel that the script downloads if necessary -DEFAULT_KERNEL_FOR_PGO = (6, 12, 0) +DEFAULT_KERNEL_FOR_PGO = (6, 13, 0) parser = ArgumentParser(formatter_class=RawTextHelpFormatter) clone_options = parser.add_mutually_exclusive_group() From f1f5998d997adfa1ef382f0e0ad8ae86052666cd Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Tue, 21 Jan 2025 10:27:12 -0700 Subject: [PATCH 3/3] build-llvm.py: Update GOOD_REVISION to 5ce271ef74dd3325993c827f496e460ced41af11 Signed-off-by: Nathan Chancellor --- build-llvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-llvm.py b/build-llvm.py index f9aa2425..36da26e0 100755 --- a/build-llvm.py +++ b/build-llvm.py @@ -14,7 +14,7 @@ from tc_build.tools import HostTools, StageTools # This is a known good revision of LLVM for building the kernel -GOOD_REVISION = '2ab9233f4f393c240c37ef092de09d907fe5c890' +GOOD_REVISION = '5ce271ef74dd3325993c827f496e460ced41af11' # The version of the Linux kernel that the script downloads if necessary DEFAULT_KERNEL_FOR_PGO = (6, 13, 0)