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

Repairing cp310-(many|musl)linux_x86_64 wheel fails #901

Closed
ghost opened this issue Nov 2, 2021 · 4 comments
Closed

Repairing cp310-(many|musl)linux_x86_64 wheel fails #901

ghost opened this issue Nov 2, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 2, 2021

Description

If build cp310-(many|musl)linux_x86_64 wheel like this, it fails.

Building cp36~cp39 (many|musl)linux_x86_64 wheels are fine.
If remove the Run test step, It succeeds.
I guess the build directory is not cleaned up properly.

Building script:

env:
  CIBW_BUILD: cp310-*

  job:
    name: Build cp310-musllinux_x86_64 wheel
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2

      - name: Run test
        run: |
          python setup.py install
          python -m unittest -v regex.test_regex

      - name: Install cibuildwheel & build wheels
        run: |
          python -m pip install -U cibuildwheel
          python -m cibuildwheel --output-dir wheelhouse

The error message, from this run:

Repairing wheel...
  
      + sh -c 'auditwheel repair -w /tmp/cibuildwheel/repaired_wheel /tmp/cibuildwheel/built_wheel/regex-2021.10.23-cp310-cp310-linux_x86_64.whl'
  INFO:auditwheel.main_repair:Repairing regex-2021.10.23-cp310-cp310-linux_x86_64.whl
  Traceback (most recent call last):
    File "/usr/local/bin/auditwheel", line 8, in <module>
      sys.exit(main())
    File "/opt/_internal/pipx/venvs/auditwheel/lib/python3.9/site-packages/auditwheel/main.py", line 59, in main
      rval = args.func(args, p)
    File "/opt/_internal/pipx/venvs/auditwheel/lib/python3.9/site-packages/auditwheel/main_repair.py", line 161, in execute
      out_wheel = repair_wheel(
    File "/opt/_internal/pipx/venvs/auditwheel/lib/python3.9/site-packages/auditwheel/repair.py", line 74, in repair_wheel
      raise ValueError(
  ValueError: Cannot repair wheel, because required library "libc.so.6" could not be located
  Error: Command ['sh', '-c', 'auditwheel repair -w /tmp/cibuildwheel/repaired_wheel /tmp/cibuildwheel/built_wheel/regex-2021.10.23-cp310-cp310-linux_x86_64.whl'] failed with code 1. 

Build log

No response

CI config

No response

@henryiii
Copy link
Contributor

Have you tried manylinux2014? Not sure how well 2010 works with python 3.10, most libraries (like NumPy) are doing 2014 wheels for 3.10. You can use a TOML overload to set the image just for cp31*.

@mayeut
Copy link
Member

mayeut commented Nov 21, 2021

From what I gathered, it seems like the build directory is not cleaned up properly & reused between builds. I'm not sure why this happens since the build is supposed to be isolated with pip < 21.3 (probably it copies the whole source folder rather than copying only files that would end up in the sdist).
I wonder if switching to build fixes this issue ?

@ghost
Copy link
Author

ghost commented Nov 21, 2021

Have you tried manylinux2014? Not sure how well 2010 works with python 3.10, most libraries (like NumPy) are doing 2014 wheels for 3.10. You can use a TOML overload to set the image just for cp31*.

I create a test workflow, cp310 fails, cp39 succeeds:
https://github.com/animalize/mrab-regex/actions/runs/1487131804

@joerick
Copy link
Contributor

joerick commented Mar 27, 2022

Is this still an issue? Feel free to reopen if so.

@joerick joerick closed this as completed Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants