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

repair and re-enable Windows buildkite presubmit #82393

Merged
merged 6 commits into from
Feb 20, 2024

Conversation

lnihlen
Copy link
Contributor

@lnihlen lnihlen commented Feb 20, 2024

No description provided.

@lnihlen lnihlen changed the title [DNR] [wip] working on windows buildkite presubmit repair and re-enable Windows buildkite presubmit Feb 20, 2024
@lnihlen
Copy link
Contributor Author

lnihlen commented Feb 20, 2024

Context: https://discourse.llvm.org/t/rfc-future-of-windows-pre-commit-ci/76840/50

First I spent some time getting oriented to the presubmit system. Then I verified that antivirus software is not running on any of the build servers.

After lots more Googling, it seems that the interaction between cmake, ninja, and mt.exe can lead to problems like this. I found https://discourse.cmake.org/t/visual-studio-vs-link-exe-manifest-questions/6441, https://stackoverflow.com/questions/3775406/mt-exe-general-error-c101008d-failed-to-write-the-updated-manifest-to-the-res, https://gitlab.kitware.com/cmake/cmake/-/issues/25296, and others mentioning this inconsistency problem.

This patch adds /MANIFEST:NO to the linker flags on the Windows presubmit. I've tested it by manually enabling Windows presubmit again and running it on buildkite, where the system compiled the project successfully. However, the failure seems inconsistent. So, I'd like to re-enable Windows builds, for a day or so, and monitor them carefully for recurrence of the mt.exe. If it appears again, I will quickly produce a PR that disables them again.

Thanks.

Copy link
Collaborator

@AaronBallman AaronBallman left a comment

Choose a reason for hiding this comment

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

Thank you for working on this!

Comment on lines +53 to +55
-D CMAKE_EXE_LINKER_FLAGS="/MANIFEST:NO" \
-D CMAKE_MODULE_LINKER_FLAGS="/MANIFEST:NO" \
-D CMAKE_SHARED_LINKER_FLAGS="/MANIFEST:NO"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it might make sense to add comments around here explaining why we're doing this; otherwise it'll be a head-scratcher a few months from now.

Copy link
Collaborator

@joker-eph joker-eph left a comment

Choose a reason for hiding this comment

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

Thanks a lot for fixing it!

@lnihlen lnihlen merged commit cd4e246 into main Feb 20, 2024
4 checks passed
@lnihlen lnihlen deleted the users/lnihlen/presubmit/windows-manifest branch February 20, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants