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

[ERROR] Node.js 20 on Debian buster armv7 fails to run #1772

Open
martinetd opened this issue Jan 30, 2024 · 1 comment
Open

[ERROR] Node.js 20 on Debian buster armv7 fails to run #1772

martinetd opened this issue Jan 30, 2024 · 1 comment
Labels

Comments

@martinetd
Copy link

martinetd commented Jan 30, 2024

Describe your bug

node 20 cannot start on arm debian bookworm because it depends on a too recent glibc

# nodejs
nodejs: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by nodejs)

Distribution Information:

  • OS: Debian
  • Version: Buster armhf
  • Other info if applicable: Can reproduce with docker.io/arm32v7/debian:buster

Node Version:

  • Node: Node.js v20.11.0-1nodesource1

To Reproduce
Steps to reproduce the behavior:

$  podman run --rm -ti docker.io/arm32v7/debian:buster
root@adccd71248c8:/# apt update && apt install -y curl ca-certificates gnupg
root@adccd71248c8:/# curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs 
root@adccd71248c8:/# nodejs
nodejs: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
root@adccd71248c8:/# apt install -y libatomic1
root@adccd71248c8:/# nodejs
nodejs: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by nodejs)

Note: the libatomic issue is identical to #1687 but can be worked around, the glibc issue cannot.

Expected behavior
The readme describes debian buster and nodejs 20 as supported, so nodejs should be runnable. nodejs 18 still runs on buster (after installing libatomic1), and nodejs 20 works on buster amd64

Additional context
While slightly different from #1687, I believe the issue would be resolved the same way: since a single repo serves the deb files for all versions of debian and ubuntu, the build host for the package needs to match the lowest denominator.

Checking the tables in the readme, the oldest supported releases are ubuntu focal (libc 2.31) and debian buster (libc 2.28), so buster should be used to build.
(I also checked the libatomic1 package is also present on ubuntu, so that will not be a problem and will automatically be resolved by such a switch)

Thank you!

@martinetd martinetd added the bug label Jan 30, 2024
@roe1974
Copy link

roe1974 commented Feb 20, 2024

Same problem here on Buster coming from nodejs 18.17.1 ....

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

No branches or pull requests

2 participants