Skip to content

spacemit_x60 compilation bug #25955

@jedisct1

Description

@jedisct1

Zig Version

0.16.0-dev.1245+2e8f8afc8

Steps to Reproduce and Observed Behavior

const std = @import("std");

pub fn main() !void {
    std.debug.print("Hello from RISC-V!\n", .{});
}
$ zig build-exe minimal_repro.zig -target riscv64-linux-musl -OReleaseSafe -mcpu=baseline 
$ ./minimal_repro
Hello from RISC-V!
$ zig build-exe minimal_repro.zig -target riscv64-linux-musl -OReleaseSafe -mcpu=spacemit_x60 
$ ./minimal_repro
Hello from �����

Expected Behavior

No data corruption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-riscv6464-bit RISC-Vbackend-llvmThe LLVM backend outputs an LLVM IR Module.bugObserved behavior contradicts documented or intended behaviorupstreamAn issue with a third party project that Zig uses.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions