[cmake-developers] [CMake 0015951]: cannot configure cmake

Mantis Bug Tracker mantis at public.kitware.com
Tue Feb 2 17:51:02 EST 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15951 
====================================================================== 
Reported By:                Kemin Zhou
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15951
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2016-02-02 17:51 EST
Last Modified:              2016-02-02 17:51 EST
====================================================================== 
Summary:                    cannot configure cmake
Description: 
Cannot pass the configuration step of cmake while trying to build cmake.  
The problem is the the g++ compiler is in /usr/local 
which g++
/usr/local/bin/g++

 g++ --version
g++ (GCC) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.

echo $CXX
/usr/local/bin/g++



./configure
---------------------------------------------
CMake 3.5.0-rc1, Copyright 2000-2016 Kitware, Inc.
C compiler on this system is: cc
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate C++ compiler on this system.
Please specify one using environment variable CXX.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors:
/da/coding/download/cmake-3.5.0-rc1/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------

When I look into the log file:
I found the location and the reason for the failure:

cmake_bootstrap_12256_test.cxx:5:23: fatal error: iostream.h: No such file or
directory
compilation terminated.
Test failed to compile
Try: /usr/local/bin/g++
Line: /usr/local/bin/g++  -DTEST3 cmake_bootstrap_12256_test.cxx -o
cmake_bootstrap_12256_test

==== it is not using the include directory:
/usr/local/include/c++/5.3.0

CPLUS_INCLUDE_PATH=/usr/local/include/c++/5.3.0

the configuration script should add this variable to the make file.




Steps to Reproduce: 
You need to install the gcc to /usr/local

Additional Information: 
It is the -I$CPLUS_INCLUDE_PATH 
that is not being used by cmake
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-02-02 17:51 Kemin Zhou     New Issue                                    
======================================================================



More information about the cmake-developers mailing list