abetlen / abetlen/llama-cpp-python
fatal error: intrin.h: No such file or directory
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 1.4k
- PR merge metrics
- PR metrics pending
Description
# Prerequisites
Please answer the following questions for yourself before submitting an issue.
- [Y] I am running the latest code. Development is very rapid so there are no tagged versions as of now.
- [Y] I carefully followed the [README.md](https://github.com/abetlen/llama-cpp-python/blob/main/README.md).
- [Y] I [searched using keywords relevant to my issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests) to make sure that I am creating a new issue that is not already open (or closed).
- [N] I reviewed the [Discussions](https://github.com/abetlen/llama-cpp-python/discussions), and have a new bug or useful enhancement to share.
# Expected Behavior
it installs
# Current Behavior
It does not install with C:\Users\*\AppData\Local\Temp\pip-install-oobu6pcp\llama-cpp-python_35f664041e0a4a2180c223be9af25db8\vendor\llama.cpp\ggml\src\ggml-impl.h:445:20: fatal error: intrin.h: No such file or directory
#include
# Environment and Context
Windows 10, basic minGW from mingw install manager
```
$ python3 --version 3.11.9
$ make --version GNU Make 3.81
$ g++ --version 6.3.0
```
# Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
# Steps to Reproduce
Please provide detailed steps for reproducing the issue. We are not sitting in front of your screen, so the more detail the better.
Use this command in console as suggested to solve "nmake" issue
PS C:\MinGW> $env:CMAKE_GENERATOR = "MinGW Makefiles"
PS C:\MinGW> $env:CMAKE_ARGS = "-DGGML_OPENBLAS=on -DCMAKE_RC_COMPILER=windres -DCMAKE_C_COMPILER=C:/minGW/bin/gcc.exe -DCMAKE_CXX_COMPILER=C:/minGW/bin/g++.exe"
PS C:\MinGW> pip install llama-cpp-python
# Failure Logs
Collecting llama-cpp-python
Using cached llama_cpp_python-0.2.90.tar.gz (63.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: typing-extensions>=4.5.0 in c:\users\gleb-\appdata\local\programs\python\python310\lib\site-packages (from llama-cpp-python) (4.12.2)
Collecting numpy>=1.20.0 (from llama-cpp-python)
Using cached numpy-2.1.1-cp310-cp310-win_amd64.whl.metadata (59 kB)
Collecting diskcache>=5.6.1 (from llama-cpp-python)
Using cached diskcache-5.6.3-py3-none-any.whl.metadata (20 kB)
Requirement already satisfied: jinja2>=2.11.3 in c:\users\gleb-\appdata\local\programs\python\python310\lib\site-packages (from llama-cpp-python) (3.1.4)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\gleb-\appdata\local\programs\python\python310\lib\site-packages (from jinja2>=2.11.3->llama-cpp-python) (2.1.5)
Using cached diskcache-5.6.3-py3-none-any.whl (45 kB)
Using cached numpy-2.1.1-cp310-cp310-win_amd64.whl (12.9 MB)
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
╰─> [103 lines of output]
*** scikit-build-core 0.10.6 using CMake 3.30.3 (wheel)
*** Configuring CMake...
2024-09-12 23:56:53,094 - 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\gleb-\AppData\Local\Temp\tmpanlzio2f\build\CMakeInit.txt
-- Building for: MinGW Makefiles
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/minGW/bin/gcc.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:/minGW/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.42.0.windows.2")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
-- 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
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
CMake Warning at vendor/llama.cpp/ggml/src/CMakeLists.txt:167 (message):
OpenMP not found
-- Using llamafile
-- Warning: ccache not found - consider installing it for faster compilation or disable this warning with GGML_CCACHE=OFF
-- CMAKE_SYSTEM_PROCESSOR: AMD64
-- x86 detected
CMake Warning (dev) at CMakeLists.txt:9 (install):
Target llama has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION.
Call Stack (most recent call first):
CMakeLists.txt:73 (llama_cpp_python_install_target)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:17 (install):
Target llama has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION.
Call Stack (most recent call first):
CMakeLists.txt:73 (llama_cpp_python_install_target)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:9 (install):
Target ggml has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION.
Call Stack (most recent call first):
CMakeLists.txt:74 (llama_cpp_python_install_target)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:17 (install):
Target ggml has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION.
Call Stack (most recent call first):
CMakeLists.txt:74 (llama_cpp_python_install_target)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done (5.1s)
-- Generating done (0.2s)
CMake Warning:
Manually-specified variables were not used by the project:
GGML_OPENBLAS
-- Build files have been written to: C:/Users/gleb-/AppData/Local/Temp/tmpanlzio2f/build
*** Building project with MinGW Makefiles...
Change Dir: 'C:/Users/gleb-/AppData/Local/Temp/tmpanlzio2f/build'
Run Build Command(s): C:/Users/gleb-/AppData/Local/Temp/pip-build-env-p17apga4/normal/Lib/site-packages/cmake/data/bin/cmake.exe -E env VERBOSE=1 C:/MinGW/bin/mingw32-make.exe -f Makefile
C:\Users\gleb-\AppData\Local\Temp\pip-build-env-p17apga4\normal\Lib\site-packages\cmake\data\bin\cmake.exe -SC:\Users\gleb-\AppData\Local\Temp\pip-install-6l4r25h_\llama-cpp-python_7424120319a14bf594d5f61f0a295284 -BC:\Users\gleb-\AppData\Local\Temp\tmpanlzio2f\build --check-build-system CMakeFiles\Makefile.cmake 0
C:\Users\gleb-\AppData\Local\Temp\pip-build-env-p17apga4\normal\Lib\site-packages\cmake\data\bin\cmake.exe -E cmake_progress_start C:\Users\gleb-\AppData\Local\Temp\tmpanlzio2f\build\CMakeFiles C:\Users\gleb-\AppData\Local\Temp\tmpanlzio2f\build\\CMakeFiles\progress.marks
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\Makefile2 all
mingw32-make.exe[1]: Entering directory 'C:/Users/gleb-/AppData/Local/Temp/tmpanlzio2f/build'
C:/MinGW/bin/mingw32-make.exe -f vendor\llama.cpp\ggml\src\CMakeFiles\ggml.dir\build.make vendor/llama.cpp/ggml/src/CMakeFiles/ggml.dir/depend
mingw32-make.exe[2]: Entering directory 'C:/Users/gleb-/AppData/Local/Temp/tmpanlzio2f/build'
C:\Users\gleb-\AppData\Local\Temp\pip-build-env-p17apga4\normal\Lib\site-packages\cmake\data\bin\cmake.exe -E cmake_depends "MinGW Makefiles" C:\Users\gleb-\AppData\Local\Temp\pip-install-6l4r25h_\llama-cpp-python_7424120319a14bf594d5f61f0a295284 C:\Users\gleb-\AppData\Local\Temp\pip-install-6l4r25h_\llama-cpp-python_7424120319a14bf594d5f61f0a295284\vendor\llama.cpp\ggml\src C:\Users\gleb-\AppData\Local\Temp\tmpanlzio2f\build C:\Users\gleb-\AppData\Local\Temp\tmpanlzio2f\build\vendor\llama.cpp\ggml\src C:\Users\gleb-\AppData\Local\Temp\tmpanlzio2f\build\vendor\llama.cpp\ggml\src\CMakeFiles\ggml.dir\DependInfo.cmake "--color="
mingw32-make.exe[2]: Leaving directory 'C:/Users/gleb-/AppData/Local/Temp/tmpanlzio2f/build'
C:/MinGW/bin/mingw32-make.exe -f vendor\llama.cpp\ggml\src\CMakeFiles\ggml.dir\build.make vendor/llama.cpp/ggml/src/CMakeFiles/ggml.dir/build
mingw32-make.exe[2]: Entering directory 'C:/Users/gleb-/AppData/Local/Temp/tmpanlzio2f/build'
[ 3%] Building C object vendor/llama.cpp/ggml/src/CMakeFiles/ggml.dir/ggml.c.obj
cd /d C:\Users\gleb-\AppData\Local\Temp\tmpanlzio2f\build\vendor\llama.cpp\ggml\src && C:\minGW\bin\gcc.exe -DGGML_BUILD -DGGML_SCHED_MAX_COPIES=4 -DGGML_SHARED -DGGML_USE_LLAMAFILE -D_CRT_SECURE_NO_WARNINGS -D_WIN32_WINNT=0x602 -D_XOPEN_SOURCE=600 -Dggml_EXPORTS @CMakeFiles/ggml.dir/includes_C.rsp -O3 -DNDEBUG -std=gnu11 -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wdouble-promotion -march=native -MD -MT vendor/llama.cpp/ggml/src/CMakeFiles/ggml.dir/ggml.c.obj -MF CMakeFiles\ggml.dir\ggml.c.obj.d -o CMakeFiles\ggml.dir\ggml.c.obj -c C:\Users\gleb-\AppData\Local\Temp\pip-install-6l4r25h_\llama-cpp-python_7424120319a14bf594d5f61f0a295284\vendor\llama.cpp\ggml\src\ggml.c
In file included from C:\Users\gleb-\AppData\Local\Temp\pip-install-6l4r25h_\llama-cpp-python_7424120319a14bf594d5f61f0a295284\vendor\llama.cpp\ggml\src\ggml.c:4:0:
C:\Users\gleb-\AppData\Local\Temp\pip-install-6l4r25h_\llama-cpp-python_7424120319a14bf594d5f61f0a295284\vendor\llama.cpp\ggml\src\ggml-impl.h:445:20: fatal error: intrin.h: No such file or directory
#include
^
compilation terminated.
vendor\llama.cpp\ggml\src\CMakeFiles\ggml.dir\build.make:75: recipe for target 'vendor/llama.cpp/ggml/src/CMakeFiles/ggml.dir/ggml.c.obj' failed
mingw32-make.exe[2]: *** [vendor/llama.cpp/ggml/src/CMakeFiles/ggml.dir/ggml.c.obj] Error 1
mingw32-make.exe[2]: Leaving directory 'C:/Users/gleb-/AppData/Local/Temp/tmpanlzio2f/build'
CMakeFiles\Makefile2:190: recipe for target 'vendor/llama.cpp/ggml/src/CMakeFiles/ggml.dir/all' failed
mingw32-make.exe[1]: *** [vendor/llama.cpp/ggml/src/CMakeFiles/ggml.dir/all] Error 2
mingw32-make.exe[1]: Leaving directory 'C:/Users/gleb-/AppData/Local/Temp/tmpanlzio2f/build'
Makefile:134: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2
*** CMake build failed
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (llama-cpp-python)
Contributor guide
Assessment
This issue has not been assessed yet.