error : cannot use 'throw' with exceptions disabled
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 40.3k
- Forks
- 3.7k
- PR merge metrics
- No merged PRs in 30d
Description
The old issue https://github.com/microsoft/BitNet/issues/75 was closed. So I had to post it again...
I've below CLang in Windows 11.
\BitNet> clang --version
clang version 19.1.7
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/mingw64/bin
But I still get these errors when trying to run "python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s"
\BitNet\3rdparty\llama.cpp\src\llama.cpp(122,9): error : cannot use 'throw' with exceptions disabled [...\BitNet\build\3rdparty\llama.cpp\src\llama.vcxproj]
Can someone please help?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s on Windows 11 with the reported Clang toolchain. Inspect 3rdparty/llama.cpp/src/llama.cpp at line 122 and the generated build/3rdparty/llama.cpp/src/llama.vcxproj; done means the setup completes without the exceptions-disabled error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- build-system, compilers, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100