[Wheel-builders] build a multilinux wheel for cuda project

Simon Zhang szhang31415 at gmail.com
Wed Jan 27 13:09:09 EST 2021


Hi,

I am trying to build a multilinux wheel for a cuda project.
see:
https://stackoverflow.com/questions/42585210/extending-setuptools-extension-to-use-cmake-in-setup-py

and:
https://packaging.python.org/tutorials/packaging-projects/

and:
https://github.com/pypa/auditwheel

I tried running audit wheel from the docker image:

$ docker run -i -t -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /bin/bash

however get the same error message:

[root at dd2c9c25006a cmake_cuda_test]# auditwheel show
dist/spam_plusplus-0.1-cp38-cp38-linux_x86_64.whl

spam_plusplus-0.1-cp38-cp38-linux_x86_64.whl is consistent with the
following platform tag: "manylinux2014_x86_64".

The wheel references external versioned symbols in these system-
provided shared libraries: libdl.so.2 with versions {'GLIBC_2.2.5'},
librt.so.1 with versions {'GLIBC_2.2.5'}, libpthread.so.0 with
versions {'GLIBC_2.3.2', 'GLIBC_2.2.5'}, libc.so.6 with versions
{'GLIBC_2.14', 'GLIBC_2.3.3', 'GLIBC_2.3', 'GLIBC_2.17',
'GLIBC_2.2.5'}

This constrains the platform tag to "manylinux2014_x86_64". In order
to achieve a more compatible tag, you would need to recompile a new
wheel from source on a system with earlier versions of these
libraries, such as a recent manylinux image.
[root at dd2c9c25006a cmake_cuda_test]# auditwheel repair
dist/spam_plusplus-0.1-cp38-cp38-linux_x86_64.whl
INFO:auditwheel.main_repair:Repairing
spam_plusplus-0.1-cp38-cp38-linux_x86_64.whl
usage: auditwheel [-h] [-V] [-v] command ...
auditwheel: error: cannot repair
"dist/spam_plusplus-0.1-cp38-cp38-linux_x86_64.whl" to
"manylinux2010_x86_64" ABI because of the presence of too-recent
versioned symbols. You'll need to compile the wheel on an older
toolchain.


How do I compile on the manylinux image on docker?

I cannot even get python3 to work on the docker image nor the command
"locate" to find python3.

Please help!!

Thanks,

Simon Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/wheel-builders/attachments/20210127/a199fd44/attachment.html>


More information about the Wheel-builders mailing list