79804452

Date: 2025-10-30 06:46:05
Score: 2.5
Natty:
Report link

Humbly: I wrote a thing and the kernel (6.12) will compile on macOS.

brew install archie2x/cross-make-linux
brew install llvm lld
PATH="$(brew prefix llvm)/bin:$PATH"
cd linux
cross-make-linux [normal make arguments]

See https://github.com/archie2x/cross-make-linux
Basically same thing as Yuping Luo above and
https://seiya.me/blog/building-linux-on-macos-natively

There are at least three patches to linux to do this directly:
https://www.phoronix.com/news/Linux-Compile-On-macOS

https://www.phoronix.com/news/Building-Linux-Kernel-macOS-Hos

And Seiya (blog above) patch: https://github.com/starina-os/starina/blob/d095696115307e72eba9fe9682c2d837d3484bb0/linux/building-linux-on-macos.patch

I think that will just do it without cross-make-linux (haven't tested) though the tool will ensure you have gmake / gsed / gnu find, etc. etc.

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: archie2x