CMake can no longer bootstrap repeatedly in-source
I've compiled CMake inside Habitat until now(in the link, in do_build
you can see the steps used to build CMake): https://bldr.habitat.sh/#/pkgs/lilian/cmake/3.8.2/20170611011856
Note, compiler: GCC 7.1
Same build process switched from CMake 3.8.2 archive to 3.9.0 archive, results in these errors:
/hab/cache/src/cmake-3.9.0/Source/cmSystemTools.cxx: In static member function 'static void cmSystemTools::FindCMakeResources(const char*)':
/hab/cache/src/cmake-3.9.0/Source/cmSystemTools.cxx:2061:13: error: 'CMAKE_BOOTSTRAP_BINARY_DIR' was not declared in this scope
exe_dir = CMAKE_BOOTSTRAP_BINARY_DIR "/bin";
^~~~~~~~~~~~~~~~~~~~~~~~~~
/hab/cache/src/cmake-3.9.0/Source/cmSystemTools.cxx:2061:13: note: suggested alternative: 'CMAKE_BIN_DIR'
exe_dir = CMAKE_BOOTSTRAP_BINARY_DIR "/bin";
^~~~~~~~~~~~~~~~~~~~~~~~~~
CMAKE_BIN_DIR
/hab/cache/src/cmake-3.9.0/Source/cmSystemTools.cxx:2121:28: error: 'CMAKE_BOOTSTRAP_SOURCE_DIR' was not declared in this scope
cmSystemToolsCMakeRoot = CMAKE_BOOTSTRAP_SOURCE_DIR;
^~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:300: cmSystemTools.o] Error 1
---------------------------------------------
Error when bootstrapping CMake:
Problem while running make
---------------------------------------------
Log of errors: /hab/cache/src/cmake-3.9.0/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
I also attached cmake_bootstrap.log
.
cmake_bootstrap.log
Edited by Brad King