在Linux系统下,cmake出现错误,同一个系统,有个相似版本一个可以正常编译,一个编译出现错误,想请教下有谁遇到过类似的问题嘛。操作和错误内容 如下:
[root@jerry build]# cmake -DCMAKE_BUILD_TYPE=Release ..
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:177 (file):
file failed to open for writing (No such file or directory):
/mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/CMakeOutput.log
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
CMake Error: Could not open file for write in copy operation /mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/3.6.2/CMakeSystem.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:189 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file):
file problem creating directory:
/mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/3.6.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:121 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:4 (project)
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file):
file problem creating directory:
/mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/3.6.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:121 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:4 (project)
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file):
file problem creating directory:
/mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/3.6.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:121 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:4 (project)
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file):
file problem creating directory:
/mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/3.6.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:121 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:4 (project)
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:642 (file):
file failed to open for writing (No such file or directory):
/mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/CMakeError.log
Call Stack (most recent call first):
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:55 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:121 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:4 (project)
-- The C compiler identification is unknown
CMake Error: Could not open file for write in copy operation /mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/3.6.2/CMakeCCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:184 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
CMake Error: Could not find cmake module file: /mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/3.6.2/CMakeCCompiler.cmake
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file):
file problem creating directory:
/mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/3.6.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCXXCompiler.cmake:113 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:4 (project)
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file):
file problem creating directory:
/mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/3.6.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCXXCompiler.cmake:113 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:4 (project)
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:642 (file):
file failed to open for writing (No such file or directory):
/mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/CMakeError.log
Call Stack (most recent call first):
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:55 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
/usr/local/share/cmake-3.6/Modules/CMakeDetermineCXXCompiler.cmake:113 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:4 (project)
-- The CXX compiler identification is unknown
CMake Error: Could not open file for write in copy operation /mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/3.6.2/CMakeCXXCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeDetermineCXXCompiler.cmake:179 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
CMake Error: Could not find cmake module file: /mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/3.6.2/CMakeCXXCompiler.cmake
-- Check for working C compiler: /usr/bin/cc
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:35 (file):
file failed to open for writing (No such file or directory):
/mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/CMakeTmp/testCCompiler.c
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:47 (try_compile):
Unknown extension ".c" for file
/mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/CMakeTmp/testCCompiler.c
try_compile() works only for enabled languages. Currently these are:
C CXX
See project() command to enable other languages.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:58 (file):
file failed to open for writing (No such file or directory):
/mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeFiles/CMakeError.log
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
-- Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: /mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeCache.txt.tmp
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. /mnt/mgw12/svr_vgateway/01_Trunk/src/MGW/MGW/build/CMakeCache.txt
CMake Error: : System Error: Permission denied