Skip to content

Unable to compile llama-cpp-sys-2 #653

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

Closed
Crssz opened this issue Feb 14, 2025 · 1 comment · Fixed by #654
Closed

Unable to compile llama-cpp-sys-2 #653

Crssz opened this issue Feb 14, 2025 · 1 comment · Fixed by #654

Comments

@Crssz
Copy link

Crssz commented Feb 14, 2025

Compilation Error with CUDA Features on Windows 11

When attempting to compile a simple example with CUDA features enabled, I encountered the following error:

.cargo\registry\src\index.crates.io-6f17d22bba15001f\llama-cpp-sys-2-0.1.94\llama.cpp\common\log.cpp(28,79): error C2039: 'system_clock': is not a member of 'std::chrono' [C:\Users\Crssz\develop\llm-app\src-tauri\target\debug\build\llama-cpp-sys-2-9320484b5c908830\out\build\common\common.vcxproj]

Environment
OS: Windows 11
Library: llama-cpp-sys 0.1.94

Workarounds

I found two workarounds for this issue:

  • Manually adding #include <chrono> to log.cpp in the llama.cpp/common/log.cpp directory.
  • Switching the llama.cpp repository to the master branch.
@babichjacob
Copy link
Contributor

Switching the llama.cpp repository to the master branch.

Yes, this was fixed very recently by ggml-org/llama.cpp#11836

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 a pull request may close this issue.

2 participants