When I try to build BitShares on my computer, I get this error:
bitshares MyUserName$ cmake .
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeDetermineSystem.cmake:175 (file):
file Internal CMake error when trying to open file:
/Users/MyUserName/bitshares/CMakeFiles/CMakeOutput.log for writing.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
CMake Error: Could not open file for write in copy operation /Users/MyUserName/bitshares/CMakeFiles/3.0.0/CMakeSystem.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeDetermineSystem.cmake:187 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:116 (file):
file problem creating directory:
/Users/MyUserName/bitshares/CMakeFiles/3.0.0/CompilerIdC
Call Stack (most recent call first):
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCCompiler.cmake:108 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:2 (project)
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:116 (file):
file problem creating directory:
/Users/MyUserName/bitshares/CMakeFiles/3.0.0/CompilerIdC
Call Stack (most recent call first):
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCCompiler.cmake:108 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:2 (project)
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:116 (file):
file problem creating directory:
/Users/MyUserName/bitshares/CMakeFiles/3.0.0/CompilerIdC
Call Stack (most recent call first):
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCCompiler.cmake:108 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:2 (project)
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:529 (file):
file Internal CMake error when trying to open file:
/Users/MyUserName/bitshares/CMakeFiles/CMakeError.log for writing.
Call Stack (most recent call first):
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCCompiler.cmake:108 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:2 (project)
-- The C compiler identification is unknown
CMake Error: Could not open file for write in copy operation /Users/MyUserName/bitshares/CMakeFiles/3.0.0/CMakeCCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeDetermineCCompiler.cmake:170 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
CMake Error: Could not find cmake module file: /Users/MyUserName/bitshares/CMakeFiles/3.0.0/CMakeCCompiler.cmake
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:116 (file):
file problem creating directory:
/Users/MyUserName/bitshares/CMakeFiles/3.0.0/CompilerIdCXX
Call Stack (most recent call first):
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCXXCompiler.cmake:103 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:2 (project)
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:116 (file):
file problem creating directory:
/Users/MyUserName/bitshares/CMakeFiles/3.0.0/CompilerIdCXX
Call Stack (most recent call first):
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCXXCompiler.cmake:103 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:2 (project)
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:529 (file):
file Internal CMake error when trying to open file:
/Users/MyUserName/bitshares/CMakeFiles/CMakeError.log for writing.
Call Stack (most recent call first):
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
/opt/local/share/cmake-3.0/Modules/CMakeDetermineCXXCompiler.cmake:103 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:2 (project)
-- The CXX compiler identification is unknown
CMake Error: Could not open file for write in copy operation /Users/MyUserName/bitshares/CMakeFiles/3.0.0/CMakeCXXCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeDetermineCXXCompiler.cmake:168 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
CMake Error: Could not find cmake module file: /Users/MyUserName/bitshares/CMakeFiles/3.0.0/CMakeCXXCompiler.cmake
-- Check for working C compiler: /usr/bin/cc
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:35 (file):
file Internal CMake error when trying to open file:
/Users/MyUserName/bitshares/CMakeFiles/CMakeTmp/testCCompiler.c for
writing.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:47 (try_compile):
Unknown extension ".c" for file
/Users/MyUserName/bitshares/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:2 (project)
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:58 (file):
file Internal CMake error when trying to open file:
/Users/MyUserName/bitshares/CMakeFiles/CMakeError.log for writing.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
CMake Error at /opt/local/share/cmake-3.0/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:2 (project)
-- Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: /Users/MyUserName/bitshares/CMakeCache.txt.tmp
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. /Users/MyUserName/bitshares/CMakeCache.txt
CMake Error: : System Error: Permission denied
John-Georges-MacBook-Air-3:bitshares MyUserName$
My computer is a MacBook Air Mid-2011 with OS X 10.10.4 (Build 14E26a) installed, and trim is enabled using Trim Enabler. I have also activated Continuity using the Continuity Activation tool. It definitely seems that something is wrong with Cmake, but I have no idea how to go about fixing it.
Might be an issue with disk space or permissions, is your disk full or does the bitshares directory belong to another account? (unlikely I guess but it happens.. :) )