electron / electron/rebuild

Prebuildify can't find libc specific modules for Linux

Open
#926 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.1k
Forks
181
Avg merge
6h 44m
Merged PRs (30d)
3

Description

For example, usb 1.9.1 contains the following prebuilds:

prebuilds/android-arm/node.napi.armv7.node
prebuilds/android-arm64/node.napi.armv8.node
prebuilds/darwin-x64+arm64/node.napi.node
prebuilds/linux-arm/node.napi.armv6.node
prebuilds/linux-arm/node.napi.armv7.node
prebuilds/linux-arm64/node.napi.armv8.node
prebuilds/linux-ia32/node.napi.node
prebuilds/linux-x64/node.napi.glibc.node
prebuilds/linux-x64/node.napi.musl.node
prebuilds/win32-ia32/node.napi.node
prebuilds/win32-x64/node.napi.node

Note that the linux-x64 prebuilds contain an extra glibc or musl specifier in the file name. I therefore receive this failure message:

  electron-rebuild Checking for prebuilds for "usb" +0ms
  electron-rebuild Could not locate ".../node_modules/usb/prebuilds/linux-x64/electron.napi.node", ".../node_modules/usb/prebuilds/linux-x64/node.napi.node", or ".../node_modules/usb/prebuilds/linux-x64/electron.abi85.node" +0ms

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the prebuild lookup that produces the reported electron-rebuild error, using the listed usb prebuild paths as the reproduction case. Determine how Linux x64 candidates are selected and consider the glibc and musl filename variants; done means the appropriate libc-specific module can be located.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, node.js, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.