Login
You're viewing the assemblag.es public feed.
  • Oct 15, 2026, 3:53 PM

    "i know, i will simply compile the new zig compiler".

    spoiler: no, i won't. but not for lack of trying.

    💬 1🔄 0⭐ 0

Replies

  • 💬 0🔄 0⭐ 0
  • Oct 15, 2026, 3:56 PM

    @lnl

    ❯ ./bootstrap 
    cc -o zig-wasm2c stage1/wasm2c.c -O2 -std=c99
    ./zig-wasm2c stage1/zig1.wasm zig1.c
    cc -o zig1 zig1.c stage1/wasi.c -std=c99 -Os -fno-strict-aliasing -lm
    ./zig1 lib build-exe -ofmt=c -lc -OReleaseSmall --name zig2 -femit-bin=zig2.c -target x86_64-linux --dep build_options -Mroot=src/main.zig -Mbuild_options=config.zig
    /lib/std/Target/generic.zig:1:1: error: unable to load 'generic.zig': FileNotFound
    /lib/std/Target.zig:780:29: note: file imported here
    pub const kalimba = @import("Target/generic.zig");
    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Oct 15, 2026, 4:39 PM

    @vyivel i'm using the bootstrap without llvm method because they don't seem to document what i'd have to pass to make it find llvm

    💬 0🔄 0⭐ 0