All of lore.kernel.org
 help / color / mirror / Atom feed
* should we remove autotools from master?
@ 2016-08-23 13:58 Sage Weil
  2016-08-23 14:19 ` Loic Dachary
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Sage Weil @ 2016-08-23 13:58 UTC (permalink / raw)
  To: Nathan Cutler
  Cc: Brad Hubbard, Avner Ben Hanoch, Gregory Farnum, Ceph Development

Should we remove the autotools stuff from master?

Yes:
- It won't be maintained
- It sucks
- It confuses people and they use it by mistake
- We'll find any build scripts etc that haven't been converted sooner 
rather than later

No:
- Other architectures might rely on it
- It's possible some build scripts haven't been convert yet

I'm thinking yes?
sage


On Tue, 23 Aug 2016, Nathan Cutler wrote:

> > That's a different make-deb(s).sh
> 
> Allow me to qualify that statement. This thread seems to be about
> 
> https://github.com/ceph/ceph/blob/master/make-debs.sh
> 
> while the "make-deb.sh" I am working on is
> 
> https://github.com/ceph/ceph-qa-suite/blob/master/tasks/buildpackages/make-deb.sh
> 
> which is used with the teuthology-openstack backend. However, I see the two
> scripts are similar.
> 
> In general, although the autotools stuff is still there in master, it is not
> maintained and should not be expected to work (or continue to work). All build
> infrastructure targeting master should be converted to cmake.
> 
> Nathan
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

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

* Re: should we remove autotools from master?
  2016-08-23 13:58 should we remove autotools from master? Sage Weil
@ 2016-08-23 14:19 ` Loic Dachary
  2016-08-23 15:11   ` Avner Ben Hanoch
  2016-08-23 15:11 ` Ken Dreyer
  2016-08-26 23:44 ` Kamble, Nitin A
  2 siblings, 1 reply; 16+ messages in thread
From: Loic Dachary @ 2016-08-23 14:19 UTC (permalink / raw)
  To: Sage Weil, Nathan Cutler
  Cc: Brad Hubbard, Avner Ben Hanoch, Gregory Farnum, Ceph Development



On 23/08/2016 15:58, Sage Weil wrote:
> Should we remove the autotools stuff from master?
> 
> Yes:
> - It won't be maintained
> - It sucks
> - It confuses people and they use it by mistake
> - We'll find any build scripts etc that haven't been converted sooner 
> rather than later
> 
> No:
> - Other architectures might rely on it
> - It's possible some build scripts haven't been convert yet
> 
> I'm thinking yes?

I vote yes. The build scripts I know about are either converted or broken because autotools no longer works :-)

Cheers

> sage
> 
> 
> On Tue, 23 Aug 2016, Nathan Cutler wrote:
> 
>>> That's a different make-deb(s).sh
>>
>> Allow me to qualify that statement. This thread seems to be about
>>
>> https://github.com/ceph/ceph/blob/master/make-debs.sh
>>
>> while the "make-deb.sh" I am working on is
>>
>> https://github.com/ceph/ceph-qa-suite/blob/master/tasks/buildpackages/make-deb.sh
>>
>> which is used with the teuthology-openstack backend. However, I see the two
>> scripts are similar.
>>
>> In general, although the autotools stuff is still there in master, it is not
>> maintained and should not be expected to work (or continue to work). All build
>> infrastructure targeting master should be converted to cmake.
>>
>> Nathan
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
Loïc Dachary, Artisan Logiciel Libre

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

* Re: should we remove autotools from master?
  2016-08-23 13:58 should we remove autotools from master? Sage Weil
  2016-08-23 14:19 ` Loic Dachary
@ 2016-08-23 15:11 ` Ken Dreyer
  2016-08-26 23:44 ` Kamble, Nitin A
  2 siblings, 0 replies; 16+ messages in thread
From: Ken Dreyer @ 2016-08-23 15:11 UTC (permalink / raw)
  To: Sage Weil
  Cc: Nathan Cutler, Brad Hubbard, Avner Ben Hanoch, Gregory Farnum,
	Ceph Development

On Tue, Aug 23, 2016 at 7:58 AM, Sage Weil <sweil@redhat.com> wrote:
> Should we remove the autotools stuff from master?
>
> Yes:
> - It won't be maintained
> - It sucks
> - It confuses people and they use it by mistake
> - We'll find any build scripts etc that haven't been converted sooner
> rather than later
>
> No:
> - Other architectures might rely on it
> - It's possible some build scripts haven't been convert yet

yes, bring the pain forward so Kraken is stable :)

- Ken

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

* RE: should we remove autotools from master?
  2016-08-23 14:19 ` Loic Dachary
@ 2016-08-23 15:11   ` Avner Ben Hanoch
  2016-08-23 15:21     ` Sage Weil
  2016-08-24  9:44     ` Willem Jan Withagen
  0 siblings, 2 replies; 16+ messages in thread
From: Avner Ben Hanoch @ 2016-08-23 15:11 UTC (permalink / raw)
  To: Loic Dachary, Sage Weil, Nathan Cutler
  Cc: Brad Hubbard, Gregory Farnum, Ceph Development, Adir Lev

For removing autotools support, I think that we should first announce that autotools will not be supported starting <some-future-day> and till then support both of them in parallel and response to questions about it.

Also, we first need to make sure that we have comprehensive instructions for using cmake.
Notice, that many developers are not familiar with cmake; hence, there might be need for extra explanations.

For example, I tried now the instructions in https://github.com/ceph/ceph/blob/master/README.md 
	./do_cmake.sh
	cd build
	make
and I got the error:
	make: *** No targets specified and no makefile found.  Stop.

Probably, because of the explanation "This assumes you make your build dir a subdirectory of the ceph.git checkout. If you put it elsewhere, just replace .. above with a correct path to the checkout." However, if you are not familiar with cmake, then this explanation does not tell you how to recover from the error.

Also, I am not sure it is clear to all developers how to combine above instructions with options that you could provide to ./configure script.

Hence, I think removing autotools support should not be immediate
Avner 

> -----Original Message-----
> From: Loic Dachary 
> 
> 
> On 23/08/2016 15:58, Sage Weil wrote:
> > Should we remove the autotools stuff from master?
> >
> > Yes:
> > - It won't be maintained
> > - It sucks
> > - It confuses people and they use it by mistake
> > - We'll find any build scripts etc that haven't been converted sooner
> > rather than later
> >
> > No:
> > - Other architectures might rely on it
> > - It's possible some build scripts haven't been convert yet
> >
> > I'm thinking yes?
> 
> I vote yes. The build scripts I know about are either converted or broken
> because autotools no longer works :-)
> 
> Cheers
> 
> > sage
> >
> >
> > On Tue, 23 Aug 2016, Nathan Cutler wrote:
> >
> >>> That's a different make-deb(s).sh
> >>
> >> Allow me to qualify that statement. This thread seems to be about
> >>
> >> https://github.com/ceph/ceph/blob/master/make-debs.sh
> >>
> >> while the "make-deb.sh" I am working on is
> >>
> >> https://github.com/ceph/ceph-qa-suite/blob/master/tasks/buildpackages
> >> /make-deb.sh
> >>
> >> which is used with the teuthology-openstack backend. However, I see
> >> the two scripts are similar.
> >>
> >> In general, although the autotools stuff is still there in master, it
> >> is not maintained and should not be expected to work (or continue to
> >> work). All build infrastructure targeting master should be converted to
> cmake.
> >>
> >> Nathan
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe ceph-devel"
> >> in the body of a message to majordomo@vger.kernel.org More majordomo
> >> info at  http://vger.kernel.org/majordomo-info.html
> >>
> >>
> > --
> > To unsubscribe from this list: send the line "unsubscribe ceph-devel"
> > in the body of a message to majordomo@vger.kernel.org More majordomo
> > info at  http://vger.kernel.org/majordomo-info.html
> >
> 
> --
> Loïc Dachary, Artisan Logiciel Libre

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

