-
Notifications
You must be signed in to change notification settings - Fork 8
Tigerbeetle probably needs to run latest version of Zig (0.10.0) #43
Description
Hello, I am using MacOS Ventura 13 and Zig version lower than 0.10.0 'panics' as discussed in thread ziglang/zig#10478.
Looks like tigerbeetle-node should run this newer version of Zig in order to have working packages on Ventura 13.
The issue is happening when I try to run pnpm i.
The stack trace:
Scope: all 7 workspace projects
Lockfile is up to date, resolution step is skipped
Packages: +1646
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1646, reused 1630, downloaded 0, added 0, done
node_modules/.pnpm/tigerbeetle-node@0.10.0/node_modules/tigerbeetle-node: Running postinstall script, failed in 9s
.../node_modules/tigerbeetle-node postinstall$ npm run install_zig && npm run download_node_headers && npm run build_lib
│ > tigerbeetle-node@0.10.0 install_zig
│ > ./src/tigerbeetle/scripts/install_zig.sh
│ Installing Zig 0.9.1 release build...
│ Downloading https://ziglang.org/download/0.9.1/zig-macos-aarch64-0.9.1.tar.xz...
│ Extracting zig-macos-aarch64-0.9.1.tar.xz...
│ Installing zig-macos-aarch64-0.9.1 to 'zig' in current working directory...
│ Congratulations, you have successfully installed Zig 0.9.1 to /Users/timeanagy/Documents/rafiki/node_modules/.pnpm/tigerbeetle-node@0.10.0/node_modules/tigerbeetl
│ > tigerbeetle-node@0.10.0 download_node_headers
│ > ./scripts/download_node_headers.sh
│ Downloading https://nodejs.org/download/release/v16.18.0/node-v16.18.0-headers.tar.gz...
│ Extracting ./build/node-v16.18.0-headers.tar.gz...
│ > tigerbeetle-node@0.10.0 build_lib
│ > mkdir -p dist && zig/zig build-lib -mcpu=baseline -OReleaseSafe -dynamic -lc -isystem build/node-$(node --version)/include/node src/node.zig -fallow-shlib-undef
│ thread 403088 panic: Darwin is handled separately via std.zig.system.darwin module
│ Unable to dump stack trace: debug info stripped
│ sh: line 1: 55468 Abort trap: 6 zig/zig build-lib -mcpu=baseline -OReleaseSafe -dynamic -lc -isystem build/node-$(node --version)/include/node src/node.
└─ Failed in 9s