Skip to content

deps: fix V8 build failures by adding climits include - #63287

Closed
tjuhaszrh wants to merge 1 commit into
nodejs:mainfrom
tjuhaszrh:add-climit.h
Closed

tjuhaszrh wants to merge 1 commit into
nodejs:mainfrom
tjuhaszrh:add-climit.h

Conversation

@tjuhaszrh

Copy link
Copy Markdown
Contributor

Add explicit #include to memcopy.h to fix build failures caused by recent GCC/Clang versions removing transient inclusions of the climits header.

Fixes compilation errors when using newer toolchain versions.
Without this change the build fails with following error on aarch64:

../deps/v8/src/base/memcopy.h:57:23: error: 'CHAR_BIT' was not declared in this scope
   57 |       sizeof(count) * CHAR_BIT - bits::CountLeadingZeros(count - 1);

Refs: #63146

Add explicit #include <climits> to memcopy.h to fix build failures
caused by recent GCC/Clang versions removing transient inclusions
of the climits header.

Fixes compilation errors when using newer toolchain versions.
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/security-wg
  • @nodejs/v8-update

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. v8 engine Issues and PRs related to the V8 dependency. labels May 13, 2026

@Renegade334 Renegade334 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Jun 6, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
github-actions Bot pushed a commit to castrojo/freedesktop-sdk that referenced this pull request Jun 26, 2026
The patch comes from nodejs workarounding it internally because chromium
hasn't addressed it yet.
nodejs/node#63287
https://issues.chromium.org/issues/512749476
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Jun 26, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
github-actions Bot pushed a commit to castrojo/freedesktop-sdk that referenced this pull request Jun 26, 2026
The patch comes from nodejs workarounding it internally because chromium
hasn't addressed it yet.
nodejs/node#63287
https://issues.chromium.org/issues/512749476
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Jun 26, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Jun 27, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Jun 29, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Jun 29, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
github-actions Bot pushed a commit to castrojo/freedesktop-sdk that referenced this pull request Jun 29, 2026
The patch comes from nodejs workarounding it internally because chromium
hasn't addressed it yet.
nodejs/node#63287
https://issues.chromium.org/issues/512749476
github-actions Bot pushed a commit to castrojo/freedesktop-sdk that referenced this pull request Jun 29, 2026
The patch comes from nodejs workarounding it internally because chromium
hasn't addressed it yet.
nodejs/node#63287
https://issues.chromium.org/issues/512749476
github-actions Bot pushed a commit to castrojo/freedesktop-sdk that referenced this pull request Jun 30, 2026
The patch comes from nodejs workarounding it internally because chromium
hasn't addressed it yet.
nodejs/node#63287
https://issues.chromium.org/issues/512749476
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Jul 8, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Jul 10, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Jul 22, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Jul 24, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Jul 28, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Jul 29, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Aug 1, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Aug 1, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Aug 4, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this pull request Aug 4, 2026
This fixes a build failure seen on aarch64 with GCC 16. The cause is
a mistake in the V8 JavaScript engine, previously masked because the
<climits> header was included transiently in previous versions of GCC.

The patch added here is taken from a PR against NodeJS:
<nodejs/node#63287>

The NodeJS owners haven't merged the PR because they're waiting for a
fix to land upstream in V8 instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-build-meta/-/merge_requests/4883>
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been marked as stale due to 90 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

@github-actions github-actions Bot added the stale Issues and PRs marked stale due to inactivity and scheduled for automatic closure. label Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. stale Issues and PRs marked stale due to inactivity and scheduled for automatic closure. v8 engine Issues and PRs related to the V8 dependency.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants