-
Notifications
You must be signed in to change notification settings - Fork 2
static binaries failed on macOS from version 15~18 #26
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
Comments
I was looking at what recently changed in the MacOS runners, and I found that XCode v15.4.0 was updated to a stable release (see this PR). Maybe there was some other change in the std lib that is included with XCode v15.4.0? EDIT: See XCode changelog here |
I don't understand why only versions 15~18 were affected not all versions on MacOS. maybe it is also related to the llvm-project source code from version 15 to 18? |
I'm not sure why the binaries are linked to a zstd library. Recently, the macos-14 image had bumped zstd from v1.5.5 to v1.5.6. |
maybe I can try to create a link for zstd lib
|
The wildcard might be better, but you'd have to recreate that symbol link on every Mac machine that uses the static binary. |
I skimmed the zstd lib's manual, and I found
I haven't checked the workflow to see if mac builds use |
use -DZSTD_STATIC_LINKING_ONLY=1 works 👍 |
From the test the following issue still occurs when running clang-format --version command, so I reopened this ticket. == Output clang-format version
dyld[3452]: Library not loaded: /usr/local/opt/zstd/lib/libzstd.1.dylib
Referenced from: <182FA4B3-05C4-32D1-B379-F93C1FA28DC0> /Users/runner/work/clang-tools-static-binaries/clang-tools-static-binaries/clang-format-15_macosx-amd64
Reason: tried: '/usr/local/opt/zstd/lib/libzstd.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/zstd/lib/libzstd.1.dylib' (no such file), '/usr/local/opt/zstd/lib/libzstd.1.dylib' (no such file), '/usr/local/lib/libzstd.1.dylib' (no such file), '/usr/lib/libzstd.1.dylib' (no such file, not in dyld cache)
/Users/runner/work/_temp/d23ec023-0cb7-410c-9fcd-8c17b55eae17.sh: line 5: 3452 Abort trap: 6 ./clang-format-15_macosx-amd64 --version
Error: Process completed with exit code 134. It's my bad, use |
Well, we haven't released the new builds yet. I don't think the current test CI uses pre-releases. So I think that error is just from running the last (erroneous) release's builds, specifically the release that github thinks is the "latest": https://github.com/cpp-linter/clang-tools-static-binaries/releases/latest.
|
Thank you for pointing out @2bndy5 I have added
|
Uh oh!
There was an error while loading. Please reload this page.
I tested the new pre-release master-a13caef5, the static binaries on macOS still has the problem from version 15~18.
More details please see the test job https://github.com/cpp-linter/clang-tools-static-binaries/actions/runs/9353719255/job/25744898037#step:3:40
Originally posted by @shenxianpeng in #16 (comment)
The text was updated successfully, but these errors were encountered: