-
Notifications
You must be signed in to change notification settings - Fork 21
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
MacOS runners fail with clang versions 15-18 #237
Comments
That is a viable alternative solution than fixing the segmentation fault in https://github.com/cpp-linter/clang-tools-static-binaries in a short time. |
Right now macOS builds with clang versions are all success, but Linux builds are failed with versions 14-18. https://github.com/cpp-linter/clang-tools-static-binaries/actions/runs/9012842234 UPDATE: maybe the above runs take too long to reach time out, I will disable other builds and only build with version 14~18. |
I'm also noticing variations of the following warning in the CI logs:
This is related to the segmentation fault problems on Linux since a certain version of glibc is required to be present on the system (for a statically linked binary). |
Using the homebrew idea is not fool-proof. It doesn't provide all major version of LLVM that this action supports.
See this CI run for the various errors/warnings reported by homebrew. |
Apparently LLVM 15 is already installed on macos-latest runners. However, clang-tools-pip pkg fails to find the clang tools' binaries and installs the faulty static binary instead. |
So, let's create this issue in the clang-tools-pip project? |
A lot of suggestions on the internet recommend installing llvm from homebrew and manually sym-linking to the binary path
Apparently Mac OS comes with LLVM and clang installed but not any of the clang tools. Adding homebrew-installed LLVM to PATH is discouraged because of likely conflicts with system-installed LLVM. |
🎉 Manually sym-linking to homebrew-installed LLVM binaries indeed resolves this problem (for cpp-linter-action). See this PR's CI run The seg fault problem should still be addressed separately in the static-binaries builds though. |
Currently, if the MacOS runner does not have the requested
version
of clang tools installed, thencpp-linter/clang-tools-pip
will install statically compiled binaries. However, versions of clang-format v15-v18 are suffering a segmentation fault due to the static binaries used.full traceback from recent CI run
The only alternative installation approach that I can think of for MacOS is installing the full LLVM package via homebrew. Maybe there's a better solution though, I have not researched this thoroughly.
The text was updated successfully, but these errors were encountered: