BitNet icon indicating copy to clipboard operation
BitNet copied to clipboard

Building on Windows11 Failed with missing ClangCL

Open RealHacker opened this issue 10 months ago • 1 comments

When I build by executing python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s:

Project "E:\Bitnet\BitNet\build\CMakeFiles\4.0.0-rc2\VCTargetsPath.vcxproj" on node 1 (default targets). C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for ClangCL (Platform Toolset = 'ClangCL') cannot be found. To build using the ClangCL build tools, please install ClangCL build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [E:\Bitnet\BitNet\build\CMakeFiles\4.0.0-rc2\VCTargetsPath.vcxproj] Done Building Project "E:\Bitnet\BitNet\build\CMakeFiles\4.0.0-rc2\VCTargetsPath.vcxproj" (default targets) -- FAILED.

I have installed Clang from official repository. And Clang-cl is in system PATH:

PS E:\Bitnet\BitNet> clang-cl.exe --version
clang version 20.1.3
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin

What should I do to continue the building process?

RealHacker avatar Apr 21 '25 05:04 RealHacker

I have also same issue installing the following from the visual studio installer solved it hope it helps....

Image

gautham9566 avatar Apr 21 '25 13:04 gautham9566