|
ld: tapi error: malformed file Error: build: cc failed for bin/system.node |
Replies: 2 comments
|
This is a toolchain problem, not a source problem. The repo's macOS build only 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 Fix the toolchain (standard Apple steps — I cannot run macOS here, so this part
If you don't need the source tree build at all: the published npm packages ship |
|
This is a toolchain problem, not a source problem. The repo's macOS build only 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 Fix the toolchain (standard Apple steps — I cannot run macOS here, so this part
If you don't need the source tree build at all: the published npm packages ship |
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-macoswhile 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…