Make errors when running ./bootstrap in Ubuntu 12.04

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Make errors when running ./bootstrap in Ubuntu 12.04

Paul Jeffries
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@paul-VirtualBox:~/cmake-3.13.1$ CC=gcc ./bootstrap && make && sudo make install
---------------------------------------------
CMake 3.13.1, Copyright 2000-2018 Kitware, Inc. and Contributors
C compiler on this system is: gcc       
C++ compiler on this system is: clang++  -std=gnu++1y     
Makefile processor on this system is: make
clang++ has setenv
clang++ has unsetenv
clang++ does not have environ in stdlib.h
clang++ has stl wstring
clang++ 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@paul-VirtualBox:~/cmake-3.13.1$ 





--

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
Reply | Threaded
Open this post in threaded view
|

Re: Make errors when running ./bootstrap in Ubuntu 12.04

Eric Noulard
Did you try to pick a pre-compiled version of CMake?

https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2-Linux-x86_64.tar.gz
CMake is statically linked so installing a binary should work.

Le ven. 14 déc. 2018 à 17:48, Paul Jeffries <[hidden email]> a écrit :
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@paul-VirtualBox:~/cmake-3.13.1$ CC=gcc ./bootstrap && make && sudo make install
---------------------------------------------
CMake 3.13.1, Copyright 2000-2018 Kitware, Inc. and Contributors
C compiler on this system is: gcc       
C++ compiler on this system is: clang++  -std=gnu++1y     
Makefile processor on this system is: make
clang++ has setenv
clang++ has unsetenv
clang++ does not have environ in stdlib.h
clang++ has stl wstring
clang++ 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@paul-VirtualBox:~/cmake-3.13.1$ 




--

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


--
Eric

--

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
Reply | Threaded
Open this post in threaded view
|

Re: Make errors when running ./bootstrap in Ubuntu 12.04

Juan E. Sanchez
The original poster is using Ubuntu 12.04, so a precompiled binary might
not work if it targeted a newer system.  Ubuntu 12.04 is obsolete and no
longer supported by Canonical and is a huge risk for production systems.

I would suggest the original poster try installing gnu gcc c++ instead
of clang.

Please see:
https://askubuntu.com/questions/26498/how-to-choose-the-default-gcc-and-g-version

Regards,

Juan

On 12/14/18 11:02 AM, Eric Noulard wrote:

> Did you try to pick a pre-compiled version of CMake?
> https://cmake.org/download/
>
> https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2-Linux-x86_64.tar.gz
> CMake is statically linked so installing a binary should work.
>
> Le ven. 14 déc. 2018 à 17:48, Paul Jeffries <[hidden email]
> <mailto:[hidden email]>> a écrit :
>
>     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@paul-VirtualBox:~/cmake-3.13.1$ CC=gcc ./bootstrap && make &&
>     sudo make install|
>     |---------------------------------------------|
>     |CMake 3.13.1, Copyright 2000-2018 Kitware, Inc. and Contributors|
>     |C compiler on this system is: gcc |
>     |C++ compiler on this system is: clang++ -std=gnu++1y |
>     |Makefile processor on this system is: make|
>     |clang++ has setenv|
>     |clang++ has unsetenv|
>     |clang++ does not have environ in stdlib.h|
>     |clang++ has stl wstring|
>     |clang++ 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@paul-VirtualBox:~/cmake-3.13.1$ |
>
>
>
>
>     --
>
>     Powered by www.kitware.com <http://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
>
>
>
> --
> Eric
>

--

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
Reply | Threaded
Open this post in threaded view
|

Re: Make errors when running ./bootstrap in Ubuntu 12.04

CMake mailing list
The precompiled binaries would be your best option as they are built
with older platforms in mind.

If you try to build from source you should set the  CC and CXX
environment flags, as your output is mismatched ( it is grabbing clang
for C++, and gcc for C ).

On Fri, Dec 14, 2018 at 12:41 PM Juan E. Sanchez
<[hidden email]> wrote:

>
> The original poster is using Ubuntu 12.04, so a precompiled binary might
> not work if it targeted a newer system.  Ubuntu 12.04 is obsolete and no
> longer supported by Canonical and is a huge risk for production systems.
>
> I would suggest the original poster try installing gnu gcc c++ instead
> of clang.
>
> Please see:
> https://askubuntu.com/questions/26498/how-to-choose-the-default-gcc-and-g-version
>
> Regards,
>
> Juan
>
> On 12/14/18 11:02 AM, Eric Noulard wrote:
> > Did you try to pick a pre-compiled version of CMake?
> > https://cmake.org/download/
> >
> > https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2-Linux-x86_64.tar.gz
> > CMake is statically linked so installing a binary should work.
> >
> > Le ven. 14 déc. 2018 à 17:48, Paul Jeffries <[hidden email]
> > <mailto:[hidden email]>> a écrit :
> >
> >     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@paul-VirtualBox:~/cmake-3.13.1$ CC=gcc ./bootstrap && make &&
> >     sudo make install|
> >     |---------------------------------------------|
> >     |CMake 3.13.1, Copyright 2000-2018 Kitware, Inc. and Contributors|
> >     |C compiler on this system is: gcc |
> >     |C++ compiler on this system is: clang++ -std=gnu++1y |
> >     |Makefile processor on this system is: make|
> >     |clang++ has setenv|
> >     |clang++ has unsetenv|
> >     |clang++ does not have environ in stdlib.h|
> >     |clang++ has stl wstring|
> >     |clang++ 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@paul-VirtualBox:~/cmake-3.13.1$ |
> >
> >
> >
> >
> >     --
> >
> >     Powered by www.kitware.com <http://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
> >
> >
> >
> > --
> > Eric
> >
>
> --
>
> 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
--

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