Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect platform tag with external dependencies #1490

Open
1 of 2 tasks
jneem opened this issue Feb 17, 2023 · 1 comment
Open
1 of 2 tasks

Incorrect platform tag with external dependencies #1490

jneem opened this issue Feb 17, 2023 · 1 comment
Labels
bug Something isn't working wheel Wheel

Comments

@jneem
Copy link

jneem commented Feb 17, 2023

Bug Description

I'm creating a python extension module with external library dependencies (specifically, ffmpeg). When I build the library with maturin on certain systems, it tags the resulting package as manylinux_2_28 even though some of the bundled library dependencies have GLIBC_2.29 symbols.

auditwheel correctly identifies the built package as requiring manylinux_2_31.

Your maturin version (maturin --version)

0.14.3

Your Python version (python -V)

Python 3.7.15

Your pip version (pip -V)

pip 23.0

What bindings you're using

pyo3

Does cargo build work?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

  1. Check out the repository here
  2. Run docker build .

This builds a package in a python:3.7.15-slim-bullseye container and then tries to install it in a python:3.3.3-slim-buster container. The package installs without error, but trying to import the module results in

Traceback (most recent call last):
  File "example.py", line 1, in <module>
    import bug_report
  File "/usr/local/lib/python3.7/site-packages/bug_report/__init__.py", line 1, in <module>
    from .bug_report import *
ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python3.7/site-packages/bug_report/../bug_report.libs/libavcodec-a571829e.so.58)
@jneem jneem added the bug Something isn't working label Feb 17, 2023
@messense
Copy link
Member

Thanks for reporting, definitely an oversight that should be fixed.

@messense messense added this to the 1.0.0 milestone Feb 17, 2023
@messense messense removed this from the 1.0.0 milestone May 24, 2023
@messense messense added the wheel Wheel label Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wheel Wheel
Projects
None yet
Development

No branches or pull requests

2 participants