[llvm] figure out why arm build is failing (PR #146580)
Amy Huang via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 1 15:53:42 PDT 2025
https://github.com/amykhuang updated https://github.com/llvm/llvm-project/pull/146580
>From bc0f46b351e32dc44f8bf84ed80f593173eb48f0 Mon Sep 17 00:00:00 2001
From: Amy Huang <akhuang at google.com>
Date: Tue, 1 Jul 2025 10:53:10 -0700
Subject: [PATCH 1/7] figure out why arm build is failing
---
.github/workflows/libc-fullbuild-tests.yml | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/libc-fullbuild-tests.yml b/.github/workflows/libc-fullbuild-tests.yml
index 24d75f58d45e0..cac80c0f4ad3f 100644
--- a/.github/workflows/libc-fullbuild-tests.yml
+++ b/.github/workflows/libc-fullbuild-tests.yml
@@ -15,9 +15,16 @@ jobs:
strategy:
fail-fast: false
matrix:
- build_type: [Debug, Release, MinSizeRel]
include:
- os: ubuntu-24.04
+ build_type: Debug
+ ccache-variant: sccache
+ c_compiler: clang-21
+ cpp_compiler: clang++-21
+ target: x86_64-unknown-linux-llvm
+ include_scudo: ON
+ - os: ubuntu-24.04
+ build_type: MinSizeRel
ccache-variant: sccache
c_compiler: clang-21
cpp_compiler: clang++-21
@@ -25,12 +32,14 @@ jobs:
include_scudo: ON
# TODO: remove ccache logic when https://github.com/hendrikmuhs/ccache-action/issues/279 is resolved.
- os: ubuntu-24.04-arm
+ build_type: Debug
ccache-variant: ccache
c_compiler: clang-21
cpp_compiler: clang++-21
target: aarch64-unknown-linux-llvm
include_scudo: ON
- os: ubuntu-24.04
+ build_type: Debug
ccache-variant: ccache
c_compiler: clang-21
cpp_compiler: clang++-21
>From 33e2fcdc44fa4e35b1c9f20f074b28527ce2b547 Mon Sep 17 00:00:00 2001
From: Amy Huang <akhuang at google.com>
Date: Tue, 1 Jul 2025 11:09:44 -0700
Subject: [PATCH 2/7] more edits
---
.github/workflows/libc-overlay-tests.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/libc-overlay-tests.yml b/.github/workflows/libc-overlay-tests.yml
index da82d8d9fe8ab..b7814b2a6fe46 100644
--- a/.github/workflows/libc-overlay-tests.yml
+++ b/.github/workflows/libc-overlay-tests.yml
@@ -17,6 +17,7 @@ jobs:
fail-fast: false
matrix:
build_type: [Debug, Release, MinSizeRel]
+ os: [ubuntu-24.04,ubuntu-24.04-arm, windows-2022, windows-2025, macos-14]
include:
# TODO: add linux gcc when it is fixed
- os: ubuntu-24.04
@@ -119,3 +120,4 @@ jobs:
--build ${{ steps.strings.outputs.build-output-dir }}
--parallel
--target check-libc
+ -- -v
>From c208aa5310b06db0d17ffc2282e5ce538fed60e1 Mon Sep 17 00:00:00 2001
From: Amy Huang <akhuang at google.com>
Date: Tue, 1 Jul 2025 11:20:47 -0700
Subject: [PATCH 3/7] more edits
---
.github/workflows/libc-overlay-tests.yml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/workflows/libc-overlay-tests.yml b/.github/workflows/libc-overlay-tests.yml
index b7814b2a6fe46..19390dc4966c3 100644
--- a/.github/workflows/libc-overlay-tests.yml
+++ b/.github/workflows/libc-overlay-tests.yml
@@ -16,7 +16,7 @@ jobs:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations.
fail-fast: false
matrix:
- build_type: [Debug, Release, MinSizeRel]
+ build_type: [Debug]
os: [ubuntu-24.04,ubuntu-24.04-arm, windows-2022, windows-2025, macos-14]
include:
# TODO: add linux gcc when it is fixed
@@ -111,7 +111,6 @@ jobs:
cmake
--build ${{ steps.strings.outputs.build-output-dir }}
--parallel
- --config MinSizeRel
--target libc
- name: Test
>From 20768dca82ebd9d945e65de09a92e41fc255d0a7 Mon Sep 17 00:00:00 2001
From: Amy Huang <akhuang at google.com>
Date: Tue, 1 Jul 2025 11:29:59 -0700
Subject: [PATCH 4/7] test different clang version
---
.github/workflows/libc-fullbuild-tests.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/libc-fullbuild-tests.yml b/.github/workflows/libc-fullbuild-tests.yml
index cac80c0f4ad3f..e5458827e0af7 100644
--- a/.github/workflows/libc-fullbuild-tests.yml
+++ b/.github/workflows/libc-fullbuild-tests.yml
@@ -34,8 +34,8 @@ jobs:
- os: ubuntu-24.04-arm
build_type: Debug
ccache-variant: ccache
- c_compiler: clang-21
- cpp_compiler: clang++-21
+ c_compiler: /usr/bin/clang
+ cpp_compiler: /usr/bin/clang
target: aarch64-unknown-linux-llvm
include_scudo: ON
- os: ubuntu-24.04
>From eebe2bd291811d0087f2842a9f2dae4387674d16 Mon Sep 17 00:00:00 2001
From: Amy Huang <akhuang at google.com>
Date: Tue, 1 Jul 2025 13:31:43 -0700
Subject: [PATCH 5/7] testing
---
.github/workflows/libc-fullbuild-tests.yml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.github/workflows/libc-fullbuild-tests.yml b/.github/workflows/libc-fullbuild-tests.yml
index e5458827e0af7..275956868bfdf 100644
--- a/.github/workflows/libc-fullbuild-tests.yml
+++ b/.github/workflows/libc-fullbuild-tests.yml
@@ -113,6 +113,10 @@ jobs:
-S ${{ github.workspace }}/runtimes \
$CMAKE_FLAGS
+ - name: Check clang version
+ run: >
+ /usr/bin/clang++ --version
+
- name: Build
run: >
cmake
>From b744cf2a71eadbd86b482726eaa8a9d460809f44 Mon Sep 17 00:00:00 2001
From: Amy Huang <akhuang at google.com>
Date: Tue, 1 Jul 2025 13:56:56 -0700
Subject: [PATCH 6/7] testing
---
.github/workflows/libc-overlay-tests.yml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.github/workflows/libc-overlay-tests.yml b/.github/workflows/libc-overlay-tests.yml
index 19390dc4966c3..7947a22cf76e8 100644
--- a/.github/workflows/libc-overlay-tests.yml
+++ b/.github/workflows/libc-overlay-tests.yml
@@ -89,6 +89,10 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
+ - name: Check clang version
+ run: >
+ clang++ --version
+
# Use MinSizeRel to reduce the size of the build.
# Notice that CMP0141=NEW and MSVC_DEBUG_INFORMATION_FORMAT=Embedded are required
# by the sccache tool.
>From ec85729f4574c1bd105d5e25abdcdc9a5720a7c5 Mon Sep 17 00:00:00 2001
From: Amy Huang <akhuang at google.com>
Date: Tue, 1 Jul 2025 15:53:14 -0700
Subject: [PATCH 7/7] try clang 19
---
.github/workflows/libc-fullbuild-tests.yml | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/libc-fullbuild-tests.yml b/.github/workflows/libc-fullbuild-tests.yml
index 275956868bfdf..7dbfa2de4859f 100644
--- a/.github/workflows/libc-fullbuild-tests.yml
+++ b/.github/workflows/libc-fullbuild-tests.yml
@@ -19,23 +19,23 @@ jobs:
- os: ubuntu-24.04
build_type: Debug
ccache-variant: sccache
- c_compiler: clang-21
- cpp_compiler: clang++-21
+ c_compiler: clang-19
+ cpp_compiler: clang++-19
target: x86_64-unknown-linux-llvm
include_scudo: ON
- os: ubuntu-24.04
build_type: MinSizeRel
ccache-variant: sccache
- c_compiler: clang-21
- cpp_compiler: clang++-21
+ c_compiler: clang-19
+ cpp_compiler: clang++-19
target: x86_64-unknown-linux-llvm
include_scudo: ON
# TODO: remove ccache logic when https://github.com/hendrikmuhs/ccache-action/issues/279 is resolved.
- os: ubuntu-24.04-arm
build_type: Debug
ccache-variant: ccache
- c_compiler: /usr/bin/clang
- cpp_compiler: /usr/bin/clang
+ c_compiler: clang-19
+ cpp_compiler: clang++-19
target: aarch64-unknown-linux-llvm
include_scudo: ON
- os: ubuntu-24.04
@@ -73,6 +73,7 @@ jobs:
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 21
+ sudo ./llvm.sh 19
sudo apt-get update
sudo apt-get install -y libmpfr-dev libgmp-dev libmpc-dev ninja-build linux-libc-dev
sudo ln -sf /usr/include/$(uname -p)-linux-gnu/asm /usr/include/asm
More information about the llvm-commits
mailing list