-
-
Notifications
You must be signed in to change notification settings - Fork 672
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
Odin fails brew test
on Big Sur
#792
Comments
For reference,
Compiling this program produces this error:
|
Odin requires LLVM in order to work and it appears that LLVM is not being installed alongside Odin. I don't know who has set up the homebrew for Odin. |
Odin declares llvm as a dependency. You don't see it installed in the snippet I shared because I already have it installed and included in my ❯ brew info odin
odin: stable 0.13.0 (bottled), HEAD
Programming language with focus on simplicity, performance and modern systems
https://odin-lang.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/odin.rb
License: BSD-2-Clause
==> Dependencies
Required: llvm ✔
[snip] If you check the CI tests in the PR I linked, you'll see that |
Wait a minute... the problem appears to be |
I see. Well, for some reason, it is being called on Big Sur but not on earlier versions of macOS. |
You can’t add -lc in the macOS big sur version. |
I don't even see where |
Noted. I didn't add it. |
It’s bit added for macOS and the main reason is that it doesn’t work. There is no library for that anymore they moved that completely to System. So yeah should not be there and it also seems like it isn’t? Could be that this doesn’t include the fix? Not sure will look. |
Yeah it’s not in 13.0 but in current master it is correct. |
Homebrew can also apply a patch to 13.0 to get it working if the new version isn't going to be released soon. I don't use Odin, however, so it would help if someone here can provide one, ideally hosted on this repo. The llvm brew formula gives examples of upstream patches that have been applied to the version packaged by Homebrew: https://github.com/Homebrew/homebrew-core/blob/deda5a05551ab74d5313af112d3bb2054f9b6af8/Formula/llvm.rb#L12-L30 |
Thing is the patch would be inside of this repo itself. Just to fix that github changed there default macOS version. |
Yes, I understand that. Is there a specific commit on this repo that can be applied to 13.0? If not, then, if the patch is small, it can be added directly in the Homebrew formula (the Ruby file that determines how Odin is installed). If it isn't, then I can submit it to Homebrew/formula-patches for hosting until the next version of Odin is released. |
Should be 81398d2 i think. |
This comment has been minimized.
This comment has been minimized.
Patch doesn't apply cleanly, sadly.
|
Yeah i almost suspected that because it’s a merge and there where other changes. |
I see. Well, if you can come up with a single patch that can work (or even a series of commits that will), I'd be happy to fix the brew formula so that it'll work. Otherwise, I guess brew-packaged Odin may have to wait for the next release to work on Big Sur. |
I've opened a PR to backport the patch to work until the next version of |
Thanks, @Rylan12! |
Context
odin version
output:Expected Behavior
brew test odin
should succeed.Current Behavior
brew test odin
produces the following error:See Homebrew/homebrew-core#65223 (comment) for details.
Failure Information (for bugs)
Steps to Reproduce
Run the following commands in a terminal.
brew install odin
brew test odin
Failure Logs
test.01.odin.log
The text was updated successfully, but these errors were encountered: