-
-
Notifications
You must be signed in to change notification settings - Fork 13k
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
base: main
Are you sure you want to change the base?
Conversation
7686bcd
to
4e549da
Compare
4e549da
to
18bf939
Compare
@@ -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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
aa69faf
to
dca137c
Compare
dca137c
to
5624c28
Compare
* 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
Add SDKROOT to work around "fatal error: 'stdio.h' file not found"
5624c28
to
206a0f8
Compare
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)
pstl
runtime - llvm/llvm-project@f8ed456std::__hash_memory
availability in newer header llvm/llvm-project@17d0569Rollups
TODO
llvm@20
andlld@20
- llvm@20 lld@20 20.1.8 (new formula) #234240llvm@20
#234396llvm@20
#234447llvm@20
#234432llvm@20
#234394flang
- update for runtime, switch to shared libs on macOSllvm
- OOM on arm64 linux