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

add llvmlite win builder GH actions workflow #1126

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

swap357
Copy link
Contributor

@swap357 swap357 commented Jan 17, 2025

This PR introduces a new GitHub Actions workflow ( llvmlite_win_builder.yml) to automate the building and testing of llvmlite conda package and wheel for win-64 platforms and Python versions.
python versions -
["3.10", "3.11", "3.12", "3.13"]
artifact retention: 7 days

@esc
Copy link
Member

esc commented Jan 17, 2025

Just to clarify, this is:

  • A GitHub action
  • Building llvmlite on Windows
  • Building conda packages

Is that correct?

@esc esc self-requested a review January 17, 2025 11:41
@esc esc added this to the v0.45.0 milestone Jan 17, 2025
@esc
Copy link
Member

esc commented Jan 17, 2025

I tried to execute this in my fork:

https://github.com/esc/llvmlite/actions/runs/12828247772/job/35771883647

The error is:

LINK : fatal error LNK1181: cannot open input file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\DIA SDK\lib\amd64\diaguids.lib' [%SRC_DIR%\ffi\build\llvmlite.vcxproj]

co-pilot says:

The issue appears to be a LINK : fatal error LNK1181: cannot open input file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\DIA SDK\lib\amd64\diaguids.lib'. This indicates that the required diaguids.lib file cannot be found.

To resolve this issue, you should ensure that the DIA SDK is installed with the Visual Studio Build Tools. Here are the steps to fix it:

Install the DIA SDK: Open the Visual Studio Installer, modify the installed Visual Studio version, and ensure that the "MSVC v142 - VS 2019 C++ x64/x86 build tools" and the "Windows 10 SDK" are installed.

Verify the Path: Check if the diaguids.lib exists in the directory C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\DIA SDK\lib\amd64\.

If the file is missing, installing the necessary components from the Visual Studio Installer should rectify the issue. If the problem persists even after ensuring the DIA SDK is installed, you may need to update the environment variables to include the path to the DIA SDK library.

- Updated the llvmlite Windows builder workflow to install specific Visual Studio components.
- Added environment variable to disable DIA SDK requirement during the build process.
- Cleaned up the bld.bat script by setting Visual Studio version and platform variables.
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.

2 participants