我在 buildbot slave 中运行了一个虚拟编译。与 buildbot 用户一起运行时,我得到:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
...
cc1: error: /usr/local/include/x86_64-linux-gnu: Permission denied
/usr/local/include/x86_64-linux-gnu 不存在但如果我手动运行它 su 我得到:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
依此类推,我可以稍后制作并运行生成的可执行文件,我假设与项目文件权限无关,因为所有文件都属于 buildbot 用户
命令运行只是 cmake 。操作系统为 ubuntu 12.04.1 LTS 服务器版
谢谢