Closed
Description
CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/sraj03/Desktop/FlaskCWH/sentencepiece/build/CMakeFiles/CMakeScratch/TryCompile-gtv4rs
Run Build Command(s):C:/Program Files/CMake/bin/cmake.exe -E env VERBOSE=1 nmake -f Makefile /nologo cmTC_79b47\fast && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\Hostx64\x64\nmake.exe" -f CMakeFiles\cmTC_79b47.dir\build.make /nologo -L CMakeFiles\cmTC_79b47.dir\build
Building C object CMakeFiles/cmTC_79b47.dir/testCCompiler.c.obj
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_cl_compile_depends --dep-file=CMakeFiles\cmTC_79b47.dir\testCCompiler.c.obj.d --working-dir=C:\Users\sraj03\Desktop\FlaskCWH\sentencepiece\build\CMakeFiles\CMakeScratch\TryCompile-gtv4rs --filter-prefix="Note: including file: " -- C:\PROGRA~2\MICROS~3\2022\BUILDT~1\VC\Tools\MSVC\1435~1.322\bin\Hostx64\x64\cl.exe @C:\Users\sraj03\AppData\Local\Temp\nm3498.tmp
testCCompiler.c
Linking C executable cmTC_79b47.exe
"C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_79b47.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~2\MICROS~3\2022\BUILDT~1\VC\Tools\MSVC\1435~1.322\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\cmTC_79b47.dir\objects1.rsp @C:\Users\sraj03\AppData\Local\Temp\nm3787.tmp
Visual Studio Incremental Link with embedded manifests
Create CMakeFiles\cmTC_79b47.dir/manifest.rc
Create empty: CMakeFiles\cmTC_79b47.dir/embed.manifest
RC Pass 1:
rc /fo CMakeFiles\cmTC_79b47.dir/manifest.res CMakeFiles\cmTC_79b47.dir/manifest.rc
RC Pass 1: command "rc /fo CMakeFiles\cmTC_79b47.dir/manifest.res CMakeFiles\cmTC_79b47.dir/manifest.rc" failed (exit code 0) with the following output:
The system cannot find the file specifiedNMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_79b47.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~2\MICROS~3\2022\BUILDT~1\VC\Tools\MSVC\1435~1.322\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\cmTC_79b47.dir\objects1.rsp @C:\Users\sraj03\AppData\Local\Temp\nm3787.tmp' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\Hostx64\x64\nmake.exe" -f CMakeFiles\cmTC_79b47.dir\build.make /nologo -L CMakeFiles\cmTC_79b47.dir\build' : return code '0x2'
Stop.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:18 (project)
-- Configuring incomplete, errors occurred!
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
jeffchuber commentedon Mar 29, 2023
@shivamatkearney thanks for reporting this! What version of Windows are you running? What version of Python? Thank you!
shivamatkearney commentedon Mar 30, 2023
@jeffchuber I am using Windows 11 and Python version 3.11.2
ayush-vibrant commentedon Mar 30, 2023
Facing the same issue on macosx with python 3.9.6
Below is the output of
pip install chromadb
turtleeeeee commentedon Mar 31, 2023
Same problem for python 3.9.6 on Mac OS 13.1
ayush-vibrant commentedon Mar 31, 2023
quick update: for now I am using python 3.10.10 and it is working fine for me. For my use-case 3.11 isn't a hard blocker.
GingerAle3101 commentedon Apr 3, 2023
3.10.10 is actually the only python version that's allowing me to pip install chromadb, fyi.
anentropic commentedon Apr 3, 2023
I have this problem with Python 3.10.3 on macOS 13.2 (M1)
alejandrogomez314 commentedon Apr 26, 2023
@ayush-vibrant I was able to resolve this issue by setting
export HNSWLIB_NO_NATIVE=1
and running pip install again. Would be good to have this issue resolved though.anentropic commentedon Apr 26, 2023
for me I get a different error then:
I have tried via both
pip install
andpoetry add
Both have same error, but Poetry also appends a message:
If I run
pip wheel --use-pep517 "hnswlib (==0.7.0)"
I get the same errorIf PEP-517 is the problem, I tried this:
sarang-lvs commentedon May 9, 2023
I had the same issue and I am not using Conda, with Windows. I fixed it in following way:
Alain1405 commentedon May 11, 2023
This appears to be related to nmslib/hnswlib#442
Brandl commentedon May 11, 2023
As a datapoint, moving from System 3.10.6 to pyenv and 3.11.2 solved the problem.
Ubuntu 22.04
29 remaining items