Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Tigerbeetle probably needs to run latest version of Zig (0.10.0) #43

Open
Tymmmy opened this issue Nov 3, 2022 · 5 comments
Open

Tigerbeetle probably needs to run latest version of Zig (0.10.0) #43

Tymmmy opened this issue Nov 3, 2022 · 5 comments

Comments

@Tymmmy
Copy link

Tymmmy commented Nov 3, 2022

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/[email protected]/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
│ > [email protected] 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/[email protected]/node_modules/tigerbeetl
│ > [email protected] 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...
│ > [email protected] 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

@Tymmmy Tymmmy changed the title Tigerbeetle probably needs to run latest version of Zig 0.10.0 Tigerbeetle probably needs to run latest version of Zig (0.10.0) Nov 3, 2022
@sentientwaffle
Copy link
Member

sentientwaffle commented Nov 3, 2022

Thanks for the heads-up! We plan to upgrade to 0.10 after a few remaining compiler bugs are resolved.

@mkurapov
Copy link

mkurapov commented Nov 3, 2022

Thanks for the reply @sentientwaffle - anything that can be done in the meantime?

@sentientwaffle
Copy link
Member

I'm not too familiar with Mac OS or the zig compiler internals, so I won't be much help there.
You could try running the current version within Docker, though.

@Tymmmy
Copy link
Author

Tymmmy commented Nov 4, 2022

Thanks @sentientwaffle, do you have an approx. idea on when the upgrade will be available? :)

@sentientwaffle
Copy link
Member

@Tymmmy probably soon after Zig 0.10.1 lands (whenever that is 😉) — we are blocked from upgrading by ziglang/zig#13017.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants