-
Notifications
You must be signed in to change notification settings - Fork 357
gha/upgrade linux-64 manylinux image
#1344
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
53ea358
fb71154
e1d2431
7002af7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,6 +41,16 @@ python setup.py clean | |
| # Configure build via env vars | ||
| export LLVMLITE_PACKAGE_FORMAT="wheel" | ||
|
|
||
| # Set C++ ABI based on architecture | ||
| # x86_64 llvmdev used manylinux2014 image, which uses old ABI, | ||
| # aarch64 uses manylinux_2_28 image, which uses new ABI | ||
| # llvmlite now uses manylinux_2_28 image for both architectures, which uses new ABI | ||
| ARCH=$(uname -m) | ||
| if [ "$ARCH" = "x86_64" ]; then | ||
| # set old ABI for x86_64 | ||
| export CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 ${CXXFLAGS}" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. numba-hatchery uses this too: https://github.com/numba/numba-hatchery/blob/main/compile.sh#L50
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I actually got it from there. The python container image we use there has similar newer GLIBC and is ABI-incompatible to GLIBC on manylinux2014 image which was used to build llvmdev. |
||
| fi | ||
|
|
||
| # Build wheel | ||
| distdir=$outputdir/dist_$(uname -m)_$pyver | ||
| rm -rf $distdir | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: do we need
manylinux_2_28_x86_64:2025.09.19-1explicitly or would it be ok to use justmanylinux_2_28_x86_64?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pinned it to version
cibuildwheeluses. The pinning is mostly so that we won't have silent or hard to trace failures. If latest image updates to a newer toolchain with ABI changes, it could error llvmlite builds or silently break numba builds.