BitNet icon indicating copy to clipboard operation
BitNet copied to clipboard

can't setup

Open hoofcushion opened this issue 9 months ago • 2 comments

(bitnet-cpp) PS C:\Users\hoofcushion\Projects\BitNet> python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s
INFO:root:Compiling the code using CMake.
ERROR:root:Error occurred while running command: Command '['cmake', '-B', 'build', '-DBITNET_X86_TL2=ON', '-T', 'ClangCL', '-DCMAKE_C_COMPILER=clang', '-DCMAKE_CXX_COMPILER=clang++']' returned non-zero exit status 1., check details in logs\generate_build_files.log

logs\generate_build_files.log

CMake Error at CMakeLists.txt:2 (project):
  Generator

    NMake Makefiles

  does not support toolset specification, but toolset

    ClangCL

  was specified.


-- Configuring incomplete, errors occurred!

hoofcushion avatar May 17 '25 06:05 hoofcushion

did you use Deceloper PowerShell for VS 2022 if used, check your VS Installer if the C++-CMake Tools for Windows, C++-Clang Compiler for Windows and MS-Build Support for LLVM-Toolset (clang) was available

duhaihuang avatar May 17 '25 07:05 duhaihuang

try see issue #180

helloshisheng avatar May 20 '25 09:05 helloshisheng