Repository navigation
Fix Windows CI with MSVC 19.52 - #10569
Merged
Merged
Conversation
libavif 1.4.2 builds dav1d 1.5.3, whose MSVC stdatomic.h compat header fails to compile with MSVC 19.52 (error C7780: function-like macro '__has_include_next' is not defined). This is fixed in dav1d 1.5.5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
|
The BC7 fix does not appear to have worked - https://github.com/python-pillow/Pillow/actions/runs/44669915088/job/136068142847?pr=10569#step:30:9738 |
radarhere
force-pushed
the
winbuild-dav1d-msvc
branch
from
November 20, 2026 05:13
1e615bc to
6a564bc
Compare
radarhere
force-pushed
the
winbuild-dav1d-msvc
branch
from
November 20, 2026 05:14
6a564bc to
c755114
Compare
Member
|
The BC7 failure was occurring on ARM earlier, and was fixed in #10521. I've pushed a similar fix. |
hugovk
reviewed
Nov 20, 2026
Comment on lines
+437
to
+442
| "patch": { | ||
| r"cmake\Modules\LocalDav1d.cmake": { | ||
| # dav1d 1.5.5 fixes building with MSVC 19.52 and later | ||
| 'set(AVIF_DAV1D_TAG "1.5.3")': 'set(AVIF_DAV1D_TAG "1.5.5")', | ||
| }, | ||
| }, |
Member
There was a problem hiding this comment.
Do we need to update our SBOM to mention this patch?
For reference, here's a PR to bump libavif to dav1d 1.5.5:
Member
There was a problem hiding this comment.
I've created #10571. I don't think it's a cherry-pick, because we didn't include everything from the commit in that PR. I've also described in the notes that this patch is only for Windows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Some GitHub Actions Windows runners now use MSVC 14.52 (compiler 19.52). This breaks Windows CI in two ways.
1. dav1d fails to build
libavif's bundled dav1d fails to compile:
libavif 1.4.2 pins dav1d 1.5.3, and libavif's main branch currently pins 1.5.4. dav1d fixed this in 1.5.5 (a34e068, "compat: Fix building with newer versions of MSVC"). libavif sets
AVIF_DAV1D_TAGwith a plainset(), so it can't be overridden from the command line. This patchesLocalDav1d.cmaketo use 1.5.5. The patch asserts that the original line is present, so the build will fail once libavif changes its pin, and we'll know to update or remove the patch.2. BC7 decoding is wrong on x64
With dav1d fixed, the x64 jobs on 14.52 fail
test_dx10_bc7. The jobs on 14.51 (x64), 14.44 (x86) and 14.52 (arm64) pass. Comparing the CI output image with the expected one:I couldn't find undefined behaviour in that code, so this looks like a compiler regression. This disables vectorization of the loop for MSVC 19.52 and later on x64.
🤖 Generated with Claude Code