Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Provide cross-compile tools through Homebrew #53

Closed
steveklabnik opened this issue Jun 21, 2016 · 10 comments · Fixed by #125
Closed

Provide cross-compile tools through Homebrew #53

steveklabnik opened this issue Jun 21, 2016 · 10 comments · Fixed by #125

Comments

@steveklabnik
Copy link
Member

https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Custom-GCC-and-cross-compilers.md

It would be super rad if we could provide a formula rather than just the install script.

@corincerami
Copy link

Considering how painful it is trying to get an environment set up for this, I agree entirely. I've struggled for hours on each machine I've tried to set up trying to get everything installed and configured.

@steveklabnik
Copy link
Member Author

@chrisccerami I don't have an OSX machine, so I can't do this. Have you ever done it? I wonder how hard it is.

@corincerami
Copy link

I haven't, but I do have an OSX machine. I can look into it at some point if no one else takes care of it first.

@WilsonGiese
Copy link
Contributor

I've installed on both OS X and Linux and didn't find it too troublesome. The instructions in the book worked well for me, only needing minor modification to the makefile when on OS X for ld. Is there anything in particular you have had issues with @chrisccerami?

I might look into setting up a formula; I've never created one before but might be a fun experience.

@ashleygwilliams ashleygwilliams changed the title Provide cross-compile tools through omebrew Provide cross-compile tools through Homebrew Sep 27, 2016
@steveklabnik
Copy link
Member Author

@hawkw
Copy link
Contributor

hawkw commented Nov 8, 2016

I've written brew formulae for installing the x86_64-pc-elf toolchains in hawkw/homebrew-x86_64-pc-elf – you may find them useful.

Do note that I've only just finished putting these together, so there may be some bugs that I've yet to work out.

EDIT: Should also mention that I'm working on formulae for objconv and grub as well, but haven't finished them yet.

@hawkw
Copy link
Contributor

hawkw commented Nov 11, 2016

Okay, I've tested my formulae on my machine, and everything seems to work correctly.

I've also opened a PR Homebrew/homebrew-core#6804 to add a formula for objconv to homebrew/core. Hopefully it'll be approved soon.

@hawkw
Copy link
Contributor

hawkw commented Nov 11, 2016

My PR for objconv was rejected from homebrew/core because the author of objconv doesn't provide versioned links for the source code; which is completely reasonable. I'm going to see about setting up a versioned mirror for objconv, but for now, I have a tap https://github.com/hawkw/homebrew-objconv/ that should work fine.

@steveklabnik, since you don't use Homebrew, would you like me to submit a PR for this issue?

@steveklabnik
Copy link
Member Author

Yes please!

@hawkw
Copy link
Contributor

hawkw commented Nov 15, 2016

Felt like I ought to mention as a brief update that I'm still working on this; I've hit some problems getting Homebrew to build grub but it should hopefully be done soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants