python / python/cpython

Building Python 3.12.11 on Linux makes 2 copes of very large libpython3.12.a file

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

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

build performance topic-installation type-bug
主要言語
Python
スター
77.2k
フォーク
36k
PR マージ指標
PR 指標を取得中

説明

Bug report

Bug description:

When I build Python 3.12.11 from source code on Linux, the result includes 2 copies of the libpython3.12.a file which is about 56 megabytes in size!

File locations

  • <prefix>/lib/libpython3.12.a
  • <prefix>/lib/python3.12/config-3.12-x86_64-linux-gnu/libpython3.12.a

I presume one of those is supposed to be a symbolic link to the other, or maybe the entire <prefix>/lib/python3.12/config-3.12-x86_64-linux-gnu directory is not supposed to be included in the installation?

Is this something that everyone is experiencing, or am I likely doing something wrong that is causing this to happen for me?

CPython versions tested on:

3.12

Operating systems tested on:

Linux

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、Linux 上で Python 3.12.11 のソースビルドを再現し、報告されている libpython3.12.a の 2 つの場所、/lib と /lib/python3.12/config-3.12-x86_64-linux-gnu を調べます。インストールされたファイルと、ビルドまたはインストールの動作を比較して、重複が想定されたものかどうかを判断します。問題が説明されるか、インストールによって意図した単一コピーの配置が生成されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
build-system
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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