Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#951 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend, build-system

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Shell
Star
47
Fork
114
Merge trung bình
7 ngày 6 giờ
Pull request đã merge (30 ngày)
14

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của conda-forge/python-feedstock

Tất cả issue của conda-forge/python-feedstock

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.