* RE: should we remove autotools from master?
  2016-08-23 15:11   ` Avner Ben Hanoch
@ 2016-08-23 15:21     ` Sage Weil
  2016-08-23 18:08       ` Alfredo Deza
  2016-08-24 16:15       ` Avner Ben Hanoch
  2016-08-24  9:44     ` Willem Jan Withagen
  1 sibling, 2 replies; 16+ messages in thread
From: Sage Weil @ 2016-08-23 15:21 UTC (permalink / raw)
  To: Avner Ben Hanoch
  Cc: Loic Dachary, Nathan Cutler, Brad Hubbard, Gregory Farnum,
	Ceph Development, Adir Lev

[-- Attachment #1: Type: TEXT/PLAIN, Size: 3992 bytes --]

On Tue, 23 Aug 2016, Avner Ben Hanoch wrote:
> For removing autotools support, I think that we should first announce 
> that autotools will not be supported starting <some-future-day> and till 
> then support both of them in parallel and response to questions about 
> it.

I think we're basically proposing some-future-day as now.
 
> Also, we first need to make sure that we have comprehensive instructions 
> for using cmake. Notice, that many developers are not familiar with 
> cmake; hence, there might be need for extra explanations.
> 
> For example, I tried now the instructions in https://github.com/ceph/ceph/blob/master/README.md 
> 	./do_cmake.sh
> 	cd build
> 	make
> and I got the error:
> 	make: *** No targets specified and no makefile found.  Stop.
> 
> Probably, because of the explanation "This assumes you make your build 
> dir a subdirectory of the ceph.git checkout. If you put it elsewhere, 
> just replace .. above with a correct path to the checkout." However, if 
> you are not familiar with cmake, then this explanation does not tell you 
> how to recover from the error.

The do_cmake.sh script is doing 'mkdir build', so assuming you actually 
ran it from the git checkout (i.e., ./do_cmake.sh) then this should be the 
case.  Is that actually what caused the error?

I agree that step 0 is to make README.md complete for cmake.  Perhaps 
step 1 is to remove autotools instructions too.

> Also, I am not sure it is clear to all developers how to combine above 
> instructions with options that you could provide to ./configure script.

There is no more ./configure :).  There are a new set of options you can 
pass cmake that are referenced here in README.md:

	https://github.com/ceph/ceph/blob/master/README.md#cmake-options

> Hence, I think removing autotools support should not be immediate

Please help us identify any (other) documentation gaps so we can get past 
this.  I thought README.md was in good shape...

sage


> Avner 
> 
> > -----Original Message-----
> > From: Loic Dachary 
> > 
> > 
> > On 23/08/2016 15:58, Sage Weil wrote:
> > > Should we remove the autotools stuff from master?
> > >
> > > Yes:
> > > - It won't be maintained
> > > - It sucks
> > > - It confuses people and they use it by mistake
> > > - We'll find any build scripts etc that haven't been converted sooner
> > > rather than later
> > >
> > > No:
> > > - Other architectures might rely on it
> > > - It's possible some build scripts haven't been convert yet
> > >
> > > I'm thinking yes?
> > 
> > I vote yes. The build scripts I know about are either converted or broken
> > because autotools no longer works :-)
> > 
> > Cheers
> > 
> > > sage
> > >
> > >
> > > On Tue, 23 Aug 2016, Nathan Cutler wrote:
> > >
> > >>> That's a different make-deb(s).sh
> > >>
> > >> Allow me to qualify that statement. This thread seems to be about
> > >>
> > >> https://github.com/ceph/ceph/blob/master/make-debs.sh
> > >>
> > >> while the "make-deb.sh" I am working on is
> > >>
> > >> https://github.com/ceph/ceph-qa-suite/blob/master/tasks/buildpackages
> > >> /make-deb.sh
> > >>
> > >> which is used with the teuthology-openstack backend. However, I see
> > >> the two scripts are similar.
> > >>
> > >> In general, although the autotools stuff is still there in master, it
> > >> is not maintained and should not be expected to work (or continue to
> > >> work). All build infrastructure targeting master should be converted to
> > cmake.
> > >>
> > >> Nathan
> > >> --
> > >> To unsubscribe from this list: send the line "unsubscribe ceph-devel"
> > >> in the body of a message to majordomo@vger.kernel.org More majordomo
> > >> info at  http://vger.kernel.org/majordomo-info.html
> > >>
> > >>
> > > --
> > > To unsubscribe from this list: send the line "unsubscribe ceph-devel"
> > > in the body of a message to majordomo@vger.kernel.org More majordomo
> > > info at  http://vger.kernel.org/majordomo-info.html
> > >
> > 
> > --
> > Loïc Dachary, Artisan Logiciel Libre
> 
> 

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

* Re: should we remove autotools from master?
  2016-08-23 15:21     ` Sage Weil
