-
Notifications
You must be signed in to change notification settings - Fork 91
Install all dependencies on macOS using Homebrew #101
Conversation
I can also open a similar PR for intermezzOS/bare-bones, if you'd like? |
That line is no longer relevant, since Homebrew will install the x86_64-pc-elf toolchain to /usr/local/bin rather than to /Users/yourusername/opt/bin.
Well, the build broke, but I don't think it has anything to do with the changes in this PR – my Rust OS project's build broke on Travis with the same error. Looks like something changed upstream, maybe in |
Nice! @ashleygwilliams , maybe give this a try on your mac later to double check? @hawkw I agree the failures seem strange; I'll try to investigate soon. |
oh look https://users.rust-lang.org/t/compile-failures-with-1-15-0-nightly-2016-11-14/8032 TL;DR: rust-lang/rust#37786 will fix the build with the next nightly. |
cool- will take a look in a second! |
@ashleygwilliams thanks! I've got everything working on my machine, but of course that doesn't mean that it'll work everywhere – I'm eager to hear if it'll work for you, too. N.B. that if you're not installing from the |
Hey @hawkw , thanks again for this! Hoping to have some time for intermezzOS soon; it's been a busy few months. |
@steveklabnik, you're quote welcome! Do let me know if you hit any trouble. |
hey! just ran this on my mac, running
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd like to see a CI test for this, see also Travis Docs on OSX builds https://docs.travis-ci.com/user/osx-ci-environment/#Homebrew
@ashleygwilliams: there is a CI build set up for the |
https://docs.travis-ci.com/user/multi-os/#Example-Multi-OS-Build-Matrix is probably a better link; @hawkw , we were thinking about the intermezzOS build itself, not just the sub-components. We don't have any testing so far, so in my opinion, doing that here isn't required, but it'd be a good thing to have. I tried looking at your brew scripts and it wasn't obvious to me why it required the full XCode Tools... |
Oh, okay; I think I misunderstood what @ashleygwilliams meant. I'll see
about adding an OS X build to the PR.
As for the XCode requirement, if I recall correctly, it was about the only
way I could get Homebrew to use a version of gcc that could actually
compile Grub. There might be a better way, but I believe this was the only
way I could get it to work.
…On Sun, Jan 1, 2017 at 4:19 PM Steve Klabnik ***@***.***> wrote:
https://docs.travis-ci.com/user/multi-os/#Example-Multi-OS-Build-Matrix
is probably a better link; @hawkw <https://github.com/hawkw> , we were
thinking about the intermezzOS build itself, not just the sub-components.
We don't have any testing so far, so in my opinion, doing that here isn't
required, but it'd be a good thing to have.
I tried looking at your brew scripts and it wasn't obvious to me why it
required the full XCode Tools...
|
Okay, 02901a0 adds a macOS build to your The first macOS build will take within sigma of forever - building |
Ahhh this is great, thanks!
Ahh interesting, so I wonder if the issue here is that when we build our own gcc, we can build grub, but when we use homebrew's gcc, we can't. I wonder if there's someone we can ask about this.... |
@steveklabnik I suspect there might be another way to make Homebrew use a gcc that Grub's makefile doesn't balk at, but I don't know enough about Homebrew to make it work. Using Xcode's gcc is definitely not ideal, but it works for now... |
Two different people on twitter (one private) told me that setting |
So https://github.com/hawkw/homebrew-grub/blob/master/Formula/grub.rb#L25 is the line that requires it. You had said that
Do you remember the errors you got? Maybe we can fix them... |
@steveklabnik hmm, it was a while ago...there were a couple of checks in the configure script that were going wrong, depending on which CC it was getting - I don't remember precisely, sorry. |
The problem, as I remember it, is that "gcc" on the Mac is not unlike a box of chocolates...you never really know what you're gonna get. Stuff will claim to be Tomorrow, I'll see if I can extract anything useful from the formula's commit history? |
hawkw/homebrew-grub@c9c0cc2 removes the Xcode requirement to build |
guh. sorry that i am the worst and let this sit for over a year. I feel terrible. I'm trying to get back to a clean slate here, so sadly, i need to close this. I hope you got something out of this, sorry for failing you :( |
That's fine, don't worry about it --- I'm in more or less the same place with my hobby OS project. I think the homebrew taps are out of date anyway, but if you try using them again and have any issues, please let me know! |
Closes #53.
This PR adds a
Brewfile
which, when used with Homebrew'sbrew bundle
command, will install all the tools needed to build intermezzOS. I've also updated the documentation to match.