Missing Build Dependence: _freeze_module.c
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Bug report
Bug description:
Build CPython by running "make".
Then a dummy pointer field to the end of struct PyConfig in Include/cpython/initconfig.h:
void *dummy;
Then, run "make" again. This time, you'll get a weird error from _freeze_module run as part of the build. Exactly what error you get will depend on how much you change the size of struct PyConfig and the system you're on. On my Linux system, sometimes it gave me an error about attempting to open() NULL (because the stack variable "inpath" from main() in _freeze_module.c was clobbered). Sometimes it gave me a path error.
Remove Programs/_freeze_module.o. Run "make" again. Marvel as this time make succeeds.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Include/cpython/initconfig.h に dummy フィールドを追加した後、make で問題を再現し、Programs/_freeze_module.o のビルドエントリと _freeze_module.c の依存関係を調べます。2 回目の make で影響を受けるターゲットが再ビルドされ、Programs/_freeze_module.o を手動で削除しなくても成功すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100