Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

libpython depends on libstdcxx >=15 but links no C++ runtime

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

Read the libpython output's build requirements and compare them with the python output's ignore_run_exports_from setting; the issue says the 3.11 through 3.14 branches contain the same line. Check the package recipe and build metadata to confirm libpython's runtime dependencies on Linux and macOS. Done when libpython carries the C++ compiler run-export and environments capped below libstdcxx 15 can solve the stated package cases.

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

説明

Since the split in #894, every libpython build depends on libstdcxx >=15 on Linux (and libcxx on macOS), but the library links no C++ runtime:

$ objdump -p lib/libpython3.15.so.1.0 | grep NEEDED   # libpython-3.15.0-hdc7f604_100_cp315, linux-64
  NEEDED libm.so.6 libpthread.so.0 libdl.so.2 libutil.so.1 libgcc_s.so.1 libc.so.6 ld-linux-x86-64.so.2
$ otool -L lib/libpython3.15.dylib                    # osx-arm64
  @rpath/libpython3.15.dylib, /usr/lib/libSystem.B.dylib

The requirement is a run-export of {{ compiler('cxx') }} in the libpython output's build requirements. The python output already drops the same run-export with ignore_run_exports_from.

This blocks environments that cap libstdc++. PythonCall.jl (Julia embedding Python, via CondaPkg) caps libstdcxx at the version Julia bundles, which is below 15 on Julia 1.10 and 1.12. Under libstdcxx <15:

  • python + libpython: unsolvable
  • python=3.14.8 or python=3.13.16: unsolvable, since they pin libpython exactly
  • plain python: resolves to an older build from before the split (3.14.6)

From 3.15 on, python no longer depends on libpython, so embedders like PythonCall have to request libpython explicitly, which makes this harder to avoid.

Fixes: #949 (main) and #950 (3.14). The 3.11, 3.12 and 3.13 branches have the same line.

主要言語
Shell
スター
47
フォーク
114
平均マージ
7日 6時間
マージ済み PR(30日)
14

環境構築

はじめの一歩

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

conda-forge/python-feedstock のほかの issue

conda-forge/python-feedstock の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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