Skip to content
Discussion options

You must be logged in to vote

@Jenkins-J rspack doesn't publish pre-built binaries for ppc64le. the stub in binding.js is auto-generated by napi-rs for every architecture node.js might report, but rspack only builds for x86_64/aarch64 (check napi.targets in package.json).

you need to build the native binding from source. two approaches:

option A -- use the env var escape hatch (fastest path):

binding.js lines 67-69 check for NAPI_RS_NATIVE_LIBRARY_PATH before any platform detection:

if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
  return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
}

so build the .node file and point to it:

# install rust (ppc64le is tier 2, fully supported)
curl --proto '=https' --tlsv1.2 -sSf h…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@Jenkins-J
Comment options

@sunnypatell
Comment options

@sunnypatell
Comment options

@sunnypatell
Comment options

Answer selected by Jenkins-J
Comment options

You must be logged in to vote
1 reply
@sunnypatell
Comment options

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