@ 2016-08-23 18:08       ` Alfredo Deza
  2016-08-23 18:24         ` Sage Weil
  2016-08-24 16:15       ` Avner Ben Hanoch
  1 sibling, 1 reply; 16+ messages in thread
From: Alfredo Deza @ 2016-08-23 18:08 UTC (permalink / raw)
  To: Sage Weil
  Cc: Avner Ben Hanoch, Loic Dachary, Nathan Cutler, Brad Hubbard,
	Gregory Farnum, Ceph Development, Adir Lev

On Tue, Aug 23, 2016 at 11:21 AM, Sage Weil <sweil@redhat.com> wrote:
> On Tue, 23 Aug 2016, Avner Ben Hanoch wrote:
>> For removing autotools support, I think that we should first announce
>> that autotools will not be supported starting <some-future-day> and till
>> then support both of them in parallel and response to questions about
>> it.
>
> I think we're basically proposing some-future-day as now.
>
>> Also, we first need to make sure that we have comprehensive instructions
>> for using cmake. Notice, that many developers are not familiar with
>> cmake; hence, there might be need for extra explanations.
>>
>> For example, I tried now the instructions in https://github.com/ceph/ceph/blob/master/README.md
>>       ./do_cmake.sh
>>       cd build
>>       make
>> and I got the error:
>>       make: *** No targets specified and no makefile found.  Stop.
>>
>> Probably, because of the explanation "This assumes you make your build
>> dir a subdirectory of the ceph.git checkout. If you put it elsewhere,
>> just replace .. above with a correct path to the checkout." However, if
>> you are not familiar with cmake, then this explanation does not tell you
>> how to recover from the error.
>
> The do_cmake.sh script is doing 'mkdir build', so assuming you actually
> ran it from the git checkout (i.e., ./do_cmake.sh) then this should be the
> case.  Is that actually what caused the error?
>
> I agree that step 0 is to make README.md complete for cmake.  Perhaps
> step 1 is to remove autotools instructions too.
>
>> Also, I am not sure it is clear to all developers how to combine above
>> instructions with options that you could provide to ./configure script.
>
> There is no more ./configure :).  There are a new set of options you can
> pass cmake that are referenced here in README.md:
>
>         https://github.com/ceph/ceph/blob/master/README.md#cmake-options
>
>> Hence, I think removing autotools support should not be immediate
>
> Please help us identify any (other) documentation gaps so we can get past
> this.  I thought README.md was in good shape...

Nothing in there helped when trying to build binaries in the CI
scripts. I had to look at
https://github.com/ceph/autobuild-ceph/blob/master/build-ceph-rpm.sh#L56-L58
to try to make it work.

Of course, this might not help anyone else, since it might not be
common to run `make-dist` ?

>
> sage
>
>
>> Avner
>>
>> > -----Original Message-----
>> > From: Loic Dachary
>> >
>> >
>> > On 23/08/2016 15:58, Sage Weil wrote:
>> > > Should we remove the autotools stuff from master?
>> > >
>> > > Yes:
>> > > - It won't be maintained
>> > > - It sucks
>> > > - It confuses people and they use it by mistake
>> > > - We'll find any build scripts etc that haven't been converted sooner
>> > > rather than later
>> > >
>> > > No:
>> > > - Other architectures might rely on it
>> > > - It's possible some build scripts haven't been convert yet
>> > >
>> > > I'm thinking yes?
>> >
>> > I vote yes. The build scripts I know about are either converted or broken
>> > because autotools no longer works :-)
>> >

Yes from me too. We do have the build scripts kind of messed up
already for master in Jenkins:

https://github.com/ceph/ceph-build/commit/40b94af494dbb07440bf90f5b6695ecf2839b392

We still need to support both because we still need to cut releases
for branches that do not support it though.

>> > Cheers
>> >
>> > > sage
>> > >
>> > >
>> > > On Tue, 23 Aug 2016, Nathan Cutler wrote:
>> > >
>> > >>> That's a different make-deb(s).sh
>> > >>
>> > >> Allow me to qualify that statement. This thread seems to be about
>> > >>
>> > >> https://github.com/ceph/ceph/blob/master/make-debs.sh
>> > >>
>> > >> while the "make-deb.sh" I am working on is
>> > >>
>> > >> https://github.com/ceph/ceph-qa-suite/blob/master/tasks/buildpackages
>> > >> /make-deb.sh
>> > >>
>> > >> which is used with the teuthology-openstack backend. However, I see
>> > >> the two scripts are similar.
>> > >>
>> > >> In general, although the autotools stuff is still there in master, it
>> > >> is not maintained and should not be expected to work (or continue to
>> > >> work). All build infrastructure targeting master should be converted to
>> > cmake.
>> > >>
>> > >> Nathan
>> > >> --
>> > >> To unsubscribe from this list: send the line "unsubscribe ceph-devel"
>> > >> in the body of a message to majordomo@vger.kernel.org More majordomo
>> > >> info at  http://vger.kernel.org/majordomo-info.html
>> > >>
>> > >>
>> > > --
>> > > To unsubscribe from this list: send the line "unsubscribe ceph-devel"
>> > > in the body of a message to majordomo@vger.kernel.org More majordomo
>> > > info at  http://vger.kernel.org/majordomo-info.html
>> > >
>> >
>> > --
>> > Loïc Dachary, Artisan Logiciel Libre
>>
>>

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

* Re: should we remove autotools from master?
  2016-08-23 18:08       ` Alfredo Deza
@ 2016-08-23 18:24         ` Sage Weil
  2016-08-23 18:26           ` Samuel Just
  2016-08-23 18:32           ` Willem Jan Withagen
  0 siblings, 2 replies; 16+ messages in thread
From: Sage Weil @ 2016-08-23 18:24 UTC (permalink / raw)
  To: Alfredo Deza
  Cc: Avner Ben Hanoch, Loic Dachary, Nathan Cutler, Brad Hubbard,
	Gregory Farnum, Ceph Development, Adir Lev

[-- Attachment #1: Type: TEXT/PLAIN, Size: 5802 bytes --]

On Tue, 23 Aug 2016, Alfredo Deza wrote:
> On Tue, Aug 23, 2016 at 11:21 AM, Sage Weil <sweil@redhat.com> wrote:
> > On Tue, 23 Aug 2016, Avner Ben Hanoch wrote:
> >> For removing autotools support, I think that we should first announce
> >> that autotools will not be supported starting <some-future-day> and till
> >> then support both of them in parallel and response to questions about
> >> it.
> >
> > I think we're basically proposing some-future-day as now.
> >
> >> Also, we first need to make sure that we have comprehensive instructions
> >> for using cmake. Notice, that many developers are not familiar with
> >> cmake; hence, there might be need for extra explanations.
> >>
> >> For example, I tried now the instructions in https://github.com/ceph/ceph/blob/master/README.md
> >>       ./do_cmake.sh
> >>       cd build
> >>       make
> >> and I got the error:
> >>       make: *** No targets specified and no makefile found.  Stop.
> >>
> >> Probably, because of the explanation "This assumes you make your build
> >> dir a subdirectory of the ceph.git checkout. If you put it elsewhere,
> >> just replace .. above with a correct path to the checkout." However, if
> >> you are not familiar with cmake, then this explanation does not tell you
> >> how to recover from the error.
> >
> > The do_cmake.sh script is doing 'mkdir build', so assuming you actually
> > ran it from the git checkout (i.e., ./do_cmake.sh) then this should be the
> > case.  Is that actually what caused the error?
> >
> > I agree that step 0 is to make README.md complete for cmake.  Perhaps
> > step 1 is to remove autotools instructions too.
> >
> >> Also, I am not sure it is clear to all developers how to combine above
> >> instructions with options that you could provide to ./configure script.
> >
> > There is no more ./configure :).  There are a new set of options you can
> > pass cmake that are referenced here in README.md:
> >
> >         https://github.com/ceph/ceph/blob/master/README.md#cmake-options
> >
> >> Hence, I think removing autotools support should not be immediate
> >
> > Please help us identify any (other) documentation gaps so we can get past
> > this.  I thought README.md was in good shape...
> 
> Nothing in there helped when trying to build binaries in the CI
> scripts. I had to look at
> https://github.com/ceph/autobuild-ceph/blob/master/build-ceph-rpm.sh#L56-L58
> to try to make it work.
> 
> Of course, this might not help anyone else, since it might not be
> common to run `make-dist` ?

Ah, good point.  This PR

	https://github.com/ceph/ceph/pull/10829

replaces the incomplete/wrong package build directions with make-dist 
instructions.

Should we document how to build a proper rpm or deb here, or should we try 
to pull what autobuilder and/or ceph-build are doing into scripts in 
ceph.git, and replace the (broken?) make-debs.sh with make-{deb,rpm} and 
ensure they work?  I think it depends on if anything in what you build is 
likely to require changes outside of the ceph tree...

sage


> 
> >
> > sage
> >
> >
> >> Avner
> >>
> >> > -----Original Message-----
> >> > From: Loic Dachary
> >> >
> >> >
> >> > On 23/08/2016 15:58, Sage Weil wrote:
> >> > > Should we remove the autotools stuff from master?
> >> > >
> >> > > Yes:
> >> > > - It won't be maintained
> >> > > - It sucks
> >> > > - It confuses people and they use it by mistake
> >> > > - We'll find any build scripts etc that haven't been converted sooner
> >> > > rather than later
> >> > >
> >> > > No:
> >> > > - Other architectures might rely on it
> >> > > - It's possible some build scripts haven't been convert yet
> >> > >
> >> > > I'm thinking yes?
> >> >
> >> > I vote yes. The build scripts I know about are either converted or broken
> >> > because autotools no longer works :-)
> >> >
> 
> Yes from me too. We do have the build scripts kind of messed up
> already for master in Jenkins:
> 
> https://github.com/ceph/ceph-build/commit/40b94af494dbb07440bf90f5b6695ecf2839b392
> 
> We still need to support both because we still need to cut releases
> for branches that do not support it though.
> 
> >> > Cheers
> >> >
> >> > > sage
> >> > >
> >> > >
> >> > > On Tue, 23 Aug 2016, Nathan Cutler wrote:
> >> > >
> >> > >>> That's a different make-deb(s).sh
> >> > >>
> >> > >> Allow me to qualify that statement. This thread seems to be about
> >> > >>
> >> > >> https://github.com/ceph/ceph/blob/master/make-debs.sh
> >> > >>
> >> > >> while the "make-deb.sh" I am working on is
> >> > >>
> >> > >> https://github.com/ceph/ceph-qa-suite/blob/master/tasks/buildpackages
> >> > >> /make-deb.sh
> >> > >>
> >> > >> which is used with the teuthology-openstack backend. However, I see
> >> > >> the two scripts are similar.
> >> > >>
> >> > >> In general, although the autotools stuff is still there in master, it
> >> > >> is not maintained and should not be expected to work (or continue to
> >> > >> work). All build infrastructure targeting master should be converted to
> >> > cmake.
> >> > >>
> >> > >> Nathan
> >> > >> --
> >> > >> To unsubscribe from this list: send the line "unsubscribe ceph-devel"
> >> > >> in the body of a message to majordomo@vger.kernel.org More majordomo
> >> > >> info at  http://vger.kernel.org/majordomo-info.html
> >> > >>
> >> > >>
> >> > > --
> >> > > To unsubscribe from this list: send the line "unsubscribe ceph-devel"
> >> > > in the body of a message to majordomo@vger.kernel.org More majordomo
> >> > > info at  http://vger.kernel.org/majordomo-info.html
> >> > >
> >> >
> >> > --
> >> > Loïc Dachary, Artisan Logiciel Libre
> >>
> >>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

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

* Re: should we remove autotools from master?
  2016-08-23 18:24         ` Sage Weil
