libpython depends on libstdcxx >=15 but links no C++ runtime
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- backend, build-system
Research direction
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.
Written by the indexing model from the issue text.
Description
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: unsolvablepython=3.14.8orpython=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.
- Dominant language
- Shell
- Stars
- 47
- Forks
- 114
- Avg merge
- 7d 6h
- Merged PRs (30d)
- 14
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from conda-forge/python-feedstock
-
question
Difficulty 3/5 1-2 days Newbie friendliness 45/100
conda-forge/python-feedstock#948 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 42/100
conda-forge/python-feedstock#945 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
conda-forge/python-feedstock#929 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
conda-forge/python-feedstock#903 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
conda-forge/python-feedstock#880 ·
Maintainers usually reply within 1 day
All issues in conda-forge/python-feedstock
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
Installer computes steamid3 as -76561197960265728 when loginusers.vdf uses lowercase "timestamp"Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
[Bug]: armbian-firstlogin: preset Wi-Fi key with " or \ breaks netplan configPossibly taken @jfcabral claimed this today. OpenBug Good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
armbian/build#10995 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
oSoWoSo/vOid_Community_repOsitory#417 ·
Maintainers usually reply within 1 day