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

armv7l libc don't have version `GLIBCXX_3.4.26' #51233

Open
calidion opened this issue Dec 20, 2023 · 6 comments
Open

armv7l libc don't have version `GLIBCXX_3.4.26' #51233

calidion opened this issue Dec 20, 2023 · 6 comments
Labels
arm Issues and PRs related to the ARM platform. build Issues and PRs related to build files or the CI.

Comments

@calidion
Copy link

Version

v20.10.0

Platform

Linux localhost 3.4.113-lineageos-g0d0607df650 #1 SMP PREEMPT Thu Nov 2 17:52:53 UTC 2023 armv7l GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

just run node command

How often does it reproduce? Is there a required condition?

every time

What is the expected behavior? Why is that the expected behavior?

No response

What do you see instead?

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

Additional information

No response

@calidion
Copy link
Author

strings /lib/arm-linux-gnueabihf/libstdc++.so.6 | grep GLIBC
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBC_2.4
GLIBC_2.18
GLIBC_2.16
GLIBC_2.17
GLIBCXX_DEBUG_MESSAGE_LENGTH

@targos targos added the build Issues and PRs related to build files or the CI. label Dec 20, 2023
@targos
Copy link
Member

targos commented Dec 20, 2023

@nodejs/build

Our documentation says minimum GLIBC should be 2.28, not 3.4.

@richardlau
Copy link
Member

richardlau commented Dec 20, 2023

@nodejs/build

Our documentation says minimum GLIBC should be 2.28, not 3.4.

Which is correct. GLIBCXX (note the "XX") refers to the libstdc++ version. For armv7l this is expected. It's noted in our documentation:

node/BUILDING.md

Lines 181 to 184 in a220664

[^7]: Binaries produced on these systems are compatible with glibc >= 2.28
and libstdc++ >= 6.0.28 (`GLIBCXX_3.4.28`). These are available on
distributions natively supporting GCC 9.3 or higher, such as Debian 11,
Ubuntu 20.04.

Other architectures are able to run on an earlier libstdc++ because we compile those on RHEL 8 (with gcc-toolset-10). Unfortunately RHEL 8 isn't available for armv7l so we're using a cross compiler built with crosstools-ng.

@richardlau richardlau added the arm Issues and PRs related to the ARM platform. label Dec 20, 2023
@sxa
Copy link
Member

sxa commented Dec 20, 2023

@calidion Interesing use case for arm32 builds that hadn't really occurred to me. Which version of LineageOS are you using? Can your device run 27? I'll be honest I'm not sure which version of the libraries are supported by each version as I'm not running it anywhere myself.

@calidion
Copy link
Author

@sxa
lineageos 18.1-20231102
android 11
hltechn for sumsung galaxy note 3

@calidion
Copy link
Author

debian 10 (buster )
armhf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm Issues and PRs related to the ARM platform. build Issues and PRs related to build files or the CI.
Projects
None yet
Development

No branches or pull requests

4 participants