cmake
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
Quoted 9 lines · Sage Weil
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:
Quoted 7 lines
If you are doing development, please switch to using cmake (i.e., run
do_cmake.sh) now. Runningvstart.shis 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.
Hi Sage,
Although i appreciate and understand the desire to move to cmake. Really ripping out the automake stuff would put me in the situation where I have no more building environment until all the cmake tweaks for FreeBSD are in place.
An while I'll start working on it, time is rather scarce atm. So please disable but please keep it around for a bit longer...
Thanx,
--WjW
Quoted 25 lines · Willem Jan Withagen
Quoted 9 lines · Sage Weil
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:
Quoted 7 lines
If you are doing development, please switch to using cmake (i.e., run
do_cmake.sh) now. Runningvstart.shis 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.
Hi Sage,
Although i appreciate and understand the desire to move to cmake. Really ripping out the automake stuff would put me in the situation where I have no more building environment until all the cmake tweaks for FreeBSD are in place.
Quoted 5 lines
An while I'll start working on it, time is rather scarce atm. So please disable but please keep it around for a bit longer...
Thanx,
--WjW
Started a separte wip to see how far it would go. Needed to repair some things, like
- Things not on FreeBSD: eg. blkid
- Thing not working compatible: udev, AIO
- cc tripping over warnings that Clang does not know
- curl include path
- uname -m returning amd64
But this one really has me:
====
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:FUSE_LIBRARIES (ADVANCED)
linked by target "rbd-fuse" in directory
/usr/srcs/Ceph/work.cmake/ceph/src
====
in configure I'd say --without-fuse, but that does not really work here. Same for RBD....
Any suggestions as to proceed? Preferably withotu fuse and RBD for the moment? So my cmake env is more or less equal to the new cmake env.
Thanx,
--WjW
Quoted 11 lines · Willem Jan Withagen
But this one really has me:
====
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:FUSE_LIBRARIES(ADVANCED)
linked by target "rbd-fuse" in directory
/usr/srcs/Ceph/work.cmake/ceph/src
====
Quoted 5 lines
in configure I'd say --without-fuse, but that does not really work here. Same for RBD....
Any suggestions as to proceed? Preferably withotu fuse and RBD for the moment? So my cmake env is more or less equal to the new cmake env.
Impolite to answer ones own questions:
-D WITH_<item>=OFF
However "" give:
CMake Error at src/test/bench/CMakeLists.txt:76 (install):
install TARGETS given target "ceph_smalliobenchrbd" which does not
exist in
this directory.
So got to tweek that.
--WjW
Quoted 20 lines · Willem Jan Withagen
Quoted 9 lines · Sage Weil
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:
Quoted 7 lines
If you are doing development, please switch to using cmake (i.e., run
do_cmake.sh) now. Runningvstart.shis 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.
Hi Sage,
Quoted 7 lines
Although i appreciate and understand the desire to move to cmake. Really ripping out the automake stuff would put me in the situation where I have no more building environment until all the cmake tweaks for FreeBSD are in place.
An while I'll start working on it, time is rather scarce atm. So please disable but please keep it around for a bit longer...
There is no particular need to remove any of the autotools stuff while anyone still relies on it, so don't worry. I'm just making sure everyone starts using it now so that we can identify any gaps and avoid surprises and fragmentation of efforts later.
Thanks for taking a look!
sage
Quoted 29 lines · Sage Weil
Quoted 20 lines · Willem Jan Withagen
Quoted 9 lines · Sage Weil
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:
Quoted 7 lines
If you are doing development, please switch to using cmake (i.e., run
do_cmake.sh) now. Runningvstart.shis 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.
Hi Sage,
Quoted 7 lines
Although i appreciate and understand the desire to move to cmake. Really ripping out the automake stuff would put me in the situation where I have no more building environment until all the cmake tweaks for FreeBSD are in place.
An while I'll start working on it, time is rather scarce atm. So please disable but please keep it around for a bit longer...
Quoted 6 lines
There is no particular need to remove any of the autotools stuff while anyone still relies on it, so don't worry. I'm just making sure everyone starts using it now so that we can identify any gaps and avoid surprises and fragmentation of efforts later.
Thanks for taking a look!
Sort of feel like starting all over again, and hacking all FreeBSD specials into the Make process.
But I've done that, so it does have steady progress.
--WjW
Quoted 35 lines · Willem Jan Withagen
Quoted 34 lines · Sage Weil
Quoted 20 lines · Willem Jan Withagen
Quoted 9 lines · Sage Weil
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:
Quoted 7 lines
If you are doing development, please switch to using cmake (i.e., run
do_cmake.sh) now. Runningvstart.shis 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.
Hi Sage,
Quoted 7 lines
Although i appreciate and understand the desire to move to cmake. Really ripping out the automake stuff would put me in the situation where I have no more building environment until all the cmake tweaks for FreeBSD are in place.
An while I'll start working on it, time is rather scarce atm. So please disable but please keep it around for a bit longer...
There is no particular need to remove any of the autotools stuff while anyone still relies on it, so don't worry. I'm just making sure everyone starts using it now so that we can identify any gaps and avoid surprises and fragmentation of efforts later.
Quoted 5 lines
Quoted 1 line
Thanks for taking a look!
Sort of feel like starting all over again, and hacking all FreeBSD specials into the Make process.
But I've done that, so it does have steady progress.
First shot to be found in #10024
It does not compile all the way to the end. But I have a feeling that is because of new/extra code that has little to do with Cmake.
Gladly change any parts for better.
And yes, it is way much less hackish that automake stuff.
I did not say easier, but the result should be a lot better to maintain.
--WjW
Quoted 44 lines · Willem Jan Withagen
Quoted 35 lines · Willem Jan Withagen
Quoted 34 lines · Sage Weil
Quoted 20 lines · Willem Jan Withagen
Quoted 9 lines · Sage Weil
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:
Quoted 7 lines
If you are doing development, please switch to using cmake (i.e., run
do_cmake.sh) now. Runningvstart.shis 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.
Hi Sage,
Quoted 7 lines
Although i appreciate and understand the desire to move to cmake. Really ripping out the automake stuff would put me in the situation where I have no more building environment until all the cmake tweaks for FreeBSD are in place.
An while I'll start working on it, time is rather scarce atm. So please disable but please keep it around for a bit longer...
There is no particular need to remove any of the autotools stuff while anyone still relies on it, so don't worry. I'm just making sure everyone starts using it now so that we can identify any gaps and avoid surprises and fragmentation of efforts later.
Quoted 5 lines
Quoted 1 line
Thanks for taking a look!
Sort of feel like starting all over again, and hacking all FreeBSD specials into the Make process.
But I've done that, so it does have steady progress.First shot to be found in #10024
Quoted 7 lines
It does not compile all the way to the end. But I have a feeling that is because of new/extra code that has little to do with Cmake.
Gladly change any parts for better.
And yes, it is way much less hackish that automake stuff.
I did not say easier, but the result should be a lot better to maintain.
Looks like I made building all the way to the end.
===
[100%] Building CXX object src/test/system/CMakeFiles/ceph_test_rados_list_parallel.dir/rados_list_parallel.cc.o [100%] Linking CXX executable ../../../bin/ceph_test_rados_list_parallel c++: warning: argument unused during compilation:
'-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2'
[100%] Built target ceph_test_rados_list_parallel
210.372u 32.331s 4:03.17 99.8% 45172+574k 18431+324012io 4169pf+0w [/usr/srcs/Ceph/work.cmake/ceph] [email protected]>
===
Time to evaluate the amount of damage there is in the CmakeList.txt files. 8D
--WjW
Quoted 29 lines · Sage Weil
Quoted 20 lines · Willem Jan Withagen
Quoted 9 lines · Sage Weil
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:
Quoted 7 lines
If you are doing development, please switch to using cmake (i.e., run
do_cmake.sh) now. Runningvstart.shis 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.
Hi Sage,
Quoted 7 lines
Although i appreciate and understand the desire to move to cmake. Really ripping out the automake stuff would put me in the situation where I have no more building environment until all the cmake tweaks for FreeBSD are in place.
An while I'll start working on it, time is rather scarce atm. So please disable but please keep it around for a bit longer...
Quoted 6 lines
There is no particular need to remove any of the autotools stuff while anyone still relies on it, so don't worry. I'm just making sure everyone starts using it now so that we can identify any gaps and avoid surprises and fragmentation of efforts later.
Thanks for taking a look!
I'm at 8 fails of 132 tests.
Which is more or less what I have in my FreeBSD work. And I did not take all FreeBSD-wip stuff to my cmake tree.
So I'm going to clean up, and then hopelully we can get tings in the tree.
--WjW
Quoted 25 lines · Sage Weil
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. Runningvstart.shis 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.
Quoted 6 lines
Thank you!
sage
--
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
To those trying CMake, please note that autoconf generates a ceph/src/acconfig.h. You'll want to remove that header, or cmake builds will pull it in and get confused.
Build failures in rocksdb are also common for those switching. This seems to fix those issues: cd ceph/src/rocksdb; make clean
Casey
Quoted 34 lines · Casey Bodley
Quoted 25 lines · Sage Weil
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. Runningvstart.shis 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.Quoted 6 lines
Thank you!
sage
--
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
Quoted 6 lines
To those trying CMake, please note that autoconf generates a
ceph/src/acconfig.h. You'll want to remove that header, or cmake builds will pull it in and get confused.Build failures in rocksdb are also common for those switching. This seems to fix those issues: cd ceph/src/rocksdb; make clean
FWIW, this is a gotcha that folks using automake run into when the rocksdb submodule updates. make clean; make top level doesn't fix it, you have to explicitly run make clean in the rocksdb directory.
Quoted 6 lines
Casey
--
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
Quoted 3 lines · Sage Weil
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.
Hi Sage,
Question about Cmake versions....
On FreeBSD cmake is version 3.5.2
My Centos box has 2.8.11
If there any "minimum" requirements here??
--WjW
Quoted 5 lines · Willem Jan Withagen
Quoted 3 lines · Sage Weil
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.
Quoted 8 lines
Hi Sage,
Question about Cmake versions....
On FreeBSD cmake is version 3.5.2
My Centos box has 2.8.11If there any "minimum" requirements here??
You should be fine.
[ceph] (master %)$ head -1 CMakeLists.txtcmake_minimum_required(VERSION 2.8.11)
HTH,
Brad
Quoted 9 lines
--WjW
--
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 · 2 lines
Cheers, Brad