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