help cmak
i try many way but i have a problem wen i use
(bitnet-venv) (ai) root@mgtm3na:~/BitNet# python setup_env.py --hf-repo HF1BitLLM/Llama3-8B-1.58-100B-tokens -q i2_s and this is the result INFO:root:Compiling the code using CMake. ERROR:root:Error occurred while running command: Command '['cmake', '--build', 'build', '--config', 'Release']' returned non-zero exit status 2., check details in logs/compile.log
I had faced same issue on my sbc. After checking log I saw that it was conversion issue while compiling cpp file. So I changed the compiler to Clang-18 and it worked.
I updated the CMake execution command in setup_env.py file at line 195 from
run_command(["cmake", "-B", "build", *COMPILER_EXTRA_ARGS[arch], *OS_EXTRA_ARGS.get(platform.system(), [])], log_step="generate_build_files")
to
run_command(["cmake", "-B", "build", "-DBITNET_ARM_TL1=ON", "-DCMAKE_C_COMPILER=clang-18", "-DCMAKE_CXX_COMPILER=clang++-18", *COMPILER_EXTRA_ARGS[arch], *OS_EXTRA_ARGS.get(platform.system(), [])], log_step="generate_build_files")