0 Replies Latest reply: Jan 30, 2014 6:58 PM by 1172199 RSS

    Error while building cmake

    1172199

      Hi all,

       

      I am building latest cmake2.8 from source on Solaris 10 x86. But it is giving me error message when I execute ./bootstrap:

       

      CMake 2.8.12.2, Copyright 2000-2012 Kitware, Inc.

      C compiler on this system is: cc

      C++ compiler on this system is: CC

      Makefile processor on this system is: /usr/sfw/bin/gmake

      CC is not GNU compiler

      CC has setenv

      CC has unsetenv

      CC does not have environ in stdlib.h

      CC has STL in std:: namespace

      CC has ANSI streams

      CC has streams in std:: namespace

      CC has sstream

      CC has operator!=(string, char*)

      CC does not have stl iterator_traits

      CC does not have old iterator_category

      CC has old __iterator_category

      CC has standard template allocator

      CC does not have allocator<>::rebind<>

      CC has non-standard allocator<>::max_size argument

      CC has stl containers supporting allocator objects

      CC does not have header cstddef

      CC requires template friends to use <>

      CC supports member templates

      CC has standard template specialization syntax

      CC has argument dependent lookup

      CC has struct stat with st_mtim member

      CC has ios::binary openmode

      CC has ANSI for scoping

      ---------------------------------------------

      gmake: `cmake' is up to date.

      loading initial cache file /Documents/cmake/cmake2.8/Bootstrap.cmk/InitialCacheFlags.cmake

      CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.

      CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.

      Missing variable is:

      CMAKE_C_COMPILER_ENV_VAR

      CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.

      Missing variable is:

      CMAKE_C_COMPILER

      CMake Error: Could not find cmake module file: /Documents/cmake/cmake2.8/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake

      CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.

      Missing variable is:

      CMAKE_CXX_COMPILER_ENV_VAR

      CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.

      Missing variable is:

      CMAKE_CXX_COMPILER

      CMake Error: Could not find cmake module file: /Documents/cmake/cmake2.8/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake

      CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

      CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

      -- Configuring incomplete, errors occurred!

      ---------------------------------------------

      Error when bootstrapping CMake:

      Problem while running initial CMake

       

      I have gmake on my machine as well as CC and cc and set the PATH variable in the shell. Also I noticed CC is not GNU compiler when CMake is detecting the compiler.

       

      Is it normal? Did I miss any configurations?

       

      Thanks very much