cmake
Dear All:
I'm trying to run cmake, in order to make sure my patches do not break it (in particular WIP 5073 added source files). Result looks like this:
[zaitcev@lembas ceph-tip]$ cmake src
-- The C compiler identification is GNU 5.1.1 -- The CXX compiler identification is GNU 5.1.1 -- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:1 (include):
include could not find load file:
GetGitRevisionDescription
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
CMake Warning (dev) at CMakeLists.txt:11 (add_definitions):
Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:12 (add_definitions):
Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- we do not have a modern/working yasm
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success CMake Error at CMakeLists.txt:95 (get_git_head_revision):
Unknown CMake command "get_git_head_revision".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.3)
should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/q/zaitcev/ceph/ceph-tip/CMakeFiles/CMakeOutput.log". [zaitcev@lembas ceph-tip]$ rpm -qa | grep -i cmake extra-cmake-modules-5.16.0-1.fc23.noarch cmake-3.3.2-1.fc23.x86_64
[zaitcev@lembas ceph-tip]$
Is this expected? Is my cmake incantation wrong?
Thanks,
-- Pete
Quoted 6 lines · Pete Zaitcev
Dear All:
I'm trying to run cmake, in order to make sure my patches do not break it (in particular WIP 5073 added source files). Result looks like this:
[zaitcev@lembas ceph-tip]$ cmake src
I believe the problem is 'cmake src'
The ceph-tip/src/CMakeLists.txt file is meant to be called from the ceph-tip/CMakeLists.txt file. I like to create a completely separate build directory and build there. i think the most popular incantation is something like:
mkdir ceph-tip/build
cd ceph-tile/build
cmake ..
make
Signature · 3 lines
Senior Software Engineer Red Hat Storage, Ann Arbor, MI, US
IRC: Aemerson@{RedHat, OFTC, Freenode}
0x80F7544B90EDBFB9 E707 86BA 0C1B 62CC 152C 7C12 80F7 544B 90ED BFB9Quoted 8 lines · On Thu, 3 Dec 2015 17:30:21 -0500 "Adam C. Emerson" <[email protected]> wrote:
Quoted 4 lines · Pete Zaitcev
I'm trying to run cmake, in order to make sure my patches do not break it (in particular WIP 5073 added source files). Result looks like this:
[zaitcev@lembas ceph-tip]$ cmake src
I believe the problem is 'cmake src'
Thanks for the tip about the separate build directory and the top-level CMakeLists.txt. However, it still fails like this:
[zaitcev@lembas build]$ cmake ..
CMake Error at CMakeLists.txt:1 (include):
include could not find load file:
GetGitRevisionDescription
...................
Do you know by any chance where it gets that include? Also, what's your cmake --version?
Greetings,
-- Pete
Pete,
Could you share the branch you are trying to build? (ceph/wip-5073 would not appear to be it.)
Matt
----- Original Message -----
Quoted 38 lines
From: "Pete Zaitcev" <[email protected]>
To: "Adam C. Emerson" <[email protected]>
Cc: [email protected]
Sent: Thursday, December 3, 2015 7:03:47 PM
Subject: Re: cmakeQuoted 8 lines · On Thu, 3 Dec 2015 17:30:21 -0500 "Adam C. Emerson" <[email protected]> wrote:
Quoted 4 lines · Pete Zaitcev
I'm trying to run cmake, in order to make sure my patches do not break it (in particular WIP 5073 added source files). Result looks like this:
[zaitcev@lembas ceph-tip]$ cmake src
I believe the problem is 'cmake src'
Thanks for the tip about the separate build directory and the top-level CMakeLists.txt. However, it still fails like this:
[zaitcev@lembas build]$ cmake ..
CMake Error at CMakeLists.txt:1 (include):
include could not find load file:GetGitRevisionDescription
...................Do you know by any chance where it gets that include? Also, what's your cmake --version?
Greetings,
-- Pete
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 11 lines
-- Matt Benjamin Red Hat, Inc. 315 West Huron Street, Suite 140A Ann Arbor, Michigan 48103 http://www.redhat.com/en/technologies/storage tel. 734-707-0660 fax. 734-769-8938 cel. 734-216-5309
Quoted 1 line · On Thu, 3 Dec 2015 19:26:52 -0500 (EST) Matt Benjamin <[email protected]>…
Could you share the branch you are trying to build? (ceph/wip-5073 would not appear to be it.)
It's the trunk with a few of my insignificant cleanups.
But I found a fix: deleting the CMakeFiles/ and CMakeCache.txt let it run. Thanks again for the tip about the separate build directory.
-- Pete
Quoted 10 lines · Pete Zaitcev
Quoted 1 line · On Thu, 3 Dec 2015 19:26:52 -0500 (EST) Matt Benjamin <[email protected]>…
Could you share the branch you are trying to build? (ceph/wip-5073 would not appear to be it.)
It's the trunk with a few of my insignificant cleanups.
But I found a fix: deleting the CMakeFiles/ and CMakeCache.txt let it run. Thanks again for the tip about the separate build directory.
FWIW, many cmake issues can be fixed by nuking the cmake generated files. This is one of the big advantages to a separate build dir, since the simplest way to do this is to nuke the build dir.
Daniel
I always run cmake from a build directory which is not the root, usually "build" in the root, so my minimal invocation would be "mkdir build; cd build; cmake ../src"--I'd at least try that, though I wouldn't have thought build location could affect something this basic (and it would be a bug).
Matt
----- Original Message -----
Quoted 78 lines
From: "Pete Zaitcev" <[email protected]>
To: [email protected]
Sent: Thursday, December 3, 2015 5:24:36 PM
Subject: cmakeDear All:
I'm trying to run cmake, in order to make sure my patches do not break it (in particular WIP 5073 added source files). Result looks like this:
[zaitcev@lembas ceph-tip]$ cmake src
-- The C compiler identification is GNU 5.1.1 -- The CXX compiler identification is GNU 5.1.1 -- Check for working C compiler:/usr/bin/cc
-- Check for working C compiler:/usr/bin/cc-- works -- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler:/usr/bin/c++-- Check for working CXX compiler:/usr/bin/c++-- works -- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:1 (include):
include could not find load file:GetGitRevisionDescription
-- The ASM compiler identification is GNU
-- Found assembler:/usr/bin/cc
CMake Warning (dev) at CMakeLists.txt:11 (add_definitions):
Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" for policy details. Use thecmake_policycommand to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.CMake Warning (dev) at CMakeLists.txt:12 (
add_definitions):
Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" for policy details. Use thecmake_policycommand to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.-- we do not have a modern/working yasm
-- Performing TestCOMPILER_SUPPORTS_CXX11
-- Performing TestCOMPILER_SUPPORTS_CXX11- Success CMake Error at CMakeLists.txt:95 (get_git_head_revision):
Unknown CMake command "get_git_head_revision".CMake Warning (dev) in CMakeLists.txt:
Nocmake_minimum_requiredcommand is present. A line of code such as
cmake_minimum_required(VERSION 3.3)should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.-- Configuring incomplete, errors occurred!
See also "/q/zaitcev/ceph/ceph-tip/CMakeFiles/CMakeOutput.log". [zaitcev@lembas ceph-tip]$ rpm -qa | grep -i cmake extra-cmake-modules-5.16.0-1.fc23.noarch cmake-3.3.2-1.fc23.x86_64
[zaitcev@lembas ceph-tip]$Is this expected? Is my cmake incantation wrong?
Thanks,
-- Pete
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 11 lines
-- Matt Benjamin Red Hat, Inc. 315 West Huron Street, Suite 140A Ann Arbor, Michigan 48103 http://www.redhat.com/en/technologies/storage tel. 734-707-0660 fax. 734-769-8938 cel. 734-216-5309
sorry, "cmake .." for Ceph's setup.
Matt
----- Original Message -----
Quoted 109 lines
From: "Matt Benjamin" <[email protected]>
To: "Pete Zaitcev" <[email protected]>
Cc: [email protected]
Sent: Thursday, December 3, 2015 5:30:28 PM
Subject: Re: cmakeI always run cmake from a build directory which is not the root, usually "build" in the root, so my minimal invocation would be "mkdir build; cd build; cmake ../src"--I'd at least try that, though I wouldn't have thought build location could affect something this basic (and it would be a bug).
Matt
----- Original Message -----
Quoted 72 lines
From: "Pete Zaitcev" <[email protected]>
To: [email protected]
Sent: Thursday, December 3, 2015 5:24:36 PM
Subject: cmakeDear All:
I'm trying to run cmake, in order to make sure my patches do not break it (in particular WIP 5073 added source files). Result looks like this:
[zaitcev@lembas ceph-tip]$ cmake src
-- The C compiler identification is GNU 5.1.1 -- The CXX compiler identification is GNU 5.1.1 -- Check for working C compiler:/usr/bin/cc
-- Check for working C compiler:/usr/bin/cc-- works -- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler:/usr/bin/c++-- Check for working CXX compiler:/usr/bin/c++-- works -- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:1 (include):
include could not find load file:GetGitRevisionDescription
-- The ASM compiler identification is GNU
-- Found assembler:/usr/bin/cc
CMake Warning (dev) at CMakeLists.txt:11 (add_definitions):
Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" for policy details. Use
thecmake_policycommand to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.CMake Warning (dev) at CMakeLists.txt:12 (
add_definitions):
Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" for policy details. Use
thecmake_policycommand to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.-- we do not have a modern/working yasm
-- Performing TestCOMPILER_SUPPORTS_CXX11
-- Performing TestCOMPILER_SUPPORTS_CXX11- Success CMake Error at CMakeLists.txt:95 (get_git_head_revision):
Unknown CMake command "get_git_head_revision".CMake Warning (dev) in CMakeLists.txt:
Nocmake_minimum_requiredcommand is present. A line of code such as
cmake_minimum_required(VERSION 3.3)should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.-- Configuring incomplete, errors occurred!
See also "/q/zaitcev/ceph/ceph-tip/CMakeFiles/CMakeOutput.log". [zaitcev@lembas ceph-tip]$ rpm -qa | grep -i cmake extra-cmake-modules-5.16.0-1.fc23.noarch cmake-3.3.2-1.fc23.x86_64
[zaitcev@lembas ceph-tip]$Quoted 9 lines
Is this expected? Is my cmake incantation wrong?
Thanks,
-- Pete
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
--
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103http://www.redhat.com/en/technologies/storage
tel. 734-707-0660 fax. 734-769-8938 cel. 734-216-5309
Signature · 11 lines
-- Matt Benjamin Red Hat, Inc. 315 West Huron Street, Suite 140A Ann Arbor, Michigan 48103 http://www.redhat.com/en/technologies/storage tel. 734-707-0660 fax. 734-769-8938 cel. 734-216-5309