I'm trying to build a C++ project test suite in Atlasian Bamboo on Windows using CMake and Visual Studio 2015 Community. CMake and VS work fine when running under my user account, but when running them via Bamboo I get the following error:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_CXX_COMPILER could be found.
I don't think I'm getting this error for the usual reason though. CMake seems to be able to find the compiler itself just fine. Rather, it seems that the resource compiler is the source of the error. In the CMakeFiles/CMakeError.log
file, I have the following output:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe
<<options removed> CMakeCCompilerId.c
C:\Windows\system32\config\systemprofile\AppData\Local\Temp\lnk{ECA1FDDF-C2EA-4
819-AFE3-6A5E06ECA59E}.tmp(1): error RC2135: file not found: C:\Windows\system3
2\config\systemprofile\AppData\Local\Temp\lnk{8A24DD6C-9300-41A6-9CAC-B48137E0E
056}.tmp [C:\bamboo\bamboo-agent-home\...\CMakeFiles\3.6.1\CompilerIdC\CompilerIdC.vcxproj]
I don't really understand the path reported for starters. Is that a symlink or something? Why is the resource compiler even involved? Anyone have any idea why it can't find the file?