@ 2016-08-23 18:26           ` Samuel Just
  2016-08-23 18:50             ` Jason Dillaman
  2016-08-23 18:32           ` Willem Jan Withagen
  1 sibling, 1 reply; 16+ messages in thread
From: Samuel Just @ 2016-08-23 18:26 UTC (permalink / raw)
  To: Sage Weil
  Cc: Alfredo Deza, Avner Ben Hanoch, Loic Dachary, Nathan Cutler,
	Brad Hubbard, Gregory Farnum, Ceph Development, Adir Lev

+1 to dumping autotools, I keep forgetting to add files in.
-Sam

On Tue, Aug 23, 2016 at 11:24 AM, Sage Weil <sweil@redhat.com> wrote:
> On Tue, 23 Aug 2016, Alfredo Deza wrote:
>> On Tue, Aug 23, 2016 at 11:21 AM, Sage Weil <sweil@redhat.com> wrote:
>> > On Tue, 23 Aug 2016, Avner Ben Hanoch wrote:
>> >> For removing autotools support, I think that we should first announce
>> >> that autotools will not be supported starting <some-future-day> and till
>> >> then support both of them in parallel and response to questions about
>> >> it.
>> >
>> > I think we're basically proposing some-future-day as now.
>> >
>> >> Also, we first need to make sure that we have comprehensive instructions
>> >> for using cmake. Notice, that many developers are not familiar with
>> >> cmake; hence, there might be need for extra explanations.
>> >>
>> >> For example, I tried now the instructions in https://github.com/ceph/ceph/blob/master/README.md
>> >>       ./do_cmake.sh
>> >>       cd build
>> >>       make
>> >> and I got the error:
>> >>       make: *** No targets specified and no makefile found.  Stop.
>> >>
>> >> Probably, because of the explanation "This assumes you make your build
>> >> dir a subdirectory of the ceph.git checkout. If you put it elsewhere,
>> >> just replace .. above with a correct path to the checkout." However, if
>> >> you are not familiar with cmake, then this explanation does not tell you
>> >> how to recover from the error.
>> >
>> > The do_cmake.sh script is doing 'mkdir build', so assuming you actually
>> > ran it from the git checkout (i.e., ./do_cmake.sh) then this should be the
>> > case.  Is that actually what caused the error?
>> >
>> > I agree that step 0 is to make README.md complete for cmake.  Perhaps
>> > step 1 is to remove autotools instructions too.
>> >
>> >> Also, I am not sure it is clear to all developers how to combine above
>> >> instructions with options that you could provide to ./configure script.
>> >
>> > There is no more ./configure :).  There are a new set of options you can
>> > pass cmake that are referenced here in README.md:
>> >
>> >         https://github.com/ceph/ceph/blob/master/README.md#cmake-options
>> >
>> >> Hence, I think removing autotools support should not be immediate
>> >
>> > Please help us identify any (other) documentation gaps so we can get past
>> > this.  I thought README.md was in good shape...
>>
>> Nothing in there helped when trying to build binaries in the CI
>> scripts. I had to look at
>> https://github.com/ceph/autobuild-ceph/blob/master/build-ceph-rpm.sh#L56-L58
>> to try to make it work.
>>
>> Of course, this might not help anyone else, since it might not be
>> common to run `make-dist` ?
>
> Ah, good point.  This PR
>
>         https://github.com/ceph/ceph/pull/10829
>
> replaces the incomplete/wrong package build directions with make-dist
> instructions.
>
> Should we document how to build a proper rpm or deb here, or should we try
> to pull what autobuilder and/or ceph-build are doing into scripts in
> ceph.git, and replace the (broken?) make-debs.sh with make-{deb,rpm} and
> ensure they work?  I think it depends on if anything in what you build is
> likely to require changes outside of the ceph tree...
>
> sage
>
>
>>
>> >
>> > sage
>> >
>> >
>> >> Avner
>> >>
>> >> > -----Original Message-----
>> >> > From: Loic Dachary
>> >> >
>> >> >
>> >> > On 23/08/2016 15:58, Sage Weil wrote:
>> >> > > Should we remove the autotools stuff from master?
>> >> > >
>> >> > > Yes:
>> >> > > - It won't be maintained
>> >> > > - It sucks
>> >> > > - It confuses people and they use it by mistake
>> >> > > - We'll find any build scripts etc that haven't been converted sooner
>> >> > > rather than later
>> >> > >
>> >> > > No:
>> >> > > - Other architectures might rely on it
>> >> > > - It's possible some build scripts haven't been convert yet
>> >> > >
>> >> > > I'm thinking yes?
>> >> >
>> >> > I vote yes. The build scripts I know about are either converted or broken
>> >> > because autotools no longer works :-)
>> >> >
>>
>> Yes from me too. We do have the build scripts kind of messed up
>> already for master in Jenkins:
>>
>> https://github.com/ceph/ceph-build/commit/40b94af494dbb07440bf90f5b6695ecf2839b392
>>
>> We still need to support both because we still need to cut releases
>> for branches that do not support it though.
>>
>> >> > Cheers
>> >> >
>> >> > > sage
>> >> > >
>> >> > >
>> >> > > On Tue, 23 Aug 2016, Nathan Cutler wrote:
>> >> > >
>> >> > >>> That's a different make-deb(s).sh
>> >> > >>
>> >> > >> Allow me to qualify that statement. This thread seems to be about
>> >> > >>
>> >> > >> https://github.com/ceph/ceph/blob/master/make-debs.sh
>> >> > >>
>> >> > >> while the "make-deb.sh" I am working on is
>> >> > >>
>> >> > >> https://github.com/ceph/ceph-qa-suite/blob/master/tasks/buildpackages
>> >> > >> /make-deb.sh
>> >> > >>
>> >> > >> which is used with the teuthology-openstack backend. However, I see
>> >> > >> the two scripts are similar.
>> >> > >>
>> >> > >> In general, although the autotools stuff is still there in master, it
>> >> > >> is not maintained and should not be expected to work (or continue to
>> >> > >> work). All build infrastructure targeting master should be converted to
>> >> > cmake.
>> >> > >>
>> >> > >> Nathan
>> >> > >> --
>> >> > >> To unsubscribe from this list: send the line "unsubscribe ceph-devel"
>> >> > >> in the body of a message to majordomo@vger.kernel.org More majordomo
>> >> > >> info at  http://vger.kernel.org/majordomo-info.html
>> >> > >>
>> >> > >>
>> >> > > --
>> >> > > To unsubscribe from this list: send the line "unsubscribe ceph-devel"
>> >> > > in the body of a message to majordomo@vger.kernel.org More majordomo
>> >> > > info at  http://vger.kernel.org/majordomo-info.html
>> >> > >
>> >> >
>> >> > --
>> >> > Loïc Dachary, Artisan Logiciel Libre
>> >>
>> >>
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>

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

* Re: should we remove autotools from master?
  2016-08-23 18:24         ` Sage Weil
  2016-08-23 18:26           ` Samuel Just
@ 2016-08-23 18:32           ` Willem Jan Withagen
  1 sibling, 0 replies; 16+ messages in thread
