Skip to content

Conversation

@tstellar
Copy link
Collaborator

The flang build was taking 2-3 hours and causing the entire job to timeout, so we need to disable it.

The flang build was taking 2-3 hours and causing the entire job to
timeout, so we need to disable it.
@llvmbot
Copy link
Member

llvmbot commented Feb 14, 2025

@llvm/pr-subscribers-github-workflow

Author: Tom Stellard (tstellar)

Changes

The flang build was taking 2-3 hours and causing the entire job to timeout, so we need to disable it.


Full diff: https://github.com/llvm/llvm-project/pull/127216.diff

1 Files Affected:

  • (modified) .github/workflows/release-binaries.yml (+5)
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index 398734c1a366d..64d59a5a6449d 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -138,6 +138,11 @@ jobs:
             arches=arm64
           else
             arches=x86_64
+            # Disable Flang builds on macOS x86_64.  The FortranLower library takes
+            # 2-3 hours to build on macOS, much slower than on Linux.
+            # The long build time causes the release build to time out on x86_64,
+            # so we need to disable flang there.
+            target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_PROJECTS='clang;lld;lldb;clang-tools-extra;bolt;polly;mlir'"
           fi
           target_cmake_flags="$target_cmake_flags -DBOOTSTRAP_BOOTSTRAP_DARWIN_osx_ARCHS=$arches -DBOOTSTRAP_BOOTSTRAP_DARWIN_osx_BUILTIN_ARCHS=$arches"
         fi

Copy link
Contributor

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I'm wondering if compiling just uses too much RAM and it goes to swap?

@tstellar
Copy link
Collaborator Author

LGTM.

I'm wondering if compiling just uses too much RAM and it goes to swap?

It could be, the large X86_64 mac runners have a low RAM/CPU ratio: 30/12. The Linux runners are 64/16 and it builds fine there. Maybe I need to try to get this working again: #95672

@tstellar tstellar added this to the LLVM 20.X Release milestone Feb 20, 2025
@tstellar tstellar merged commit 3e5ae57 into llvm:main Feb 20, 2025
21 of 25 checks passed
@tstellar
Copy link
Collaborator Author

/cherry-pick 3e5ae57

@llvmbot
Copy link
Member

llvmbot commented Feb 20, 2025

/pull-request #127951

swift-ci pushed a commit to swiftlang/llvm-project that referenced this pull request Feb 20, 2025
The flang build was taking 2-3 hours and causing the entire job to
timeout, so we need to disable it.

(cherry picked from commit 3e5ae57)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants