-
Notifications
You must be signed in to change notification settings - Fork 233
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
ci: use clang 18 from Homebrew on aarch64 #6153
Conversation
f1dc826
to
f98e923
Compare
Doesn't seem to like
|
Well, https://stackoverflow.com/questions/77017567/how-to-fix-code-to-avoid-warning-wunsafe-buffer-usage https://www.devgem.io/posts/how-to-address-the-wunsafe-buffer-usage-warning-in-clang It seems like it's a rather zealous warning, overzealous maybe even. The But short term, probably disable that warning, which comes from |
May also need |
ec60f01
to
67060ca
Compare
Okay, now only
I'll try to see if it's consistent across different hosts. |
It appears this issue is not specific to
https://ci.status.im/job/nimbus-eth2/job/platforms/job/macos/job/x86_64/job/PR-6153/10/console |
Also https://reviews.llvm.org/D153167 is the clang/LLVM change triggering this. WINE was hit too: https://bugs.winehq.org/show_bug.cgi?id=55863 |
The underlying issue doesn't seem to show up on anything but macOS aarch64, so one option might be to only use Homebrew clang 17 on that aarch64, not x86, macOS. |
Of course, just my luck to get edge cases like this. I wonder if it's all versions of LLVM 17 or if there's some specific minor release that isn't affected. If so we could try to target a specific one, we could do that with Nix instead of Brew, which would also be more effectively pinned. |
llvm/llvm-project@0b06727 which is the first commit here shows up in https://github.com/llvm/llvm-project/releases/tag/llvmorg-17.0.0-rc1 so probably it affects every version of LLVM 17. |
I'm cringing just thinking about it. What about going further to 18? |
Sure, why not |
It appears LLVM 18 is not yet available in Homebrew: |
I suspect clang 18 doesn't/won't compile BLST on macOS x86 for the same reason clang 17 doesn't. It doesn't seem like this is a clang 17 bug, but a new constraint they're checking for that target platform. There's still no externally visible evidence BLST is responding to/caring about this particular breakage, on their end, but a likely eventual resolution might be that BLST fixes this, |
You're right, it still fails even with LLVM 18 on
|
Not sure if `LDFLAGS` and `CPPFLAGS` are absolutely necessary but Brew docs recommend it. Depends on: status-im/infra-ci@67fafcb5 status-im/status-jenkins-lib#90 Signed-off-by: Jakub Sokołowski <jakub@status.im>
Not sure if
LDFLAGS
andCPPFLAGS
are absolutely necessary but Brew docs recommend it.Depends on:
infra-ci#67fafcb5
- ci-slave-macos: install llvm 17 for newer clang