-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
Link warnings for Homebrew release on compilation #2920
Comments
Confirmed here on OSX Mojave 10.14 as well. |
I think we should update our homebrew formula according to this doc: https://docs.brew.sh/Formula-Cookbook E.g. the bottle part is not required anymore as we are @ hombrew/core: https://www.rubydoc.info/github/Homebrew/brew/master/Formula#bottle-class_method |
Not sure what you mean about the bottle is not required. Without the bottle, then there is no pre-built binary. That means a much longer install time for the user. Without the bottle, homebrew is building from source, it's basically macports at that point. |
Ok, I was just comparing to other Formulas to try and find something that might have caused this weird linking issues and they were missing the bottle parts. Agreed i didnt understand the bottling in homebrew ( they have a nice metaphor game going). I am still unclear, what might cause the error, butnit can only be related to homebrew or that formula. |
I believe this is due to
We can either update the codebase to use |
FYSA, this is still broken in 0.26 from homebrew. |
Is this a Homebrew or Pony issue? Incidentally, you can work around this if it's annoying your nice and clean build pipeline.
Hey presto no annoying errors. Just a pain. |
Technically its a Pony issue in that we use -mmacosx-version-min=10.8 in our |
Once the file has been updated with the change above what tests and processes need to be executed before submitting a pull request? |
@SeanTAllen 10.8 is also hardcoded in genexe.c was this intentional? On line 289. If you change Makefile-ponyc and genexe.c the issue is resolved. |
Yes. Given how old 10.8 is at this point, changing to 10.9 seems reasonable. |
Cool, I've built it and used it. Works for me. Do I need to run tests and update changelog before submitting a pull request? |
Nice! You don't need to update the CHANGELOG. Tests will be run when you open the PR but I suggest running them locally first. Check out the "how to pull request" portion of our contributing docs. It includes some nice info about squashing, good commit messages etc. https://github.com/ponylang/ponyc/blob/master/CONTRIBUTING.md#pull-request |
So before proceeding with the change, I decided to try the same process on another mac. Mostly because we were dealing with a minimum settings flag which on these macs should not make a difference. Using So I am wondering if a clean, build and release would fix the issue. Especially given that not all the object files in the runtime file are being complained about. Still doesn't explain why my initial clean and build on the first machine didn't work without the code change to |
So I reverted to the original mac tried a Anyway, the issue was that there were object files in the Pony runtime compiled to a different minimum OSX version. So as it stands, if you have OSX version 10.9 or above the compiled objects, application or library, should have no substantial issues with this. If you run 10.8 you might. Apple only supports the last 3 OS versions. You can see this on their updates page. Although they don't directly come out and state it. They are up to 10.14, which means 10.11 and below are not supported 2018-Jan; except in the case of an upgrade to a supported version. https://support.apple.com/en-us/HT201222
|
@kiwiMec yes, please PR. next release isn't scheduled until around March 1st (unless a triggers release bug is fixed in the meantime). |
Pull request created. I ran |
Closing under the assumption this will be fixed on next release thanks to #2998. |
On the Homebrew release of ponyc, I get the following warnings when compiling any program:
Building ponyc from source removes the warnings. I'm running OSX Mojave 10.14.
The text was updated successfully, but these errors were encountered: