klange / toaruos

A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
https://toaruos.org/
University of Illinois/NCSA Open Source License
6.13k stars 487 forks source link

Building on Mac OS X #136

Closed PoisonNinja closed 7 years ago

PoisonNinja commented 7 years ago

Building the toolchain using make toolchain fails currently. Some issues:

I can work on this and submit a pull request. I'll try not to break existing builds...

The python2 error can be ignored while building the toolchain.

PoisonNinja commented 7 years ago

Too many build issues, it's not worth pursuing this...

gil0mendes commented 7 years ago

Yup! Is really complicated adapt the build system to OS X, some time ago I suggested to convert the build system to scons but isn't a aim for the project.

PoisonNinja commented 7 years ago

Building the toolchain was pretty straightforward.

However, the following tools did not compile:

gil0mendes commented 7 years ago

For me, this is a very important issue... I don't like use virtual machines to build the OS, the current workflow is very hard for macOS users!

PoisonNinja commented 7 years ago

If you have Mac OS, you can try building the toochain. My fork contains the work that I did so far.

gil0mendes commented 7 years ago

Ok... I will try see that in the next days

PoisonNinja commented 7 years ago

In the end though, it's probably not worth it. Running QEMU in Mac is incredibly slow, due to the lack of KVM acceleration. Terminal is probably fine, but running the compositor slows QEMU down to a crawl.

gil0mendes commented 7 years ago

That's true, but you can use VirtualBox or similar... Now, there is a script for that (run-virtualbox.sh)

klange commented 7 years ago

Note that script relies on grub-mkrescue, which is probably not a fun thing to install on macOS. We could probably adapt the automated package installation for homebrew. As for why some other things aren't building, that's a tougher problem to tackle.

For the record, I have a Mac, but haven't really explored building the toolchain on it in a while.

Seems we have a guide for building GRUB2 on OS X on the OSDev wiki. That might be handy.

PoisonNinja commented 7 years ago

GRUB is actually pretty easy to build from source. It's just cross compiling things that's really hard.

On Dec 9, 2016 6:52 PM, "Kevin Lange" notifications@github.com wrote:

Note that script relies on grub-mkrescue, which is probably not a fun thing to install on macOS. We could probably adapt the automated package installation for homebrew. As for why some other things aren't building, that's a tougher problem to tackle.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/klange/toaruos/issues/136#issuecomment-266163541, or mute the thread https://github.com/notifications/unsubscribe-auth/AMKdXBefPKXsVS672UvSmLUK_OFzwDh9ks5rGfezgaJpZM4LJH0v .