All of lore.kernel.org
 help / color / mirror / Atom feed
* cmake
@ 2016-06-27 17:50 Sage Weil
  2016-06-28  7:35 ` cmake Willem Jan Withagen
                   ` (2 more replies)
  0 siblings, 3 replies; 35+ messages in thread
From: Sage Weil @ 2016-06-27 17:50 UTC (permalink / raw)
  To: ceph-devel

We are switching from autotools to cmake on the master branch. Any 
builds done post-jewel will be cmake and not autotools based.  Jewel and 
older releases will still be built with autotools the old way.

The README.md in the master branch has been updated with new developer 
build instructions.  Please take a look:

	https://github.com/ceph/ceph/blob/master/README.md

If you are doing development, please switch to using cmake (i.e., 
run do_cmake.sh) now.  Running vstart.sh is a little different and it 
takes some getting used to.

If there is anything that doesn't work that is part of your developer 
workflow, we need to fix it now, before the autotools support is removed 
and you're unable to work!  This is hopefully a week or two away.

Current status:

 - gitbuilders mostly using make-dist instead of 'make dist' 
   (autotools) to generate release tarballs
 - wip-cmake-debian building debs with cmake
 - rpm coming shortly
 - release build tool update last, followed by a 11.0.0 release.

Thank you!
sage

^ permalink raw reply	[flat|nested] 35+ messages in thread
* cmake
@ 2015-12-16 17:33 Sage Weil
  2015-12-16 17:53 ` cmake Loic Dachary
                   ` (2 more replies)
  0 siblings, 3 replies; 35+ messages in thread
From: Sage Weil @ 2015-12-16 17:33 UTC (permalink / raw)
  To: ceph-devel

The work to transition to cmake has stalled somewhat.  I've tried to use 
it a few times but keep running into issues that make it unusable for me.  
Not having make check is a big one, but I think the hackery required to 
get that going points to the underlying problem(s).

I seems like the main problem is that automake puts all build targets in 
src/ and cmake spreads them all over build/*.  This makes that you can't 
just add ./ to anything that would normally be in your path (or, 
PATH=.:$PATH, and then run, say, ../qa/workunits/cephtool/test.sh).  
There's a bunch of kludges in vstart.sh to make it work that I think 
mostly point to this issue (and the .libs things).  Is there simply an 
option we can give cmake to make it put built binaries directly in build/?

Stepping back a bit, it seems like the goals should be

1. Be able to completely replace autotools.  I don't fancy maintaining 
both in parallel.

2. Be able to run vstart etc from the build dir.

3. Be able to run ./ceph[-anything] from the build dir, or put the build 
dir in the path.  (I suppose we could rely in a make install step, but 
that seems like more hassle... hopefully it's not neceesary?)

4. make check has to work

5. Use make-dist.sh to generate a release tarball (not make dist)

6. gitbuilders use make-dist.sh and cmake to build packages

7. release process uses make-dist.sh and cmake to build a relelase

I'm probably missing something?

Should we set a target of doing the 10.0.2 or .3 with cmake?

sage

^ permalink raw reply	[flat|nested] 35+ messages in thread
* cmake
@ 2015-12-03 22:24 Pete Zaitcev
  2015-12-03 22:30 ` cmake Adam C. Emerson
  2015-12-03 22:30 ` cmake Matt Benjamin
  0 siblings, 2 replies; 35+ messages in thread
From: Pete Zaitcev @ 2015-12-03 22:24 UTC (permalink / raw)
  To: ceph-devel

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

^ permalink raw reply	[flat|nested] 35+ messages in thread
* cmake
@ 2009-04-01 17:35 Shane Dixon
  2009-04-02  5:30 ` cmake Jeremy Lainé
  2009-04-02 17:07 ` cmake Robert Schuster
  0 siblings, 2 replies; 35+ messages in thread
From: Shane Dixon @ 2009-04-01 17:35 UTC (permalink / raw)
  To: openembedded-devel

I'm considering changing my projects over to cmake, but before I do, I
wanted to ask how good the cmake support is in OE.  I saw a recent
proposal to allow out-of-tree builds for cmake, but I'm not sure if that
happened or not.

Can I move forward with changing my projects to cmake and expect that it
will build correctly in OE?

-- 
Shane Dixon
Linux Engineer
Atmel Corporation
E-mail: shane.dixon@atmel.com



^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2016-07-05 19:10 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-27 17:50 cmake Sage Weil
2016-06-28  7:35 ` cmake Willem Jan Withagen
2016-06-28  8:41   ` cmake Willem Jan Withagen
2016-06-28  8:57     ` cmake Willem Jan Withagen
2016-06-28 13:42   ` cmake Sage Weil
2016-06-28 16:05     ` cmake Willem Jan Withagen
2016-06-29 16:51       ` cmake Willem Jan Withagen
2016-06-30 19:03         ` cmake Willem Jan Withagen
2016-07-05 19:09     ` cmake Willem Jan Withagen
2016-06-28 20:28 ` cmake Casey Bodley
2016-06-28 21:43   ` cmake Mark Nelson
2016-07-04  9:05 ` cmake Willem Jan Withagen
2016-07-04 10:37   ` cmake Brad Hubbard
  -- strict thread matches above, loose matches on Subject: below --
2015-12-16 17:33 cmake Sage Weil
2015-12-16 17:53 ` cmake Loic Dachary
2015-12-16 18:28 ` cmake John Spray
2015-12-16 19:36   ` cmake Sage Weil
2015-12-16 18:45 ` cmake Yehuda Sadeh-Weinraub
2015-12-16 19:06   ` cmake Matt Benjamin
2015-12-16 19:38     ` cmake Sage Weil
2015-12-16 23:47       ` cmake Willem Jan Withagen
2015-12-16 23:36   ` cmake Willem Jan Withagen
2015-12-03 22:24 cmake Pete Zaitcev
2015-12-03 22:30 ` cmake Adam C. Emerson
2015-12-04  0:03   ` cmake Pete Zaitcev
2015-12-04  0:26     ` cmake Matt Benjamin
2015-12-04  8:59       ` cmake Pete Zaitcev
2015-12-04 14:15         ` cmake Daniel Gryniewicz
2015-12-03 22:30 ` cmake Matt Benjamin
2015-12-03 22:31   ` cmake Matt Benjamin
2009-04-01 17:35 cmake Shane Dixon
2009-04-02  5:30 ` cmake Jeremy Lainé
2009-04-02 16:44   ` cmake Otavio Salvador
2009-04-02 18:07     ` cmake Koen Kooi
2009-04-02 17:07 ` cmake Robert Schuster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.