From: Willem Jan Withagen @ 2016-08-23 18:32 UTC (permalink / raw)
  To: Sage Weil, Alfredo Deza
  Cc: Avner Ben Hanoch, Loic Dachary, Nathan Cutler, Brad Hubbard,
	Gregory Farnum, Ceph Development, Adir Lev

On 23-8-2016 20:24, Sage Weil wrote:
> On Tue, 23 Aug 2016, Alfredo Deza wrote:
>> On Tue, Aug 23, 2016 at 11:21 AM, Sage Weil <sweil@redhat.com> wrote:
>>> On Tue, 23 Aug 2016, Avner Ben Hanoch wrote:
>>>> For removing autotools support, I think that we should first announce
>>>> that autotools will not be supported starting <some-future-day> and till
>>>> then support both of them in parallel and response to questions about
>>>> it.
>>>
>>> I think we're basically proposing some-future-day as now.
>>>
>>>> Also, we first need to make sure that we have comprehensive instructions
>>>> for using cmake. Notice, that many developers are not familiar with
>>>> cmake; hence, there might be need for extra explanations.
>>>>
>>>> For example, I tried now the instructions in https://github.com/ceph/ceph/blob/master/README.md
>>>>       ./do_cmake.sh
>>>>       cd build
>>>>       make
>>>> and I got the error:
>>>>       make: *** No targets specified and no makefile found.  Stop.
>>>>
>>>> Probably, because of the explanation "This assumes you make your build
>>>> dir a subdirectory of the ceph.git checkout. If you put it elsewhere,
>>>> just replace .. above with a correct path to the checkout." However, if
>>>> you are not familiar with cmake, then this explanation does not tell you
>>>> how to recover from the error.
>>>
>>> The do_cmake.sh script is doing 'mkdir build', so assuming you actually
>>> ran it from the git checkout (i.e., ./do_cmake.sh) then this should be the
>>> case.  Is that actually what caused the error?
>>>
>>> I agree that step 0 is to make README.md complete for cmake.  Perhaps
>>> step 1 is to remove autotools instructions too.
>>>
>>>> Also, I am not sure it is clear to all developers how to combine above
>>>> instructions with options that you could provide to ./configure script.
>>>
>>> There is no more ./configure :).  There are a new set of options you can
>>> pass cmake that are referenced here in README.md:
>>>
>>>         https://github.com/ceph/ceph/blob/master/README.md#cmake-options
>>>
>>>> Hence, I think removing autotools support should not be immediate
>>>
>>> Please help us identify any (other) documentation gaps so we can get past
>>> this.  I thought README.md was in good shape...
>>
>> Nothing in there helped when trying to build binaries in the CI
>> scripts. I had to look at
>> https://github.com/ceph/autobuild-ceph/blob/master/build-ceph-rpm.sh#L56-L58
>> to try to make it work.
>>
>> Of course, this might not help anyone else, since it might not be
>> common to run `make-dist` ?
> 
> Ah, good point.  This PR
> 
> 	https://github.com/ceph/ceph/pull/10829
> 
> replaces the incomplete/wrong package build directions with make-dist 
> instructions.
> 
> Should we document how to build a proper rpm or deb here, or should we try 
> to pull what autobuilder and/or ceph-build are doing into scripts in 
> ceph.git, and replace the (broken?) make-debs.sh with make-{deb,rpm} and 
> ensure they work?  I think it depends on if anything in what you build is 
> likely to require changes outside of the ceph tree...

As to dumping autotools: +1

For this specific PR, I'm pretty sure that in future when building
FreeBSD packages, I'd like directions instead of trying to figure out
all the {deb,rpm} stuff.

--WjW

>>>>> -----Original Message-----
>>>>> From: Loic Dachary
>>>>>
>>>>>
>>>>> On 23/08/2016 15:58, Sage Weil wrote:
>>>>>> Should we remove the autotools stuff from master?
>>>>>>
>>>>>> Yes:
>>>>>> - It won't be maintained
>>>>>> - It sucks
>>>>>> - It confuses people and they use it by mistake
>>>>>> - We'll find any build scripts etc that haven't been converted sooner
>>>>>> rather than later
>>>>>>
>>>>>> No:
>>>>>> - Other architectures might rely on it
>>>>>> - It's possible some build scripts haven't been convert yet
>>>>>>
>>>>>> I'm thinking yes?
>>>>>
>>>>> I vote yes. The build scripts I know about are either converted or broken
>>>>> because autotools no longer works :-)
>>>>>
>>
>> Yes from me too. We do have the build scripts kind of messed up
>> already for master in Jenkins:
>>
>> https://github.com/ceph/ceph-build/commit/40b94af494dbb07440bf90f5b6695ecf2839b392
>>
>> We still need to support both because we still need to cut releases
>> for branches that do not support it though.
>>
>>>>> Cheers
>>>>>
>>>>>> sage
>>>>>>
>>>>>>
>>>>>> On Tue, 23 Aug 2016, Nathan Cutler wrote:
>>>>>>
>>>>>>>> That's a different make-deb(s).sh
>>>>>>>
>>>>>>> Allow me to qualify that statement. This thread seems to be about
>>>>>>>
>>>>>>> https://github.com/ceph/ceph/blob/master/make-debs.sh
>>>>>>>
>>>>>>> while the "make-deb.sh" I am working on is
>>>>>>>
>>>>>>> https://github.com/ceph/ceph-qa-suite/blob/master/tasks/buildpackages
>>>>>>> /make-deb.sh
>>>>>>>
>>>>>>> which is used with the teuthology-openstack backend. However, I see
>>>>>>> the two scripts are similar.
>>>>>>>
>>>>>>> In general, although the autotools stuff is still there in master, it
>>>>>>> is not maintained and should not be expected to work (or continue to
>>>>>>> work). All build infrastructure targeting master should be converted to
>>>>> cmake.
>>>>>>>
>>>>>>> Nathan


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

* Re: should we remove autotools from master?
  2016-08-23 18:26           ` Samuel Just
@ 2016-08-23 18:50             ` Jason Dillaman
  0 siblings, 0 replies; 16+ messages in thread
From: Jason Dillaman @ 2016-08-23 18:50 UTC (permalink / raw)
  To: Sage Weil
  Cc: Samuel Just, Alfredo Deza, Avner Ben Hanoch, Loic Dachary,
	Nathan Cutler, Brad Hubbard, Gregory Farnum, Ceph Development,
	Adir Lev

+1 -- I also forget to update the autotools makefile.

On Tue, Aug 23, 2016 at 2:26 PM, Samuel Just <sjust@redhat.com> wrote:
> +1 to dumping autotools, I keep forgetting to add files in.
> -Sam
>
> On Tue, Aug 23, 2016 at 11:24 AM, Sage Weil <sweil@redhat.com> wrote:
>> On Tue, 23 Aug 2016, Alfredo Deza wrote:
>>> On Tue, Aug 23, 2016 at 11:21 AM, Sage Weil <sweil@redhat.com> wrote:
>>> > On Tue, 23 Aug 2016, Avner Ben Hanoch wrote:
>>> >> For removing autotools support, I think that we should first announce
>>> >> that autotools will not be supported starting <some-future-day> and till
>>> >> then support both of them in parallel and response to questions about
>>> >> it.
>>> >
>>> > I think we're basically proposing some-future-day as now.
>>> >
>>> >> Also, we first need to make sure that we have comprehensive instructions
>>> >> for using cmake. Notice, that many developers are not familiar with
>>> >> cmake; hence, there might be need for extra explanations.
>>> >>
>>> >> For example, I tried now the instructions in https://github.com/ceph/ceph/blob/master/README.md
>>> >>       ./do_cmake.sh
>>> >>       cd build
>>> >>       make
>>> >> and I got the error:
>>> >>       make: *** No targets specified and no makefile found.  Stop.
>>> >>
>>> >> Probably, because of the explanation "This assumes you make your build
>>> >> dir a subdirectory of the ceph.git checkout. If you put it elsewhere,
>>> >> just replace .. above with a correct path to the checkout." However, if
>>> >> you are not familiar with cmake, then this explanation does not tell you
>>> >> how to recover from the error.
>>> >
>>> > The do_cmake.sh script is doing 'mkdir build', so assuming you actually
>>> > ran it from the git checkout (i.e., ./do_cmake.sh) then this should be the
>>> > case.  Is that actually what caused the error?
>>> >
>>> > I agree that step 0 is to make README.md complete for cmake.  Perhaps
>>> > step 1 is to remove autotools instructions too.
>>> >
>>> >> Also, I am not sure it is clear to all developers how to combine above
>>> >> instructions with options that you could provide to ./configure script.
>>> >
>>> > There is no more ./configure :).  There are a new set of options you can
>>> > pass cmake that are referenced here in README.md:
>>> >
>>> >         https://github.com/ceph/ceph/blob/master/README.md#cmake-options
>>> >
>>> >> Hence, I think removing autotools support should not be immediate
>>> >
>>> > Please help us identify any (other) documentation gaps so we can get past
>>> > this.  I thought README.md was in good shape...
>>>
>>> Nothing in there helped when trying to build binaries in the CI
>>> scripts. I had to look at
>>> https://github.com/ceph/autobuild-ceph/blob/master/build-ceph-rpm.sh#L56-L58
>>> to try to make it work.
>>>
>>> Of course, this might not help anyone else, since it might not be
>>> common to run `make-dist` ?
>>
>> Ah, good point.  This PR
>>
>>         https://github.com/ceph/ceph/pull/10829
>>
>> replaces the incomplete/wrong package build directions with make-dist
>> instructions.
>>
>> Should we document how to build a proper rpm or deb here, or should we try
>> to pull what autobuilder and/or ceph-build are doing into scripts in
>> ceph.git, and replace the (broken?) make-debs.sh with make-{deb,rpm} and
>> ensure they work?  I think it depends on if anything in what you build is
>> likely to require changes outside of the ceph tree...
>>
>> sage
>>
>>
>>>
>>> >
>>> > sage
>>> >
>>> >
>>> >> Avner
>>> >>
>>> >> > -----Original Message-----
>>> >> > From: Loic Dachary
>>> >> >
>>> >> >
>>> >> > On 23/08/2016 15:58, Sage Weil wrote:
>>> >> > > Should we remove the autotools stuff from master?
>>> >> > >
>>> >> > > Yes:
>>> >> > > - It won't be maintained
>>> >> > > - It sucks
>>> >> > > - It confuses people and they use it by mistake
>>> >> > > - We'll find any build scripts etc that haven't been converted sooner
>>> >> > > rather than later
>>> >> > >
>>> >> > > No:
>>> >> > > - Other architectures might rely on it
>>> >> > > - It's possible some build scripts haven't been convert yet
>>> >> > >
>>> >> > > I'm thinking yes?
>>> >> >
>>> >> > I vote yes. The build scripts I know about are either converted or broken
>>> >> > because autotools no longer works :-)
>>> >> >
>>>
>>> Yes from me too. We do have the build scripts kind of messed up
>>> already for master in Jenkins:
>>>
>>> https://github.com/ceph/ceph-build/commit/40b94af494dbb07440bf90f5b6695ecf2839b392
>>>
>>> We still need to support both because we still need to cut releases
>>> for branches that do not support it though.
>>>
>>> >> > Cheers
>>> >> >
>>> >> > > sage
>>> >> > >
>>> >> > >
>>> >> > > On Tue, 23 Aug 2016, Nathan Cutler wrote:
>>> >> > >
>>> >> > >>> That's a different make-deb(s).sh
>>> >> > >>
>>> >> > >> Allow me to qualify that statement. This thread seems to be about
>>> >> > >>
>>> >> > >> https://github.com/ceph/ceph/blob/master/make-debs.sh
>>> >> > >>
>>> >> > >> while the "make-deb.sh" I am working on is
>>> >> > >>
>>> >> > >> https://github.com/ceph/ceph-qa-suite/blob/master/tasks/buildpackages
>>> >> > >> /make-deb.sh
>>> >> > >>
>>> >> > >> which is used with the teuthology-openstack backend. However, I see
>>> >> > >> the two scripts are similar.
>>> >> > >>
>>> >> > >> In general, although the autotools stuff is still there in master, it
>>> >> > >> is not maintained and should not be expected to work (or continue to
>>> >> > >> work). All build infrastructure targeting master should be converted to
>>> >> > cmake.
>>> >> > >>
>>> >> > >> Nathan
>>> >> > >> --
>>> >> > >> To unsubscribe from this list: send the line "unsubscribe ceph-devel"
>>> >> > >> in the body of a message to majordomo@vger.kernel.org More majordomo
>>> >> > >> info at  http://vger.kernel.org/majordomo-info.html
>>> >> > >>
>>> >> > >>
>>> >> > > --
>>> >> > > To unsubscribe from this list: send the line "unsubscribe ceph-devel"
>>> >> > > in the body of a message to majordomo@vger.kernel.org More majordomo
>>> >> > > info at  http://vger.kernel.org/majordomo-info.html
>>> >> > >
>>> >> >
>>> >> > --
>>> >> > Loïc Dachary, Artisan Logiciel Libre
>>> >>
>>> >>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Jason

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

* Re: should we remove autotools from master?
  2016-08-23 15:11   ` Avner Ben Hanoch
  2016-08-23 15:21     ` Sage Weil
@ 2016-08-24  9:44     ` Willem Jan Withagen
  1 sibling, 0 replies; 16+ messages in thread
From: Willem Jan Withagen @ 2016-08-24  9:44 UTC (permalink / raw)
  To: Avner Ben Hanoch, Loic Dachary, Sage Weil, Nathan Cutler
  Cc: Brad Hubbard, Gregory Farnum, Ceph Development, Adir Lev

On 23-8-2016 17:11, Avner Ben Hanoch wrote:
> For removing autotools support, I think that we should first announce that autotools will not be supported starting <some-future-day> and till then support both of them in parallel and response to questions about it.
> 
> Also, we first need to make sure that we have comprehensive instructions for using cmake.
> Notice, that many developers are not familiar with cmake; hence, there might be need for extra explanations.
> 
> For example, I tried now the instructions in https://github.com/ceph/ceph/blob/master/README.md 
> 	./do_cmake.sh
> 	cd build
> 	make
> and I got the error:
> 	make: *** No targets specified and no makefile found.  Stop.
> 
> Probably, because of the explanation "This assumes you make your build dir a subdirectory of the ceph.git checkout. If you put it elsewhere, just replace .. above with a correct path to the checkout." However, if you are not familiar with cmake, then this explanation does not tell you how to recover from the error.
> 
> Also, I am not sure it is clear to all developers how to combine above instructions with options that you could provide to ./configure script.

eeeh,

Isn't ./configure part of the autotools and should that not also go?
Haven't used ./configure since I started using cmake, which is a big plus.

Note that you can put build/config options on the do_cmake.sh commandline.

--WjW



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

* RE: should we remove autotools from master?
  2016-08-23 15:21     ` Sage Weil
  2016-08-23 18:08       ` Alfredo Deza
@ 2016-08-24 16:15       ` Avner Ben Hanoch
  1 sibling, 0 replies; 16+ messages in thread
From: Avner Ben Hanoch @ 2016-08-24 16:15 UTC (permalink / raw)
  To: Sage Weil
  Cc: Loic Dachary, Nathan Cutler, Brad Hubbard, Gregory Farnum,
	Ceph Development, Adir Lev

Hi,

Thanks for all the explanations.  
I wrote a quick update inlined below.  However, I am still investigating and I will probably have better status within a day or two

Regards,
  Avner

> -----Original Message-----
> From: Sage Weil 
> Sent: Tuesday, August 23, 2016 18:21
> 
> On Tue, 23 Aug 2016, Avner Ben Hanoch wrote:
> > For removing autotools support, I think that we should first announce
> > that autotools will not be supported starting <some-future-day> and
> > till then support both of them in parallel and response to questions
> > about it.
> 
> I think we're basically proposing some-future-day as now.
> 
> > Also, we first need to make sure that we have comprehensive
> > instructions for using cmake. Notice, that many developers are not
> > familiar with cmake; hence, there might be need for extra explanations.
> >
> > For example, I tried now the instructions in
> https://github.com/ceph/ceph/blob/master/README.md
> > 	./do_cmake.sh
> > 	cd build
> > 	make
> > and I got the error:
> > 	make: *** No targets specified and no makefile found.  Stop.
> >
> > Probably, because of the explanation "This assumes you make your build
> > dir a subdirectory of the ceph.git checkout. If you put it elsewhere,
> > just replace .. above with a correct path to the checkout." However,
> > if you are not familiar with cmake, then this explanation does not
> > tell you how to recover from the error.
> 
> The do_cmake.sh script is doing 'mkdir build', so assuming you actually ran it
> from the git checkout (i.e., ./do_cmake.sh) then this should be the case.  Is
> that actually what caused the error?

I did run "cd build; make" from the git checkout (I did ./do_cmake.sh) when I had the error
	make: *** No targets specified and no makefile found.  Stop.
I am still investigating, because sometimes it succeeds and sometimes it fails

> 
> I agree that step 0 is to make README.md complete for cmake.  Perhaps step
> 1 is to remove autotools instructions too.
> 
> > Also, I am not sure it is clear to all developers how to combine above
> > instructions with options that you could provide to ./configure script.
> 
> There is no more ./configure :).  There are a new set of options you can pass
> cmake that are referenced here in README.md:
> 
> 	https://github.com/ceph/ceph/blob/master/README.md#cmake-
> options

I have many link errors after using ./do_cmake.sh -DWITH_XIO=ON
I am still investigating

> 
> > Hence, I think removing autotools support should not be immediate
> 
> Please help us identify any (other) documentation gaps so we can get past
> this.  I thought README.md was in good shape...
> 
> sage
> 

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

* Re: should we remove autotools from master?
  2016-08-23 13:58 should we remove autotools from master? Sage Weil
  2016-08-23 14:19 ` Loic Dachary
  2016-08-23 15:11 ` Ken Dreyer
@ 2016-08-26 23:44 ` Kamble, Nitin A
  2016-09-07 15:51   ` Sage Weil
  2 siblings, 1 reply; 16+ messages in thread
From: Kamble, Nitin A @ 2016-08-26 23:44 UTC (permalink / raw)
  To: Sage Weil
  Cc: Nathan Cutler, Brad Hubbard, Avner Ben Hanoch, Gregory Farnum,
	Ceph Development



> On Aug 23, 2016, at 6:58 AM, Sage Weil <sweil@redhat.com> wrote:
> 
> Should we remove the autotools stuff from master?
> 
> Yes:
> - It won't be maintained
> - It sucks
> - It confuses people and they use it by mistake
> - We'll find any build scripts etc that haven't been converted sooner 
> rather than later
> 
> No:
> - Other architectures might rely on it

It would be good to know how many existing architectures will be broken with dropping of automake. Nobody has screamed loud enough yet, so looks like it’s not a big issue.

Nitin

> - It's possible some build scripts haven't been convert yet
> 
> I'm thinking yes?
> sage
> 
> 
> On Tue, 23 Aug 2016, Nathan Cutler wrote:
> 
>>> That's a different make-deb(s).sh
>> 
>> Allow me to qualify that statement. This thread seems to be about
>> 
>> https://github.com/ceph/ceph/blob/master/make-debs.sh
>> 
>> while the "make-deb.sh" I am working on is
>> 
>> https://github.com/ceph/ceph-qa-suite/blob/master/tasks/buildpackages/make-deb.sh
>> 
>> which is used with the teuthology-openstack backend. However, I see the two
>> scripts are similar.
>> 
>> In general, although the autotools stuff is still there in master, it is not
>> maintained and should not be expected to work (or continue to work). All build
>> infrastructure targeting master should be converted to cmake.
>> 
>> Nathan
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> 
>> 
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

* Re: should we remove autotools from master?
  2016-08-26 23:44 ` Kamble, Nitin A
@ 2016-09-07 15:51   ` Sage Weil
  2016-09-13  6:42     ` Avner Ben Hanoch
  0 siblings, 1 reply; 16+ messages in thread
From: Sage Weil @ 2016-09-07 15:51 UTC (permalink / raw)
  To: Kamble, Nitin A
  Cc: Nathan Cutler, Brad Hubbard, Avner Ben Hanoch, Gregory Farnum,
	Ceph Development

Here's a PR:

	https://github.com/ceph/ceph/pull/11007

I suggest we merge this, and then do an upstream dev release to shake 
out any lingering toolchain dependencies on autotools.

sage

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

* RE: should we remove autotools from master?
  2016-09-07 15:51   ` Sage Weil
@ 2016-09-13  6:42     ` Avner Ben Hanoch
  2016-09-13 10:20       ` Avner Ben Hanoch
  0 siblings, 1 reply; 16+ messages in thread
From: Avner Ben Hanoch @ 2016-09-13  6:42 UTC (permalink / raw)
  To: Sage Weil, Kamble, Nitin A
  Cc: Nathan Cutler, Brad Hubbard, Gregory Farnum, Ceph Development

Hi,

Thanks for the PR notice.

I don't have any comment on the PR itself.  Only that I am not familiar with cmake and I don't manage to compile ceph with xio after cmake. Neither I manage to fix the cmake files.

I am using cmake -DWITH_XIO=ON, then - at make - I am getting many "undefined reference" link errors for xio symbols.  The point is that the link errors seems to only come from *ceph test applications*. (ceph-mon and ceph-osd are built correctly with xio).

For example:
make ceph_test_mon_workloadgen => FAIL
make ceph-osd => succeed

I positively know that ceph-osd was built with xio because I double checked it using:

$ ldd bin/ceph-osd | grep libxio
        libxio.so.0 => /usr/lib/libxio.so.0 (0x00007fd84d4b9000)

(also, I now that src/test/mon/CMakeFiles/ceph_test_mon_workloadgen.dir/link.txt does contain "-lxio")

regards,
  Avner

> -----Original Message-----
> From: Sage Weil 
> Sent: Wednesday, September 07, 2016 18:51
> To: Kamble, Nitin A 
> Cc: Nathan Cutler; Brad Hubbard; Avner Ben Hanoch;
> Gregory Farnum; Ceph Development <ceph-
> devel@vger.kernel.org>
> Subject: Re: should we remove autotools from master?
> 
> Here's a PR:
> 
> 	https://github.com/ceph/ceph/pull/11007
> 
> I suggest we merge this, and then do an upstream dev release to shake out
> any lingering toolchain dependencies on autotools.
> 
> sage

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

* RE: should we remove autotools from master?
  2016-09-13  6:42     ` Avner Ben Hanoch
@ 2016-09-13 10:20       ` Avner Ben Hanoch
  0 siblings, 0 replies; 16+ messages in thread
From: Avner Ben Hanoch @ 2016-09-13 10:20 UTC (permalink / raw)
  To: Avner Ben Hanoch, Sage Weil, Kamble, Nitin A
  Cc: Nathan Cutler, Brad Hubbard, Gregory Farnum, Ceph Development

More info: 
I think that the link problem is probably because /usr/lib is missing from the *link_directories* in "makefiles" of some ceph executables (even though they are linked with -lxio).  (ceph-osd probably gets /usr/lib because it takes tcmalloc from that directory)

I believe I will be able to fix it. However, I am putting that effort on hold for the moment as we are focusing on releasing new version of ceph with xio in 2 weeks.

Thanks,
  Avner


> -----Original Message-----
> From: ceph-devel-owner@vger.kernel.org [mailto:ceph-devel-
> owner@vger.kernel.org] On Behalf Of Avner Ben Hanoch
> Sent: Tuesday, September 13, 2016 09:43
> 
> Hi,
> 
> Thanks for the PR notice.
> 
> I don't have any comment on the PR itself.  Only that I am not familiar with
> cmake and I don't manage to compile ceph with xio after cmake. Neither I
> manage to fix the cmake files.
> 
> I am using cmake -DWITH_XIO=ON, then - at make - I am getting many
> "undefined reference" link errors for xio symbols.  The point is that the link
> errors seems to only come from *ceph test applications*. (ceph-mon and
> ceph-osd are built correctly with xio).
> 
> For example:
> make ceph_test_mon_workloadgen => FAIL
> make ceph-osd => succeed
> 
> I positively know that ceph-osd was built with xio because I double checked it
> using:
> 
> $ ldd bin/ceph-osd | grep libxio
>         libxio.so.0 => /usr/lib/libxio.so.0 (0x00007fd84d4b9000)
> 
> (also, I now that
> src/test/mon/CMakeFiles/ceph_test_mon_workloadgen.dir/link.txt does
> contain "-lxio")
> 
> regards,
>   Avner
> 
> > -----Original Message-----
> > From: Sage Weil
> > Sent: Wednesday, September 07, 2016 18:51
> > To: Kamble, Nitin A
> > Cc: Nathan Cutler; Brad Hubbard; Avner Ben Hanoch; Gregory Farnum;
> > Ceph Development <ceph- devel@vger.kernel.org>
> > Subject: Re: should we remove autotools from master?
> >
> > Here's a PR:
> >
> > 	https://github.com/ceph/ceph/pull/11007
> >
> > I suggest we merge this, and then do an upstream dev release to shake
> > out any lingering toolchain dependencies on autotools.
> >
> > sage
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the
> body of a message to majordomo@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2016-09-13 11:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-23 13:58 should we remove autotools from master? Sage Weil
2016-08-23 14:19 ` Loic Dachary
2016-08-23 15:11   ` Avner Ben Hanoch
2016-08-23 15:21     ` Sage Weil
2016-08-23 18:08       ` Alfredo Deza
2016-08-23 18:24         ` Sage Weil
2016-08-23 18:26           ` Samuel Just
2016-08-23 18:50             ` Jason Dillaman
2016-08-23 18:32           ` Willem Jan Withagen
2016-08-24 16:15       ` Avner Ben Hanoch
2016-08-24  9:44     ` Willem Jan Withagen
2016-08-23 15:11 ` Ken Dreyer
2016-08-26 23:44 ` Kamble, Nitin A
2016-09-07 15:51   ` Sage Weil
2016-09-13  6:42     ` Avner Ben Hanoch
2016-09-13 10:20       ` Avner Ben Hanoch

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.