gaytabasedysfun@treehouse.systems
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.
"i know, i will simply compile the new zig compiler".
spoiler: no, i won't. but not for lack of trying.
@dysfun what are you stuck on?
❯ ./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");
@dysfun have you tried the 0.17.x branch?
@vyivel yup, same problem
@dysfun works here. very strange
@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