[CMake] Make errors when running ./bootstrap in Ubuntu 12.04

Paul Jeffries paulwjeffries at gmail.com
Fri Dec 14 11:48:32 EST 2018


Dear list,

I ultimately want to install a program called DosageConvertor that requires
a version of cmake that is 3.2 or later. Therefore, I am trying to install
a more recent version of cmake since the current version is 2.8.7.

When I run ./bootstrap, I get a message that there were problems running
make: 2 errors generated. make: *** [cmAddCustomCommandCommand.o] Error 1
(I have added the complete output below.)

I searched and found no clear solution to this problem. I did see that std
should be set to gnu++11, but my output has “std=gnu++1y”.

I specified the compiler because when I ran ./bootstrap by itself, I got an
error message that there was no C++ compiler. Did I choose the wrong
compiler? Am I missing a library?

Any help would be appreciated.

Paul

paul at paul-VirtualBox:~/cmake-3.13.1$ CC=gcc ./bootstrap && make &&
sudo make install---------------------------------------------CMake
3.13.1, Copyright 2000-2018 Kitware, Inc. and ContributorsC compiler
on this system is: gcc       C++ compiler on this system is: clang++
-std=gnu++1y     Makefile processor on this system is: makeclang++ has
setenvclang++ has unsetenvclang++ does not have environ in
stdlib.hclang++ has stl wstringclang++ has
<ext/stdio_filebuf.h>---------------------------------------------clang++
-std=gnu++1y -I/home/paul/cmake-3.13.1/Bootstrap.cmk
-I/home/paul/cmake-3.13.1/Source -I/home/paul/cmake-
3.13.1/Source/LexerParser  -I/home/paul/cmake-3.13.1/Utilities  -c
/home/paul/cmake-3.13.1/Source/cmAddCustomCommandCommand.cxx -o
cmAddCustomCommandCommand.o In file included from
/home/paul/cmake-3.13.1/Source/cmAddCustomCommandCommand.cxx:9:In file
included from /home/paul/cmake-3.13.1/Source/cmCustomCommand.h:9:
/home/paul/cmake-3.13.1/Source/cmListFileCache.h:127:3: error:
exception specification of explicitly defaulted move constructor does
not match the cmListFileBacktrace(cmListFileBacktrace&&) //
NOLINT(clang-tidy)  ^
/home/paul/cmake-3.13.1/Source/cmListFileCache.h:130:24: error:
exception specification of explicitly defaulted move assignment
operator does not match the calculated one cmListFileBacktrace&
operator=(cmListFileBacktrace&&) // NOLINT(clang-tidy)
  ^2 errors generated.make: *** [cmAddCustomCommandCommand.o] Error
1---------------------------------------------Error when bootstrapping
CMake:Problem while running
make---------------------------------------------Log of errors:
/home/paul/cmake-3.13.1/Bootstrap.cmk/cmake_bootstrap.log---------------------------------------------paul at paul-VirtualBox:~/cmake-3.13.1$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20181214/bc2df1fc/attachment.html>


More information about the CMake mailing list