Skip to content

Conversation

@sklam
Copy link
Member

@sklam sklam commented Dec 9, 2024

(Based on #1104)

Users have reported error using the windows wheel for llvmlite on official CPython distribution (non-Anaconda builds). The error was due to zlib.dll dependency that is not available on the installed Python.

This patch fixes the problem by using llvmdev_manylinux recipe which disabled zlib and zstd.

Note: With this patch, all wheel builds use llvmdev_manylinux recipe. The recipe folder should rename to llvmdev_wheels later. Don't want to do that now which will require changing more buildfarm scripts.

In addition, a GHA workflow is added to build the llvmdev for wheels. Example run: https://github.com/sklam/llvmlite/actions/runs/12186143333/job/33993961959

sklam added 4 commits December 9, 2024 10:11
and add GHA for building windows llvmdev for wheels

Main difference in recipe is disabling zlib and
zstd since they are not available on official
CPython installation.
@sklam sklam marked this pull request as ready for review December 9, 2024 16:23
@sklam sklam added this to the v0.44.0 milestone Dec 9, 2024
@@ -0,0 +1,51 @@
name: llvmdev_win_builder
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a adaptation of https://github.com/numba/llvmlite/pull/1106/files#diff-1db27d93186e46d3b441ece35801b244db8ee144ff1405ca27a163bfe878957fR162-R207

This workflow is saved here for record keeping purpose. No automatic trigger.

This workflow was used to produce the llvmdev_manylinux build on https://anaconda.org/numba/llvmdev/15.0.7/download/win-64/llvmdev-15.0.7-manylinux.tar.bz2

Comment on lines +19 to +20
-DLLVM_ENABLE_ZLIB=OFF ^
-DLLVM_ENABLE_ZSTD=OFF ^
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is a copy of llvmdev/bld.bat with these two lines changed.

Copy link
Contributor

@swap357 swap357 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't fully understand the implications of recipe changes but workflow looks good to me.

strategy:
matrix:
config:
- {python: '3.10'}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we're not planning on testing for python versions and just need build, we can simplify and remove matrix here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kc611
kc611 previously approved these changes Dec 11, 2024
Copy link
Contributor

@kc611 kc611 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kc611 kc611 dismissed their stale review December 11, 2024 07:08

The merge-base changed after approval.

kc611
kc611 previously approved these changes Dec 11, 2024
@sklam sklam dismissed kc611’s stale review December 11, 2024 07:08

The merge-base changed after approval.

kc611
kc611 previously approved these changes Dec 11, 2024
@sklam sklam dismissed kc611’s stale review December 11, 2024 08:29

The merge-base changed after approval.

@kc611 kc611 closed this Dec 11, 2024
@kc611 kc611 reopened this Dec 11, 2024
@kc611 kc611 merged commit 0d88fb1 into numba:release0.44 Dec 11, 2024
25 checks passed
esc pushed a commit to esc/llvmlite that referenced this pull request Dec 12, 2024
Fix Windows llvmdev build due to zlib linkage

Conflicts:
    conda-recipes/llvmdev_manylinux/meta.yaml
@esc
Copy link
Member

esc commented Dec 12, 2024

Backport (or forward port?) is here: #1114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants