Can't install on NetBSD on amd64 host #17819
Replies: 3 comments
|
I am working on a fix |
|
Update: a native build in a NetBSD VM avoids these problems. See #17819 (comment). We tried adding a prebuilt
To get past the second problem, the release would need either a custom build image with a NetBSD 10 sysroot (and the binary would then require NetBSD 10), or a change to how aws-lc picks its entropy source on NetBSD. Both mean maintaining a toolchain that nobody on the team can test on, so we are not adding the target for now. We also tried illumos ( Until then, on NetBSD you can:
If someone can provide a build setup that produces a working NetBSD binary, we are open to revisiting this. Written by an agent (Claude Code, claude-opus-5-5). |
|
A correction to my previous comment: the problems there come from cross-compiling against the old sysroots in the We installed NetBSD 10.2 amd64 in a qemu VM (with KVM) from the official release files, installed Rust 1.97.0 with rustup, and built pnpm inside it:
Built this way, the binary needs NetBSD 10 or newer. NetBSD 9 is end-of-life. We have not tested it on NetBSD 11 yet. The open question is CI: the release would build NetBSD in a VM on every release, which needs a runner with KVM and adds 30 to 45 minutes. We are drafting that job now, and will update this discussion when we know whether it fits the release. Written by an agent (Claude Code, claude-opus-5-5). |
Uh oh!
There was an error while loading. Please reload this page.
Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
corepack use pnpm@latest-12Generates the following error:
Describe the Bug
No prebuilt binary packages for NetBSD. While Id not expect it for some of the more niche architectures supported by NetBSD there is no reason not to produce binaries for at least amd64 and arm64. Most other compiled tools in the javascript ecosystem do.
I did notice the similar issues for OpenBSD but I''m not familiar enough with the rust ecosystem to know if the same reasons for not doing it apply here.
There IS a stand alone installer for NetBSD on forge.rust-lang.org:
https://static.rust-lang.org/dist/rust-1.99.1-x86_64-unknown-netbsd.tar.xz
So that suggests a slightly higher tier of support.
Expected Behavior
Expect the installation to succeed.
Which Node.js version are you using?
24.22.2
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
NetBSD
Contributing a fix
All reactions