Repository navigation
NodeJS >= 22.2.0 doesn't build on Debian #53633
Description
Activity
- addedbuildIssues and PRs related to Node.js builds or CI infrastructure.Issues and PRs related to Node.js builds or CI infrastructure.
on Jun 28, 2024 Is this specific to that docker container (or Debian), or can these reproduce on other Linux versions / containers?
Judging from the linked issue it's not specific to containers. With Alpine Linux there are other issues. Not this specific one.
- addedlinuxIssues and PRs related to the Linux platform.Issues and PRs related to the Linux platform.
on Jun 28, 2024 FWIW I'm able to build fine on Kali Linux (which is based on Debian)
@redyetidev And which version of the compiler/library do you have there? In my case it must be this I guess:
$ dpkg -l | grep stdc++\\\|g++ ii g++ 4:12.2.0-3 amd64 GNU C++ compiler ii g++-12 12.2.0-14 amd64 GNU C++ compiler ii libstdc++-12-dev:amd64 12.2.0-14 amd64 GNU Standard C++ Library v3 (development files) ii libstdc++6:amd64 12.2.0-14 amd64 GNU Standard C++ Library v3I have a lot more:
ii g++ 4:13.2.0-7 amd64 GNU C++ compiler ii g++-12 12.3.0-17 amd64 GNU C++ compiler ii g++-13 13.2.0-25 amd64 GNU C++ compiler ii g++-13-x86-64-linux-gnu 13.2.0-25 amd64 GNU C++ compiler for x86_64-linux-gnu architecture ii g++-mingw-w64 13.2.0-19+26.3 all GNU C++ compiler for MinGW-w64 ii g++-mingw-w64-i686 13.2.0-19+26.3 all GNU C++ compiler for MinGW-w64 targeting Win32 ii g++-mingw-w64-i686-posix 13.2.0-19+26.3 amd64 GNU C++ compiler for MinGW-w64, Win32/POSIX ii g++-mingw-w64-i686-win32 13.2.0-19+26.3 amd64 GNU C++ compiler for MinGW-w64, Win32/Win32 ii g++-mingw-w64-x86-64 13.2.0-19+26.3 all GNU C++ compiler for MinGW-w64 targeting Win64 ii g++-mingw-w64-x86-64-posix 13.2.0-19+26.3 amd64 GNU C++ compiler for MinGW-w64, Win64/POSIX ii g++-mingw-w64-x86-64-win32 13.2.0-19+26.3 amd64 GNU C++ compiler for MinGW-w64, Win64/Win32 ii g++-x86-64-linux-gnu 4:13.2.0-7 amd64 GNU C++ compiler for the amd64 architecture ii lib32stdc++6 14-20240330-1 amd64 GNU Standard C++ Library v3 (32 bit Version) ii libconfig++9v5:amd64 1.5-0.4+b1 amd64 parsing/manipulation of structured configuration files (C++ binding) ii libstdc++-12-dev:amd64 12.3.0-17 amd64 GNU Standard C++ Library v3 (development files) ii libstdc++-13-dev:amd64 13.2.0-25 amd64 GNU Standard C++ Library v3 (development files) ii libstdc++6:amd64 14-20240330-1 amd64 GNU Standard C++ Library v3I meant the compiler/library you used to build NodeJS. Because it may have something to do with versions.
Anyway, I'll probably try to reconfirm it, but it seems to start to fail in this commit.
There's a bug in GCC 12 that causes these errors. We use GCC 11 in CI on Debian 12 to avoid it.
Indeed. With GCC 11 it succeeds:
docker run --rm debian:bookworm-slim bash -euxc ' apt-get update apt-get install -y git python3 g++-11 make git clone https://github.com/nodejs/node cd node CXX=g++-11 CC=gcc-11 ./configure make '
With GCC 12 it starts to fail in e4b187433d. If that's bug in GCC 12, case closed then I guess?
Closing as the issue seems to be with GCC12, if you disagree, reopen.
- added a commit that references this issue
on Jul 25, 2024 - added 3 commits that reference this issue
on Jul 28, 2024 - added a commit that references this issue
on Aug 5, 2024
Version
22.2.0
Platform
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Consistently.
What is the expected behavior? Why is that the expected behavior?
It should build.
What do you see instead?
Additional information
A similar report.