python / python/cpython

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

未關閉
#137,193 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

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. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先在 Linux 上重現 Python 3.12.11 的原始碼建置,並檢查回報的兩個 libpython3.12.a 位置:/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 摘要。