[CMake] [Error] While compiling as a pre requirement of a software

Haocheng Liu haocheng.liu at kitware.com
Mon Jul 2 12:09:09 EDT 2018


You need a binary CMake to compile CMake from source code. `apt-get install
cmake` should be more appropriate here...

Btw, CMake 2.8 is a pretty old version. If possible, you should use CMake
>= 3.0.

On Mon, Jul 2, 2018 at 9:39 AM canny georgina <cannysiska at gmail.com> wrote:

> Dear all,
> I've been trying to use a factorization software (CADO-NFS), before I
> can use it, I need to compile it, but in order to successfully compile
> it, i need Cmake as pre requirement (CADO-NFS developer said that it's
> mandatory to have it (Cmake) perfectly installed and compiled). When i
> try to compile the CADO-NFS, because i don't have cmake installed, the
> software took the initiative to download suitable Cmake and compile by
> itself. However, as i face it, there are unexpected error when Cmake
> is being compiled. For your information, i installed Cmake on Virtual
> Machine (with ubuntu desktop 16.04 as an OS) with 2 GB as RAM. As for
> the error information, i got this:
>
> root at ubuntu:/home/chunnie/Desktop/Math3/cado-nfs# make
> CMake not found
> I am about to download and compile a compatible version of Cmake.
> Do you want to continue ? (y/n)
> y
> Need to get cmake first -- this takes long !
> installing cmake 2.8.12 in
> /home/chunnie/Desktop/Math3/cado-nfs/cmake-installed
> --2018-07-02 02:51:01--
> http://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz
> Resolving www.cmake.org (www.cmake.org)... 66.194.253.19
> Connecting to www.cmake.org (www.cmake.org)|66.194.253.19|:80...
> connected.
> HTTP request sent, awaiting response... 301 Moved Permanently
> Location: http://cmake.org/files/v2.8/cmake-2.8.12.tar.gz [following]
> --2018-07-02 02:51:03--  http://cmake.org/files/v2.8/cmake-2.8.12.tar.gz
> Resolving cmake.org (cmake.org)... 66.194.253.19
> Reusing existing connection to www.cmake.org:80.
> HTTP request sent, awaiting response... 301 Moved Permanently
> Location: https://cmake.org/files/v2.8/cmake-2.8.12.tar.gz [following]
> --2018-07-02 02:51:04--  https://cmake.org/files/v2.8/cmake-2.8.12.tar.gz
> Connecting to cmake.org (cmake.org)|66.194.253.19|:443... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 6064138 (5.8M) [application/x-gzip]
> Saving to: ‘cmake-2.8.12.tar.gz’
>
> cmake-2.8.12.tar.gz 100%[===================>]   5.78M  4.06KB/s    in 13m
> 11s
>
> 2018-07-02 03:04:39 (7.49 KB/s) - ‘cmake-2.8.12.tar.gz’ saved
> [6064138/6064138]
>
> ---------------------------------------------
> CMake 2.8.12, Copyright 2000-2012 Kitware, Inc.
> Found GNU toolchain
> C compiler on this system is: gcc
> C++ compiler on this system is: g++
> Makefile processor on this system is: make
> g++ is GNU compiler
> g++ has setenv
> g++ has unsetenv
> g++ does not have environ in stdlib.h
> g++ has STL in std:: namespace
> g++ has ANSI streams
> g++ has streams in std:: namespace
> g++ has sstream
> g++ has operator!=(string, char*)
> g++ has stl iterator_traits
> g++ has standard template allocator
> g++ has allocator<>::rebind<>
> g++ does not have non-standard allocator<>::max_size argument
> g++ has stl containers supporting allocator objects
> g++ has header cstddef
> g++ requires template friends to use <>
> g++ supports member templates
> g++ has standard template specialization syntax
> g++ has argument dependent lookup
> g++ has struct stat with st_mtim member
> g++ has ios::binary openmode
> g++ has ANSI for scoping
> ---------------------------------------------
> make[1]: Entering directory
> '/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk'
> g++  -I/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk
> -I/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source
> -I/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk -c
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source/cmStandardIncludes.cxx
> -o cmStandardIncludes.o
> g++  -I/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk
> -I/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source
> -I/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk -c
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source/cmake.cxx -o cmake.o
> In file included from
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source/cmSystemTools.h:17:0,
>                  from
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source/cmake.h:16,
>                  from
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source/cmake.cxx:12:
>
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk/cmsys/SystemTools.hxx:633:5:
> internal compiler error: Illegal instruction
>      double percent_bin = 0.05);
>      ^
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
> Makefile:6: recipe for target 'cmake.o' failed
> make[1]: *** [cmake.o] Error 1
> make[1]: Leaving directory
> '/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk'
> ---------------------------------------------
> Error when bootstrapping CMake:
> Problem while running make
> ---------------------------------------------
> Log of errors:
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk/cmake_bootstrap.log
> ---------------------------------------------
> make[1]: Entering directory '/tmp/cmake-build.CZc7zfVj/cmake-2.8.12'
> make[1]: *** No targets specified and no makefile found.  Stop.
> make[1]: Leaving directory '/tmp/cmake-build.CZc7zfVj/cmake-2.8.12'
> make[1]: Entering directory '/tmp/cmake-build.CZc7zfVj/cmake-2.8.12'
> make[1]: *** No rule to make target 'install'.  Stop.
> make[1]: Leaving directory '/tmp/cmake-build.CZc7zfVj/cmake-2.8.12'
> ./scripts/call_cmake.sh: line 152:
> /home/chunnie/Desktop/Math3/cado-nfs/cmake-installed/bin/cmake: No
> such file or directory
> Makefile:7: recipe for target 'all' failed
> make: *** [all] Error 1
>
>
> As for the main information that indicates error on the Cmake is this:
>
> make[1]: Entering directory
> '/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk'
> g++  -I/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk
> -I/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source
> -I/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk -c
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source/cmStandardIncludes.cxx
> -o cmStandardIncludes.o
> g++  -I/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk
> -I/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source
> -I/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk -c
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source/cmake.cxx -o cmake.o
> In file included from
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source/cmSystemTools.h:17:0,
>                  from
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source/cmake.h:16,
>                  from
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Source/cmake.cxx:12:
>
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk/cmsys/SystemTools.hxx:633:5:
> internal compiler error: Illegal instruction
>      double percent_bin = 0.05);
>      ^
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
> Makefile:6: recipe for target 'cmake.o' failed
> make[1]: *** [cmake.o] Error 1
> make[1]: Leaving directory
> '/tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk'
> ---------------------------------------------
> Error when bootstrapping CMake:
> Problem while running make
> ---------------------------------------------
> Log of errors:
> /tmp/cmake-build.CZc7zfVj/cmake-2.8.12/Bootstrap.cmk/cmake_bootstrap.log
> ---------------------------------------------
>
> I hope those information help. Thank you.
>
> Best,
>
> Canny Georgina
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
>


-- 
Best regards
Haocheng

Haocheng LIU
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4421
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180702/fe7ec73e/attachment.html>


More information about the CMake mailing list