[CMake] cmake 3.7.2 centos 7 :: kwsys.testSystemTools (Failed)

Adrian Sevcenco Adrian.Sevcenco at cern.ch
Thu Feb 16 03:32:02 EST 2017


On 02/15/2017 09:04 PM, Chuck Atkins wrote:
> Hi Adrian,
Hi! and thank you for looking into this problem!

>     So, would this imply that cmake is not supported on EL7 because gcc
>     does not support cxx11 ?
>
>
> That's not really what's happening.  CMake is testing the C compiler to
> determine whether or not it supports C11 features and the C++ compiler
> to see if it supports C++11.  The error messages are expected in many of
> the test cases.  Here it's jsut checking to see if what it knows about
> the features supported by the specific version of GCC line up correctly
> with reality.  i.e. CMake thinks that gcc 4.8.2 supports certain
> features so it tests them to make sure.  So it's not saying that CMake
> isn't supported, just that the 1 specific test failed for some reason.

>
>
>
>     So, does anyone have any idea what is the latest 3.x version that
>     can be built on centos 7?
>
>
> All that being said, I wasn't able to reproduce the error with the
> current 3.7.2 release:
>
> [chuck.atkins at deepthought v3.7.2]$ lsb_release -d
> Description:    CentOS Linux release 7.3.1611 (Core)
> [chuck.atkins at deepthought v3.7.2]$ gcc --version
> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
> ...
> [chuck.atkins at deepthought v3.7.2]$ ../../source/v3.7.2/bootstrap
> --parallel=28
> ...
> CMake has bootstrapped.  Now run gmake.
> [chuck.atkins at deepthought v3.7.2]$ make -j28
> ...
> 100%] Built target ctest
> [chuck.atkins at deepthought v3.7.2]$ ./bin/ctest -j 28
> ...
> 100% tests passed, 0 tests failed out of 431
>
> Label Time Summary:
> Label1    =   0.51 sec (1 test)
> Label2    =   0.51 sec (1 test)
>
> Total Test time (real) = 247.03 sec
> [chuck.atkins at deepthought v3.7.2]$
>
> What specific versionof EL7 are you running and which version of GCC?
the standard ones :
lsb_release -d
Description:    CentOS Linux release 7.3.1611 (Core)

gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)

i try to create cmake rpm based on the spec of
cmake-3.6.2-6.fc25.src.rpm
from which i removed most of the patches (i just want an rpm for centos 
7) and used source of 3.7.2

Thank you!!
Adrian






-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2292 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170216/b1246717/attachment.bin>


More information about the CMake mailing list