distributions icon indicating copy to clipboard operation
distributions copied to clipboard

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

Open martinetd opened this issue 1 year ago • 4 comments

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 avatar Jan 30 '24 22:01 martinetd

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

roe1974 avatar Feb 20 '24 14:02 roe1974

Dears... Your OS has reached it's End Of Life and nobody will implement a glibc for a dead horse.

Grothesk242 avatar May 27 '24 17:05 Grothesk242

So this Information is wrong ? Bildschirmfoto 2024-05-27 um 20 13 18

roe1974 avatar May 27 '24 18:05 roe1974

More like this grafik

Grothesk242 avatar May 27 '24 18:05 Grothesk242