-
Notifications
You must be signed in to change notification settings - Fork 509
The C compiler identification is unknown #588
Comments
Do you have Visual Studio 2015 installed? Could you please try running the build in |
I have Visual Studio 2015 Community installed, with C# and C++ modules. Tried to run build.bat with VS2015 x64 Native Tools Command Prompt, but this error still happened. |
I findout this error because I install CMake before VS. Remove CMake and reinstall fix this |
I have spent hours trying to figure this out, but re-installing CMake AFTER VS finally got it all working. |
tried, failed。@cipher982 |
same as @walter211 sad |
@walter211, @mafanshu: Are your guys uninstalling CMake and reinstalling or just using the modify option? |
In my case this issue was being caused by not having the Spectre mitigated libraries installed. (Checking the CMake logs reveals the warning "warning MSB8038: Spectre mitigation is enabled but Spectre mitigated libraries are not found." followed by an error to link Spectre mitigations are supposed to be off by default, but they aren't in Visual Studio 2017. The workaround is to install the "VC++ 2017 version 15.9 v14.16 Libs for Spectre (x86 and x64)" component or to use Visual Studio 2019 instead (which does not have this issue.) |
I installed cmake.
When trying to run the build.bat, I got this error.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.
The text was updated successfully, but these errors were encountered: