[llvm] figure out why arm build is failing (PR #146580)
Amy Huang via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 11:01:14 PDT 2025
https://github.com/amykhuang updated https://github.com/llvm/llvm-project/pull/146580
>From aecd454286d28122629fb53f1ae7aa73b404ac8f Mon Sep 17 00:00:00 2001
From: Amy Huang <akhuang at google.com>
Date: Wed, 2 Jul 2025 10:37:58 -0700
Subject: [PATCH] figure out why fullbuild is failing
---
.ci/compute_projects.py | 2 +-
.ci/monolithic-linux.sh | 8 ++++-
.github/workflows/libc-fullbuild-tests.yml | 37 ++++++++++++++--------
.github/workflows/libc-overlay-tests.yml | 9 ++++--
4 files changed, 39 insertions(+), 17 deletions(-)
diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py
index c3cf714ce6c10..6a9d568cc7b6e 100644
--- a/.ci/compute_projects.py
+++ b/.ci/compute_projects.py
@@ -77,7 +77,7 @@
DEPENDENT_RUNTIMES_TO_TEST = {
"clang": {"compiler-rt"},
"clang-tools-extra": {"libc"},
- "libc": {"libc"},
+ "libc": {"libc", "compiler-rt"},
".ci": {"compiler-rt", "libc"},
}
DEPENDENT_RUNTIMES_TO_TEST_NEEDS_RECONFIG = {
diff --git a/.ci/monolithic-linux.sh b/.ci/monolithic-linux.sh
index 89447963b8528..445ef227c58e5 100755
--- a/.ci/monolithic-linux.sh
+++ b/.ci/monolithic-linux.sh
@@ -83,7 +83,13 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
-D MLIR_ENABLE_BINDINGS_PYTHON=ON \
-D LLDB_ENABLE_PYTHON=ON \
-D LLDB_ENFORCE_STRICT_TEST_REQUIREMENTS=ON \
- -D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}"
+ -D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
+ -D LLVM_LIBC_FULL_BUILD=ON \
+ -D LLVM_LIBC_INCLUDE_SCUDO=ON \
+ -D COMPILER_RT_BUILD_SCUDO_STANDALONE_WITH_LLVM_LIBC=ON \
+ -D COMPILER_RT_BUILD_GWP_ASAN=OFF \
+ -D COMPILER_RT_SCUDO_STANDALONE_BUILD_SHARED=OFF
+
echo "--- ninja"
# Targets are not escaped as they are passed as separate arguments.
diff --git a/.github/workflows/libc-fullbuild-tests.yml b/.github/workflows/libc-fullbuild-tests.yml
index 24d75f58d45e0..4bd38f198b145 100644
--- a/.github/workflows/libc-fullbuild-tests.yml
+++ b/.github/workflows/libc-fullbuild-tests.yml
@@ -15,22 +15,31 @@ 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
+ c_compiler: clang-20
+ cpp_compiler: clang++-20
+ target: x86_64-unknown-linux-llvm
+ include_scudo: ON
+ - os: ubuntu-24.04
+ build_type: MinSizeRel
+ ccache-variant: sccache
+ c_compiler: clang-20
+ cpp_compiler: clang++-20
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: clang-21
- cpp_compiler: clang++-21
+ c_compiler: clang-20
+ cpp_compiler: clang++-20
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
@@ -48,12 +57,12 @@ jobs:
# Prefer sccache as it is more modern.
# Do not use direct GHAC access even though it is supported by sccache. GHAC rejects
# frequent small object writes.
- - name: Setup ccache
- uses: hendrikmuhs/ccache-action at a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
- with:
- max-size: 1G
- key: libc_fullbuild_${{ matrix.c_compiler }}
- variant: ${{ matrix.ccache-variant }}
+# - name: Setup ccache
+# uses: hendrikmuhs/ccache-action at a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
+# with:
+# max-size: 1G
+# key: libc_fullbuild_${{ matrix.c_compiler }}
+# variant: ${{ matrix.ccache-variant }}
# Notice:
# - MPFR is required by some of the mathlib tests.
@@ -64,6 +73,7 @@ jobs:
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 21
+ sudo ./llvm.sh 20
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
@@ -77,6 +87,9 @@ jobs:
# Configure libc fullbuild with scudo.
# Use MinSizeRel to reduce the size of the build.
+ # -DCMAKE_C_COMPILER_LAUNCHER=${{ matrix.ccache-variant }} \
+ # -DCMAKE_CXX_COMPILER_LAUNCHER=${{ matrix.ccache-variant }} \
+
- name: Configure CMake
run: |
export RUNTIMES="libc"
@@ -94,8 +107,6 @@ jobs:
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
- -DCMAKE_C_COMPILER_LAUNCHER=${{ matrix.ccache-variant }} \
- -DCMAKE_CXX_COMPILER_LAUNCHER=${{ matrix.ccache-variant }} \
-DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.build-install-dir }} \
-DLLVM_RUNTIMES_TARGET=${{ matrix.target }} \
-DLLVM_ENABLE_RUNTIMES="$RUNTIMES" \
diff --git a/.github/workflows/libc-overlay-tests.yml b/.github/workflows/libc-overlay-tests.yml
index da82d8d9fe8ab..7947a22cf76e8 100644
--- a/.github/workflows/libc-overlay-tests.yml
+++ b/.github/workflows/libc-overlay-tests.yml
@@ -16,7 +16,8 @@ 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
- os: ubuntu-24.04
@@ -88,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.
@@ -110,7 +115,6 @@ jobs:
cmake
--build ${{ steps.strings.outputs.build-output-dir }}
--parallel
- --config MinSizeRel
--target libc
- name: Test
@@ -119,3 +123,4 @@ jobs:
--build ${{ steps.strings.outputs.build-output-dir }}
--parallel
--target check-libc
+ -- -v
More information about the llvm-commits
mailing list