[CMake] Why can't I build CMake on Centos6 32-bit?

Kent Williams nkwmailinglists at gmail.com
Tue Feb 7 12:36:25 EST 2017


This used to work.
Linux build6.leepfrog.com 2.6.32-642.6.2.el6.i686 #1 SMP Wed Oct 26
06:14:53 UTC 2016 i686 i686 i386 GNU/Linux

gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)
The first part of the bootstrap succeeds, and then running the second stage
yields this:

loading initial cache file
/home/kwilliams/develop/cmake/build6/Bootstrap.cmk/InitialCacheFlags.cmake
CMake Error at Modules/CMakeCompilerIdDetection.cmake:28 (list):
  list sub-command REMOVE_ITEM requires two or more arguments.
Call Stack (most recent call first):
  Modules/CMakeDetermineCompilerId.cmake:114 (compiler_id_detection)
  Modules/CMakeDetermineCompilerId.cmake:132
(CMAKE_DETERMINE_COMPILER_ID_WRITE)
  Modules/CMakeDetermineCompilerId.cmake:30
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:11 (project)


CMake Error at Modules/CMakeDetermineCompilerId.cmake:131 (file):
  file problem creating directory:
  /home/kwilliams/develop/cmake/build6/CMakeFiles/3.7.2/CompilerIdC
Call Stack (most recent call first):
  Modules/CMakeDetermineCompilerId.cmake:30
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:11 (project)


CMake Error at Modules/CMakeDetermineCompilerId.cmake:131 (file):
  file problem creating directory:
  /home/kwilliams/develop/cmake/build6/CMakeFiles/3.7.2/CompilerIdC
Call Stack (most recent call first):
  Modules/CMakeDetermineCompilerId.cmake:30
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:11 (project)


CMake Error at Modules/CMakeDetermineCompilerId.cmake:131 (file):
  file problem creating directory:
  /home/kwilliams/develop/cmake/build6/CMakeFiles/3.7.2/CompilerIdC
Call Stack (most recent call first):
  Modules/CMakeDetermineCompilerId.cmake:30
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:11 (project)


-- The C compiler identification is unknown
CMake Error: Could not find cmake module file:
/home/kwilliams/develop/cmake/build6/CMakeFiles/3.7.2/CMakeCCompiler.cmake
CMake Error at Modules/CMakeCompilerIdDetection.cmake:28 (list):
  list sub-command REMOVE_ITEM requires two or more arguments.
Call Stack (most recent call first):
  Modules/CMakeDetermineCompilerId.cmake:114 (compiler_id_detection)
  Modules/CMakeDetermineCompilerId.cmake:132
(CMAKE_DETERMINE_COMPILER_ID_WRITE)
  Modules/CMakeDetermineCompilerId.cmake:30
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  Modules/CMakeDetermineCXXCompiler.cmake:104 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:11 (project)


CMake Error at Modules/CMakeDetermineCompilerId.cmake:131 (file):
  file problem creating directory:
  /home/kwilliams/develop/cmake/build6/CMakeFiles/3.7.2/CompilerIdCXX
Call Stack (most recent call first):
  Modules/CMakeDetermineCompilerId.cmake:30
(CMAKE_DETERMINE_COMPILER_ID_BUILD)
  Modules/CMakeDetermineCXXCompiler.cmake:104 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:11 (project)


-- The CXX compiler identification is unknown
CMake Error: Could not find cmake module file:
/home/kwilliams/develop/cmake/build6/CMakeFiles/3.7.2/CMakeCXXCompiler.cmake
-- Check for working C compiler: /usr/bin/gcc
CMake Error at Modules/CMakeTestCCompiler.cmake:37 (try_compile):
  Unknown extension ".c" for file

    /home/kwilliams/develop/cmake/build6/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:11 (project)


-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at Modules/CMakeTestCCompiler.cmake:51 (message):
  The C compiler "/usr/bin/gcc" 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:11 (project)


-- Configuring incomplete, errors occurred!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170207/d97f65a6/attachment.html>


More information about the CMake mailing list