-
Notifications
You must be signed in to change notification settings - Fork 1
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
Windows build is failing on Gitlab CI/CD #24
Comments
Currently the When the windows build finally works, these 2 should be re-enabled so that they are part of the distribution jobs. |
Refer to this commit: 896e86f When the windows jobs work, reverse the changes to the windows jobs. |
Asking chatgpt about this: https://chat.openai.com/share/34ecb6cd-1251-4ab2-b797-92d860e034f1 Seems like idea is that the binding generator might be choking on an unnamed enum. C/C++ can have unnamed enums. The file it is referring to might be this: https://github.com/google/boringssl/blob/master/include/openssl/err.h#L304 The next step should be to inspect how quiche upstream project builds their binaries or tests on windows, and trace their CI process to see if they do something special with boringssl or something else. |
Error is different with boring v3, less detail this time. cloudflare/boring#121 (comment) |
Ok so apparently there could be an issue with windows-sdk-10. Basically the windows SDK is not installed by default in Gitlab CI machines: https://gitlab.com/gitlab-org/ci-cd/shared-runners/images/gcp/windows-containers/blob/main/cookbooks/preinstalled-software/README.md Or maybe it is... since by default we can see that the build logs does this:
Anyway the build logs complain about a missing Now on chocolatey, it's a bit confusing when looking for windows SDK packages. Basically it seems Windows has some confusing version numbers. But right now noiseratio packages the ones correctly: https://community.chocolatey.org/profiles/noseratio The current latest package is https://community.chocolatey.org/packages/windows-sdk-11-version-22H2-all. So I'm going to try this afterwards. There's also some environment variables that may be relevant:
However The |
So it actually built without So I think I'll now try the latest SDK version too. |
Great windows build no longer fails, however we have errors coming from other sources. Will solve this in #69. |
@amydevs maybe important for future windows related builds #24 (comment) |
Describe the bug
First discovered in #7 (comment), and posted upstream cloudflare/boring#121.
The windows build of the quic native module uses the MSVC toolchain for rust. Everything is working until it hits something involving
boring-sys
crate. This crate is for the tls stack, and the-sys
packages always involves deeper compiler tools. In this case, being something that uses C/C++ and even the assembler.The error being:
Right now there's no clues on what to do here... except perhaps to try and match the GitHub action CI that is being used on the https://github.com/cloudflare/boring project. In particular their CI is actually building something and then testing it on Windows.
The last successful build is: https://github.com/cloudflare/boring/actions/runs/4949623099/jobs/8852046264.
Somethings to investigate:
If all else fails, we could try cross-compiling everything. Furthermore I haven't tested this on our local windows computer, that may provide more clues and this may be something specific to the Gitlab windows CI machine.
To Reproduce
Expected behavior
Should just build like macos and linux atm.
Additional context
The text was updated successfully, but these errors were encountered: