gcc-toolchain icon indicating copy to clipboard operation
gcc-toolchain copied to clipboard

macOS/Windows support

Open Kernald opened this issue 3 years ago • 6 comments

Hello!

I was just wondering if you had any plans on supporting macOS and/or Windows in the future?

Kernald avatar Sep 26 '22 05:09 Kernald

@Kernald Thanks for reaching out. I will put your question on the agenda for our next team meeting.

cgrindel avatar Oct 03 '22 15:10 cgrindel

From https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/gcc.rb it seems like the toolchain for MacOS could be obtained via https://ftp.gnu.org/gnu/gcc/ and mirror at https://ftpmirror.gnu.org/gcc/

sluongng avatar Oct 04 '22 09:10 sluongng

I had plans to support macOS next, especially because we want to use it to do cross-compilation from macOS to Linux (cough cough containers).

@sluongng we already build GCC as part of building the custom sysroot in https://github.com/aspect-build/gcc-toolchain/blob/3365b1abbfbd2f8565147f80d3d9ba309478360e/sysroot/Dockerfile. I have plans to swap the bootlin toolchains by the ones we build there. This will pave the way to build GCC for macOS next and have the same workflow for providing the entire toolchain.

As for Windows, it's a much lower priority for us, so I don't see it getting any attention unless we see someone wanting to fund the effort.

f0rmiga avatar Oct 04 '22 20:10 f0rmiga

(sorry, closed by accident)

f0rmiga avatar Oct 04 '22 20:10 f0rmiga

Currently, working on a similar issue. What would it take to support MacOS?

Aarif123456 avatar Nov 17 '22 17:11 Aarif123456

I think it only makes sense to add macOS support if it also supports cross-compilation to Linux. We need to build the GCC toolchain for macOS and tweak some assumptions I made while developing this repo for Linux.

We could take a bounty for this feature as a medium-sized effort under https://opencollective.com/aspect-build/projects/gcc-toolchain.

f0rmiga avatar Nov 21 '22 23:11 f0rmiga