Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add linux arm support for node.js #19028

Closed
willuhmjs opened this issue Jan 6, 2024 · 3 comments
Closed

[Feature Request] Add linux arm support for node.js #19028

willuhmjs opened this issue Jan 6, 2024 · 3 comments
Labels
feature request request for unsupported feature or enhancement

Comments

@willuhmjs
Copy link

willuhmjs commented Jan 6, 2024

Describe the feature request

According to the website, Linux + JS + arm64 is not possible. Even if I generate the bindings, there are many errors when trying to generate a dist in ./js/node. @fs-eire is the maintainer.

Describe scenario use case

Raspberry Pi 4 Node.js application.

@willuhmjs willuhmjs added the feature request request for unsupported feature or enhancement label Jan 6, 2024
@fs-eire
Copy link
Contributor

fs-eire commented Jan 9, 2024

We do have a Linux ARM64 support which takes dependency on glibc. It may be loaded when using linux/arm64.

please check if the nodejs print "arm64" and "linux" for

node -p "process.arch"
node -p "process.platform"

@willuhmjs
Copy link
Author

We do have a Linux ARM64 support which takes dependency on glibc. It may be loaded when using linux/arm64.

please check if the nodejs print "arm64" and "linux" for

node -p "process.arch"
node -p "process.platform"

I get arm and linux, respectively. My uname -a output is Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux, indicating aarch64.

@willuhmjs
Copy link
Author

willuhmjs commented Jan 10, 2024

It appears that it's looking for the ./bin/napi-v3/linux/arm/, which doesn't exist. Since it's dynamically generating it using process.arch, it's using the incorrect arm reading instead of arm64. I reinstalled Raspberry Pi OS Bookworm and now it returns arm64. Problem solved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request request for unsupported feature or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants