Skip to content

Compiler failure when cross-compiling for Plan9 OS #24101

@lgblgblgb

Description

@lgblgblgb

Zig Version

0.15.0-dev.703+597dd328e

Steps to Reproduce and Observed Behavior

I'm totally newcomer to Zig (thus I'm sorry for the possible stupid question). Since I like 9front/plan9 as well, I tried to cross compile a simple "hello world" for plan9 with this command line:

zig build-exe hello.zig -O ReleaseSmall -fstrip -fsingle-threaded -target x86_64-plan9

What I got:

thread 179634 panic: store: [direct:11]

Unable to dump stack trace: debug info stripped
Aborted (core dumped)

It's quite possible I am doing something wrong here - though I would then expect some kind of "less harmful" outcome than "panic". But again, I can be wrong here.

My source was this:

const std = @import("std");
pub fn main() void {
    std.debug.print("Hello!\n", .{});
}

Expected Behavior

An executable is created for Plan9 OS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-plan9Plan 9 from Bell Labs

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions