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

Fix: Compile failure due to Microsoft STL breaking change #11836

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

MrSMlT
Copy link
Contributor

@MrSMlT MrSMlT commented Feb 12, 2025

This pull request adds #include chrono to common/log.cpp, examples/imatrix/imatrix.cpp, and examples/perplexity/perplexity.cpp.

This is necessary because Microsoft STL moved system_clock from <__msvc_chrono.hpp> to in a recent breaking change (see [https://github.com/microsoft/STL/pull/5105]). This caused llama.cpp to fail to compile on Windows after MSVC.

This PR ensures that the necessary header is included, resolving the compilation error.

Copy link
Contributor Author

@MrSMlT MrSMlT left a comment

Choose a reason for hiding this comment

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

Done, thanks!

@slaren slaren linked an issue Feb 12, 2025 that may be closed by this pull request
@slaren slaren merged commit bfd11a2 into ggml-org:master Feb 12, 2025
46 checks passed
tinglou pushed a commit to tinglou/llama.cpp that referenced this pull request Feb 13, 2025
orca-zhang pushed a commit to orca-zhang/llama.cpp that referenced this pull request Feb 26, 2025
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile bug: can't build with MSVC 17.13.0
2 participants