Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #6480
Closes #6481
#6461 caused segfault on CentOS and Debian platforms upon running
import xgboost
because the shared librarylibxgboost.so
was not properly patched byauditwheel repair
. According to pypa/auditwheel#227 (comment), thepatchelf
program in CentOS 6 or 7 is outdated and contains bugs that leads to rendinglibxgboost.so
unreadable on CentOS / Debian.Error log:
Solution. Use the official container from PyPA,
manylinux2010_x86_64
, to runauditwheel repair
command. This will use the latestpatchelf
program and thus patchlibxgboost.so
correctly. This container is "blessed" by the Python Packaging Authority (PyPA) and is able to produce wheels that are strictly compliant with the "manylinux" standard.Note. The issue is quite serious, so I'll publish a new Python wheel with version
1.3.0.post0
. I will pull down the current version1.3.0
to prevent others from running into the issue.Note. The ARM64 wheel is not affected by this bug, because it was produced by the official container
manylinux2014_aarch64
.