abetlen / abetlen/llama-cpp-python
Windows: CMake build failed building wheel
- Vorherrschende Sprache
- Python
- Sterne
- 10.6k
- Forks
- 1.4k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
`pip install llama-cpp-python --force-reinstall --upgrade --no-cache-dir`
pip is getting llama_cpp_python-0.2.11.tar.gz, and then begins:
```
Building wheels for collected packages: llama-cpp-python
Building wheel for llama-cpp-python (pyproject.toml) ... error
error: subprocess-exited-with-error
```
```
× Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [592 lines of output]
*** scikit-build-core 0.5.1 using CMake 3.27.6 (wheel)
*** Configuring CMake...
2023-10-02 19:06:49,865 - scikit_build_core - WARNING - Can't find a Python library, got libdir=None, ldlibrary=None, multiarch=None, masd=None
loading initial cache file C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\CMakeInit.txt
-- Building for: Visual Studio 15 2017
-- Selecting Windows SDK version 10.0.16299.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.13.26129.0
-- The CXX compiler identification is MSVC 19.13.26129.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.36.1.windows.1")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- CMAKE_SYSTEM_PROCESSOR: AMD64
-- CMAKE_GENERATOR_PLATFORM: x64
-- x86 detected
CMake Warning (dev) at CMakeLists.txt:18 (install):
Target llama has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:27 (install):
Target llama has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done (7.2s)
-- Generating done (0.1s)
-- Build files have been written to: C:/Users/David/AppData/Local/Temp/tmppl1fiav8/build
*** Building project with Visual Studio 15 2017...
Change Dir: 'C:/Users/David/AppData/Local/Temp/tmppl1fiav8/build'
Run Build Command(s): "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe" ALL_BUILD.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=15.0 /v:n
Microsoft (R) Build Engine version 15.6.82.30579 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 10/2/2023 7:06:57 PM.
Project "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\ALL_BUILD.vcxproj" (1) is building "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
Creating directory "x64\Release\ZERO_CHECK\".
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\ZERO_CHECK.vcxproj]
Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\".
InitializeBuildStatus:
Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
Checking Build System
FinalizeBuildStatus:
Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\ZERO_CHECK.vcxproj" (default targets).
Project "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\ALL_BUILD.vcxproj" (1) is building "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\vendor\llama.cpp\BUILD_INFO.vcxproj" (3) on node 1 (default targets).
PrepareForBuild:
Creating directory "x64\Release\BUILD_INFO\".
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\vendor\llama.cpp\BUILD_INFO.vcxproj]
Creating directory "x64\Release\BUILD_INFO\BUILD_INFO.tlog\".
InitializeBuildStatus:
Creating "x64\Release\BUILD_INFO\BUILD_INFO.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
Generating build details from Git
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.36.1.windows.1")
Building Custom Rule C:/Users/David/AppData/Local/Temp/pip-install-ngc7jzsd/llama-cpp-python_963c9b26c1ea46da9dcd66e33fb6f54f/vendor/llama.cpp/CMakeLists.txt
FinalizeBuildStatus:
Deleting file "x64\Release\BUILD_INFO\BUILD_INFO.tlog\unsuccessfulbuild".
Touching "x64\Release\BUILD_INFO\BUILD_INFO.tlog\BUILD_INFO.lastbuildstate".
Done Building Project "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\vendor\llama.cpp\BUILD_INFO.vcxproj" (default targets).
Project "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\ALL_BUILD.vcxproj" (1) is building "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\vendor\llama.cpp\common\common.vcxproj" (4) on node 1 (default targets).
Project "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\vendor\llama.cpp\common\common.vcxproj" (4) is building "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\vendor\llama.cpp\llama.vcxproj" (5) on node 1 (default targets).
Project "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\vendor\llama.cpp\llama.vcxproj" (5) is building "C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\vendor\llama.cpp\ggml.vcxproj" (6) on node 1 (default targets).
PrepareForBuild:
Creating directory "ggml.dir\Release\".
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\vendor\llama.cpp\ggml.vcxproj]
Creating directory "ggml.dir\Release\ggml.tlog\".
InitializeBuildStatus:
Creating "ggml.dir\Release\ggml.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
Building Custom Rule C:/Users/David/AppData/Local/Temp/pip-install-ngc7jzsd/llama-cpp-python_963c9b26c1ea46da9dcd66e33fb6f54f/vendor/llama.cpp/CMakeLists.txt
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\bin\HostX86\x64\CL.exe /c /I"C:\Users\David\AppData\Local\Temp\pip-install-ngc7jzsd\llama-cpp-python_963c9b26c1ea46da9dcd66e33fb6f54f\vendor\llama.cpp\." /nologo /W1 /WX- /diagnostics:classic /O2 /Ob2 /D _MBCS /D WIN32 /D _WINDOWS /D NDEBUG /D GGML_USE_K_QUANTS /D _CRT_SECURE_NO_WARNINGS /D _XOPEN_SOURCE=600 /D "CMAKE_INTDIR=\"Release\"" /Gm- /MD /GS /arch:AVX2 /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"ggml.dir\Release\\" /Fd"ggml.dir\Release\ggml.pdb" /Gd /TC /errorReport:queue "C:\Users\David\AppData\Local\Temp\pip-install-ngc7jzsd\llama-cpp-python_963c9b26c1ea46da9dcd66e33fb6f54f\vendor\llama.cpp\ggml.c" "C:\Users\David\AppData\Local\Temp\pip-install-ngc7jzsd\llama-cpp-python_963c9b26c1ea46da9dcd66e33fb6f54f\vendor\llama.cpp\ggml-alloc.c" "C:\Users\David\AppData\Local\Temp\pip-install-ngc7jzsd\llama-cpp-python_963c9b26c1ea46da9dcd66e33fb6f54f\vendor\llama.cpp\k_quants.c"
ggml.c
c:\users\david\appdata\local\temp\pip-install-ngc7jzsd\llama-cpp-python_963c9b26c1ea46da9dcd66e33fb6f54f\vendor\llama.cpp\ggml.h(2076): error C2146: syntax error: missing ')' before identifier 'x' [C:\Users\David\AppData\Local\Temp\tmppl1fiav8\build\vendor\llama.cpp\ggml.vcxproj]
```
... followed by hundreds of similar syntax errors before CMake gives up.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.