llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Broken build on MSYS2

Open 1OOyan opened this issue 3 years ago • 1 comments

Commit: f963b63afa0e057cfb9eba4d88407c6a0850a0d8 Breaks the MSYS2 build with the following messages:

llama_util.h: In constructor 'llama_mmap::llama_mmap(llama_file*)': llama_util.h:213:9: error: 'WIN32_MEMORY_RANGE_ENTRY' was not declared in this scope 213 | WIN32_MEMORY_RANGE_ENTRY range; | ^~~~~~~~~~~~~~~~~~~~~~~~ llama_util.h:214:9: error: 'range' was not declared in this scope 214 | range.VirtualAddress = addr; | ^~~~~ llama_util.h:216:14: error: 'PrefetchVirtualMemory' was not declared in this scope 216 | if (!PrefetchVirtualMemory(GetCurrentProcess(), 1, &range, 0)) { | ^~~~~~~~~~~~~~~~~~~~~

1OOyan avatar Apr 10 '23 08:04 1OOyan

Kudos for the quick action !

1OOyan avatar Apr 11 '23 13:04 1OOyan