26.0.0 fails to build on NetBSD: missing include
オープン
初心者向け
まだ誰も着手していません。
arm
build
v8 engine
- 主要言語
- JavaScript
- スター
- 122k
- フォーク
- 37.3k
- 平均マージ
- 4日 2時間
- マージ済み PR(30日)
- 283
説明
Version
26.0.0
Platform
NetBSD virtual 11.99.6 NetBSD 11.99.6 (GENERIC64) #0: Mon May 4 09:49:31 CEST 2026
Subsystem
No response
What steps will reproduce the bug?
Build NodeJS 26.0.0 on NetBSD
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
Build proceeds
What do you see instead?
Build fails with:
../deps/v8/src/base/memcopy.h: In function 'void v8::base::SimdMemCopy(void*, const void*, size_t)':
../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);
| ^~~~~~~~
../deps/v8/src/base/memcopy.h:21:1: note: 'CHAR_BIT' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
Additional information
Fix:
--- deps/v8/src/base/memcopy.h.orig 2026-05-06 07:22:58.678410124 +0000
+++ deps/v8/src/base/memcopy.h
@@ -5,6 +5,7 @@
#ifndef V8_BASE_MEMCOPY_H_
#define V8_BASE_MEMCOPY_H_
+#include <climits>
#include <stdlib.h>
#include <atomic>
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
NetBSD のビルドで CHAR_BIT が未宣言だと報告されている deps/v8/src/base/memcopy.h から始めます。NetBSD 上で Node.js 26.0.0 のビルドを再現し、そこで header の宣言が利用可能であることを確認してから、対象を絞った変更後にビルドが正常に進むことを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- node.js
- 領域
- build-system, operating-systems
- issue の種類
- バグ
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 静か
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 85/100