cocktailpeanut / dalai

The simplest way to run LLaMA on your local machine
https://cocktailpeanut.github.io/dalai
13.09k stars 1.42k forks source link

CMakeCache.txt error #437

Open alexwyattdev opened 1 year ago

alexwyattdev commented 1 year ago

Windows 10.

I tried everything:

So far no matter what I do, the result is always the error below. And then it does nothing, just hangs. The cache.txt does exist... I am assuming that it tries removing it before it is getting created at a later step.

[System.Console]::OutputEncoding=[System.Console]::InputEncoding=[System.Text.Encoding]::UTF8; Remove-Item -path C:\Users\abc\dalai\alpaca\build\CMakeCache.txt
Remove-Item : Cannot find path 'C:\Users\abc\dalai\alpaca\build\CMakeCache.txt' because it does not exist.
At line:1 char:96
+ ... ing]::UTF8; Remove-Item -path C:\Users\abc\dalai\alpaca\build\CMake ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\abc\...\CMakeCache.txt:String) [Remove-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

PS C:\Users\abc\dalai\alpaca> exit
exec: C:\Users\abc\dalai\venv\Scripts\cmake .. in C:\Users\abc\dalai\alpaca\build
# Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
#
# PS C:\Users\alexu\dalai\alpaca\build>
#
# [System.Console]::OutputEncoding=[System.Console]::InputEncoding=[System.Text.Encoding]::UTF8; C:\Users\abc\dalai\venv\Scripts\cmake ..

#
# -- Building for: Visual Studio 17 2022

# -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.

# -- The C compiler identification is MSVC 19.35.32217.1

# -- The CXX compiler identification is MSVC 19.35.32217.1

# -- Detecting C compiler ABI info

# -- Detecting C compiler ABI info - done

# -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile featuresX
-- Detecting C compile features - doneX

# -- Detecting CXX compiler ABI info

# -- Detecting CXX compiler ABI info - done

# -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile featuresX
-- Detecting CXX compile features - doneX

# -- CMAKE_SYSTEM_PROCESSOR: AMD64

# -- x86 detectedX
-- Configuring done (10.2s)

# -- Generating done (0.1s)

# -- Build files have been written to: C:/Users/abc/dalai/alpaca/build

# PS C:\Users\abc\dalai\alpaca\build>
KILL
# exit