zig icon indicating copy to clipboard operation
zig copied to clipboard

haiku: get a cross-compiled compiler working

Open jacobly0 opened this issue 1 year ago • 1 comments

$ zig build -p haiku -Dno-lib -Dtarget=x86_64-haiku -Dcpu=x86_64_v2 --libc haiku.libc
~> ./zig build-obj hello.zig -target native-haiku
~> cc -o hello hello.o
~> ./hello
Hello, world!
  • bootstrap isn't working because single large allocations > 0x3f60e740 bytes fail, even though many allocations of that size succeed.
  • zig build-exe isn't working when not linked with llvm.
  • -target native-native isn't working because native abi/dynamic linker detection is failing.

Related #17123 Related #18828

jacobly0 avatar Mar 23 '24 10:03 jacobly0

Might be worth splitting ff7ca4b70fc411a9e1e3ba94a06333601a229e6e into its own PR if that'd mean it could get merged faster (see https://github.com/ziglang/zig/issues/19408)

squeek502 avatar Mar 23 '24 17:03 squeek502