Skip to content

Compile bug: Unable to compile llama-server from source. #15675

@vladimirarevshatyan

Description

@vladimirarevshatyan

Git commit

d82f6aa

Operating systems

Windows

GGML backends

CUDA

Problem description & steps to reproduce

Trying to compile the llama from source.
First of all, cmake_minimum_required() is a must for windows, so I have added that.

Finally, when building via:
cmake --build build --config Release -t llama-server

Error is following:

CUSTOMBUILD : CMake error : Not a file: D:/AI/llama.cpp/tools/server/scripts/xxd.cmake [D:\AI\llama.cpp\tools\server\bu
ild\llama-server.vcxproj]
CUSTOMBUILD : CMake error : Error processing file: D:/AI/llama.cpp/tools/server/scripts/xxd.cmake [D:\AI\llama.cpp\tool
s\server\build\llama-server.vcxproj]

I double checked, and indeed there is no such folder called scripts

First Bad Commit

No response

Compile command

cmake --build build --config Release -t llama-server

Relevant log output

cmake --build build --config Release -t llama-server
MSBuild version 17.14.19+164abd434 for .NET Framework

  2>Generating loading.html.hpp
  1>Generating index.html.gz.hpp
CUSTOMBUILD : CMake error : Not a file: D:/AI/llama.cpp/tools/server/scripts/xxd.cmake [D:\AI\llama.cpp\tools\server\bu
ild\llama-server.vcxproj]
CUSTOMBUILD : CMake error : Error processing file: D:/AI/llama.cpp/tools/server/scripts/xxd.cmake [D:\AI\llama.cpp\tool
s\server\build\llama-server.vcxproj]
  The system cannot find the batch label specified - VCEnd
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(237,5): e
rror MSB8066: Custom build for 'D:\AI\llama.cpp\tools\server\build\CMakeFiles\bbc0fdddb73a7891d4d805872b3839cd\loading.
html.hpp.rule' exited with code 1. [D:\AI\llama.cpp\tools\server\build\llama-server.vcxproj]
CUSTOMBUILD : CMake error : Not a file: D:/AI/llama.cpp/tools/server/scripts/xxd.cmake [D:\AI\llama.cpp\tools\server\bu
ild\llama-server.vcxproj]
CUSTOMBUILD : CMake error : Error processing file: D:/AI/llama.cpp/tools/server/scripts/xxd.cmake [D:\AI\llama.cpp\tool
s\server\build\llama-server.vcxproj]
  The system cannot find the batch label specified - VCEnd
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(237,5): e
rror MSB8066: Custom build for 'D:\AI\llama.cpp\tools\server\build\CMakeFiles\bbc0fdddb73a7891d4d805872b3839cd\index.ht
ml.gz.hpp.rule' exited with code 1. [D:\AI\llama.cpp\tools\server\build\llama-server.vcxproj]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions