Skip to content

Conversation

@thatportugueseguy
Copy link

@thatportugueseguy thatportugueseguy commented Mar 7, 2025

on macos arm64 architectures, homebrew doesn't automatically link the include files and libraries automatically. Before it pointed to the installation path of /usr/local, but it doesn't anymore.

This creates a situation where building some packages fail on these architectures because the compiler can't find the expected include files. Eg ci build in arm64 vs intel.

I'm not sure this is the way maintainers expect to fix this situation, but I think this is a good place to do it. I imagine that trying to fix this inside the homebrew ecosystem would be a big task, and googling a bit, it seems that other programming languages ecosystems with the same issues didn't fix it at the homebrew level too.

This change was triggered by this comment, and by the personal experience of having to fix this on my machine too.

The downside I can see for this approach is that some packages might pass on ocaml CI, but then fail on the user's machines, but I think it's then up to them to look into how to fix it, or ask in discuss.ocaml.org

I don't know how to test these changes and would appreciate some guidance or help.

Please advise if this isn't the way to fix the situation, so that we can try to fix this, as it would be good for quite some packages, i'd say

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant