Skip to content
Discussion options

You must be logged in to vote

This is a toolchain problem, not a source problem. The repo's macOS build only
compiles one Node-API addon (bin/system.node, the flock binding) with:

cc -std=c11 -O2 ... -bundle -undefined dynamic_lookup -mmacosx-version-min=11.0

(native/system/scripts/build.ts:61-71), and your stack trace's final line is the
script re-throwing the compiler failure at native/system/scripts/build.ts:82.
The real error is Apple's ld: tapi error: malformed file ... unknown architecture arm64e.x1-macos while parsing
/Library/Developer/CommandLineTools/SDKs/MacOSX27.0.sdk/usr/lib/libSystem.B.tbd.
Your Command Line Tools linker is too old to parse the .tbd shipped in the newer
SDK (the 27.x SDK carries arch ent…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by zhuyankun
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants