haskell.nix icon indicating copy to clipboard operation
haskell.nix copied to clipboard

Support targeting linux-aarch64 from darwin with qemu-system

Open TravisWhitaker opened this issue 2 years ago • 1 comments

QEMU does not support user mode emulation on macOS, so the trick in https://github.com/input-output-hk/haskell.nix/blob/eb7e669d63c8a83a85ca38e7af1f8a545ffe17f3/overlays/linux-cross.nix won't work. However, it does support full system emulation. So why not take the emulated iserv madness to its logical conclusion and use system emulation to enable darwin-to-linux x86_64-to-aarch64 cross builds?

TravisWhitaker avatar Feb 10 '22 18:02 TravisWhitaker

The beauty of user-mode emulation is that we can use the file system transparently. Fundamentally full system emulation would be fun to do. It just lacks someone to implement it, and ensure that filesystem, ... is all mapped properly across.

The issue with TH is that you have process and filesystem access, so if you have a transparent file system, process (e.g. git) would likely work.

There is also noah which would be more akin to wine on darwin, but instead for windows, for linux. Transparently executing ELF.

angerman avatar Mar 12 '22 12:03 angerman

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 28 '22 14:09 stale[bot]