Avoiding indirect linkage issues #5368
Replies: 3 comments 8 replies
-
Very few projects do static linking in Homebrew since it's actively discouraged. Your usage of |
Beta Was this translation helpful? Give feedback.
-
i came across this same error / warning with the homebrew-freecad tap this afternoon (snippets & links below). however the build process from test-bot still seemed to continue and upload a bottle'd artifact. so not sure if these are just warnings or if it will cause the app to crash at runtime, as i haven't tested the bottle'd artifact manually but the tests via the ci seemed to pass. interestingly enough the indirect linkage is described as both a warning and failure so not sure of the severity here 🤷♂️
snippet grabbed from the above link.
after your ci run went through test-bot step. did the workflow / run still manage to upload a bottle'd artifact for your repo / tap? |
Beta Was this translation helpful? Give feedback.
-
for reference / posterity purposes, snippet copied from the raw logs. https://github.com/Macaulay2/homebrew-tap/actions/runs/9087675907/job/24975839771#step:8:42397
|
Beta Was this translation helpful? Give feedback.
-
Description of issue
I have a formula on a tap that builds a rather large project using CMake. I'm wondering if anyone with experience using CMake and Homebrew could help me fix the following indirect linkage issue, or point me to other projects that use CMake and depend on
libomp
:(The specific pull request that resulted on this is here.)
Surely there's a way to statically link libomp, icu4c, and gcc, but I can't figure out how.
Beta Was this translation helpful? Give feedback.
All reactions