python / python/cpython

Missing Build Dependence: _freeze_module.c

オープン
#118,253 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

type-bug
主要言語
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。