Skip to content

llvm lld flang wasi-runtimes 21.1.0-rc3 (pre-release) #234231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

cho-m
Copy link
Member

@cho-m cho-m commented Aug 20, 2025

Trying out a pre-release run to see how many dependents are impacted. Can update to official release once available.

Planned LLVM 21.1.0 release date: Aug 26th

Formulae changes (beyond revision bump)

  • [llvm] drop pstl runtime - llvm/llvm-project@f8ed456
  • [llvm] reduce jobs to work around OOM error on arm64 linux runner
  • [flang] replace static with shared libraries on macOS
  • [flang] move post-installed symlink into bottle
  • [alive] also link to LLVM libc++ when building with LLVM clang due to std::__hash_memory availability in newer header llvm/llvm-project@17d0569
  • [castxml] backport LLVM 21 support
  • [ccls] backport LLVM 21 support
  • [mesa] add SDKROOT to work around "fatal error: 'stdio.h' file not found"
  • [spirv-headers] backport KhronosGroup/SPIRV-Headers@9e3836d

Rollups

TODO

@cho-m cho-m added pre-release Artifact is pre-release prerelease-testing Pull request from upstream, testing a pre-release with homebrew dependencies CI-linux-self-hosted Build on Linux self-hosted runner CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. long build Set a long timeout for formula testing CI-no-fail-fast-deps Continue dependent tests despite failing GitHub Actions matrix tests. long dependent tests Set a long timeout for dependent testing labels Aug 20, 2025
@github-actions github-actions bot added automerge-skip `brew pr-automerge` will skip this pull request alias labels Aug 20, 2025
@cho-m cho-m marked this pull request as draft August 20, 2025 19:23
@cho-m cho-m force-pushed the bump-llvm-21.1.0 branch from 7686bcd to 4e549da Compare August 20, 2025 19:28
@cho-m cho-m added the in progress Stale bot should stay away label Aug 20, 2025
@cho-m cho-m force-pushed the bump-llvm-21.1.0 branch from 4e549da to 18bf939 Compare August 21, 2025 19:50
@@ -6,8 +6,8 @@ class Llvm < Formula
head "https://github.com/llvm/llvm-project.git", branch: "main"

stable do
url "https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.8/llvm-project-20.1.8.src.tar.xz"
sha256 "6898f963c8e938981e6c4a302e83ec5beb4630147c7311183cf61069af16333d"
url "https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.0-rc3/llvm-project-21.1.0-rc3.src.tar.xz"
Copy link
Member Author

Choose a reason for hiding this comment

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

Hitting OOM on arm64 Linux. Will try reducing parallel jobs.

Copy link
Member Author

@cho-m cho-m Aug 22, 2025

Choose a reason for hiding this comment

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

Halving jobs (4 -> 2) worked. Though run now takes ~5 hours while llvm@20 took ~2 hours and x86_64 takes ~3 hours. Some things I may try while we still have time before official release:

  • Could try 3 jobs (make_jobs - 1) and hope that falls within memory limit.
  • The OOM run1 lasted 2.5 hours so I think it almost finished and died on linking? Some options:
    • -DLLVM_PARALLEL_LINK_JOBS=1 or -DLLVM_RAM_PER_LINK_JOB=10000 (from LLVM docs)?
    • Lower memory flags for GNU ld or trying gold (though latter is deprecated)

Footnotes

  1. https://github.com/Homebrew/homebrew-core/actions/runs/17137454147/job/48617143021

Copy link
Member Author

Choose a reason for hiding this comment

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

-DLLVM_RAM_PER_LINK_JOB=10000 (i.e. with 16GB runner then 1 link job) still hit OOM.

Will try 3 total jobs next and keep that if it works. If it fails, then will go back to 2 total jobs. Probably easier to tune this in a follow up PR.

@cho-m cho-m force-pushed the bump-llvm-21.1.0 branch 2 times, most recently from aa69faf to dca137c Compare August 22, 2025 06:11
@cho-m cho-m force-pushed the bump-llvm-21.1.0 branch from dca137c to 5624c28 Compare August 22, 2025 23:43
cho-m and others added 11 commits August 23, 2025 00:17
* drop pstl runtime - llvm/llvm-project@f8ed456
* reduce link jobs to work around OOM error on arm64 linux runner
* replace static with shared libraries on macOS
* move post-installed symlink into bottle
Also link to LLVM libc++ when building with LLVM clang due to
`std::__hash_memory` availability in newer header
llvm/llvm-project@17d0569
@cho-m cho-m force-pushed the bump-llvm-21.1.0 branch from 5624c28 to 206a0f8 Compare August 23, 2025 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alias automerge-skip `brew pr-automerge` will skip this pull request CI-linux-self-hosted Build on Linux self-hosted runner CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. CI-no-fail-fast-deps Continue dependent tests despite failing GitHub Actions matrix tests. in progress Stale bot should stay away long build Set a long timeout for formula testing long dependent tests Set a long timeout for dependent testing pre-release Artifact is pre-release prerelease-testing Pull request from upstream, testing a pre-release with homebrew dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants