All of lore.kernel.org
 help / color / mirror / Atom feed
* errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
@ 2016-08-22  9:00 Avner Ben Hanoch
  2016-08-22 22:00 ` Gregory Farnum
  0 siblings, 1 reply; 17+ messages in thread
From: Avner Ben Hanoch @ 2016-08-22  9:00 UTC (permalink / raw)
  To: Ceph Development

HI All,

The following lines from make-debs.sh:

	vers=$(git describe --match "v*" | sed s/^v//)
	./autogen.sh
	./configure --with-rocksdb --with-ocf \
	    --with-nss --with-debug --enable-cephfs-java \
	    --with-lttng --with-babeltrace
	make distdir=ceph-$vers dist

produces the following error:

	make  dist-gzip am__post_remove_distdir='@:'
	make[1]: Entering directory '/mnt/sdh/avnerb/ceph-github'
	if test -d "ceph-11.0.0-1689-g23eeb74"; then find "ceph-11.0.0-1689-g23eeb74" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "ceph-11.0.0-1689-g23eeb74" || { sleep 5 && rm -rf "ceph-11.0.0-1689-g23eeb74"; }; else :; fi
	test -d "ceph-11.0.0-1689-g23eeb74" || mkdir "ceph-11.0.0-1689-g23eeb74"
	 (cd src && make  top_distdir=../ceph-11.0.0-1689-g23eeb74 distdir=../ceph-11.0.0-1689-g23eeb74/src \
	     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
	make[2]: Entering directory '/mnt/sdh/avnerb/ceph-github/src'
	./make_version -g ./.git_version
	if [ -n "$NO_VERSION" ] ; then \
		./make_version -g ./.git_version -c ./ceph_ver.h -n ; \
	else \
		./make_version -g ./.git_version -c ./ceph_ver.h ; \
	fi
	make[2]: *** No rule to make target 'rocksdb/db/slice.cc', needed by 'distdir'.  Stop.
	make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/src'
	Makefile:976: recipe for target 'distdir' failed
	make[1]: *** [distdir] Error 1
	make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
	Makefile:1078: recipe for target 'dist' failed
	make: *** [dist] Error 2

any idea?

TIA,
  Avner

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

* Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-22  9:00 errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc' Avner Ben Hanoch
@ 2016-08-22 22:00 ` Gregory Farnum
  2016-08-23  8:27   ` Avner Ben Hanoch
  2016-08-23 10:46   ` Avner Ben Hanoch
  0 siblings, 2 replies; 17+ messages in thread
From: Gregory Farnum @ 2016-08-22 22:00 UTC (permalink / raw)
  To: Avner Ben Hanoch; +Cc: Ceph Development

On Mon, Aug 22, 2016 at 2:00 AM, Avner Ben Hanoch <avnerb@mellanox.com> wrote:
> HI All,
>
> The following lines from make-debs.sh:
>
>         vers=$(git describe --match "v*" | sed s/^v//)
>         ./autogen.sh
>         ./configure --with-rocksdb --with-ocf \
>             --with-nss --with-debug --enable-cephfs-java \
>             --with-lttng --with-babeltrace
>         make distdir=ceph-$vers dist
>
> produces the following error:
>
>         make  dist-gzip am__post_remove_distdir='@:'
>         make[1]: Entering directory '/mnt/sdh/avnerb/ceph-github'
>         if test -d "ceph-11.0.0-1689-g23eeb74"; then find "ceph-11.0.0-1689-g23eeb74" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "ceph-11.0.0-1689-g23eeb74" || { sleep 5 && rm -rf "ceph-11.0.0-1689-g23eeb74"; }; else :; fi
>         test -d "ceph-11.0.0-1689-g23eeb74" || mkdir "ceph-11.0.0-1689-g23eeb74"
>          (cd src && make  top_distdir=../ceph-11.0.0-1689-g23eeb74 distdir=../ceph-11.0.0-1689-g23eeb74/src \
>              am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
>         make[2]: Entering directory '/mnt/sdh/avnerb/ceph-github/src'
>         ./make_version -g ./.git_version
>         if [ -n "$NO_VERSION" ] ; then \
>                 ./make_version -g ./.git_version -c ./ceph_ver.h -n ; \
>         else \
>                 ./make_version -g ./.git_version -c ./ceph_ver.h ; \
>         fi
>         make[2]: *** No rule to make target 'rocksdb/db/slice.cc', needed by 'distdir'.  Stop.
>         make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/src'
>         Makefile:976: recipe for target 'distdir' failed
>         make[1]: *** [distdir] Error 1
>         make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
>         Makefile:1078: recipe for target 'dist' failed
>         make: *** [dist] Error 2

Errors here generally occur if you've got an outdated submodule (or
it's just missing). Try deleting it and re-doing the submodule
entirely.
-Greg

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

* RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-22 22:00 ` Gregory Farnum
@ 2016-08-23  8:27   ` Avner Ben Hanoch
  2016-08-23 10:46   ` Avner Ben Hanoch
  1 sibling, 0 replies; 17+ messages in thread
From: Avner Ben Hanoch @ 2016-08-23  8:27 UTC (permalink / raw)
  To: Gregory Farnum; +Cc: Ceph Development

Thanks Greg,

The same error exists even if start with new clone:
	git clone https://github.com/ceph/ceph.git ceph-github
	cd ceph-github
	./make-debs.sh

In the output, I can now see many clones of submodules, including:
	...
	Cloning into 'src/rocksdb'...
	remote: Counting objects: 41223, done.
	remote: Compressing objects: 100% (4/4), done.
	remote: Total 41223 (delta 0), reused 0 (delta 0), pack-reused 41219
	Receiving objects: 100% (41223/41223), 51.05 MiB | 1.85 MiB/s, done.
	Resolving deltas: 100% (30718/30718), done.
	Checking connectivity... done.
	Submodule path 'src/rocksdb': checked out '6797e6ffacd90470140f64cea068970bb3a30aaf'
	...

And still, same error, at the end:
	...
	+ make distdir=ceph-11.0.0-1718-g2202bcc dist
	make  dist-gzip am__post_remove_distdir='@:'
	make[1]: Entering directory '/mnt/sdh/avnerb/ceph-github'
	if test -d "ceph-11.0.0-1718-g2202bcc"; then find "ceph-11.0.0-1718-g2202bcc" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "ceph-11.0.0-1718-g2202bcc" || { sleep 5 && rm -rf "ceph-11.0.0-1718-g2202bcc"; }; else :; fi
	test -d "ceph-11.0.0-1718-g2202bcc" || mkdir "ceph-11.0.0-1718-g2202bcc"
	 (cd src && make  top_distdir=../ceph-11.0.0-1718-g2202bcc distdir=../ceph-11.0.0-1718-g2202bcc/src \
	     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
	make[2]: Entering directory '/mnt/sdh/avnerb/ceph-github/src'
	./make_version -g ./.git_version
	if [ -n "$NO_VERSION" ] ; then \
		./make_version -g ./.git_version -c ./ceph_ver.h -n ; \
	else \
		./make_version -g ./.git_version -c ./ceph_ver.h ; \
	fi
	make[2]: *** No rule to make target 'rocksdb/db/slice.cc', needed by 'distdir'.  Stop.
	make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/src'
	Makefile:976: recipe for target 'distdir' failed
	make[1]: *** [distdir] Error 1
	make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
	Makefile:1078: recipe for target 'dist' failed
	make: *** [dist] Error 2

-----Original Message-----
From: Gregory Farnum 
Sent: Tuesday, August 23, 2016 01:00
To: Avner Ben Hanoch
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'

On Mon, Aug 22, 2016 at 2:00 AM, Avner Ben Hanoch <avnerb@mellanox.com> wrote:
> HI All,
>
> The following lines from make-debs.sh:
>
>         vers=$(git describe --match "v*" | sed s/^v//)
>         ./autogen.sh
>         ./configure --with-rocksdb --with-ocf \
>             --with-nss --with-debug --enable-cephfs-java \
>             --with-lttng --with-babeltrace
>         make distdir=ceph-$vers dist
>
> produces the following error:
>
>         make  dist-gzip am__post_remove_distdir='@:'
>         make[1]: Entering directory '/mnt/sdh/avnerb/ceph-github'
>         if test -d "ceph-11.0.0-1689-g23eeb74"; then find "ceph-11.0.0-1689-g23eeb74" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "ceph-11.0.0-1689-g23eeb74" || { sleep 5 && rm -rf "ceph-11.0.0-1689-g23eeb74"; }; else :; fi
>         test -d "ceph-11.0.0-1689-g23eeb74" || mkdir "ceph-11.0.0-1689-g23eeb74"
>          (cd src && make  top_distdir=../ceph-11.0.0-1689-g23eeb74 distdir=../ceph-11.0.0-1689-g23eeb74/src \
>              am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
>         make[2]: Entering directory '/mnt/sdh/avnerb/ceph-github/src'
>         ./make_version -g ./.git_version
>         if [ -n "$NO_VERSION" ] ; then \
>                 ./make_version -g ./.git_version -c ./ceph_ver.h -n ; \
>         else \
>                 ./make_version -g ./.git_version -c ./ceph_ver.h ; \
>         fi
>         make[2]: *** No rule to make target 'rocksdb/db/slice.cc', needed by 'distdir'.  Stop.
>         make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/src'
>         Makefile:976: recipe for target 'distdir' failed
>         make[1]: *** [distdir] Error 1
>         make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
>         Makefile:1078: recipe for target 'dist' failed
>         make: *** [dist] Error 2

Errors here generally occur if you've got an outdated submodule (or it's just missing). Try deleting it and re-doing the submodule entirely.
-Greg

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

* RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-22 22:00 ` Gregory Farnum
  2016-08-23  8:27   ` Avner Ben Hanoch
@ 2016-08-23 10:46   ` Avner Ben Hanoch
  2016-08-23 11:01     ` Brad Hubbard
  1 sibling, 1 reply; 17+ messages in thread
From: Avner Ben Hanoch @ 2016-08-23 10:46 UTC (permalink / raw)
  To: Gregory Farnum; +Cc: Ceph Development

Additional info, if I "git checkout v11.0.0" then ./make-debs.sh works okay.
Hence, perhaps something was broken after this tag

-----Original Message-----
From: Avner Ben Hanoch 
Sent: Tuesday, August 23, 2016 11:27
To: 'Gregory Farnum' 
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'

Thanks Greg,

The same error exists even if start with new clone:
	git clone https://github.com/ceph/ceph.git ceph-github
	cd ceph-github
	./make-debs.sh

In the output, I can now see many clones of submodules, including:
	...
	Cloning into 'src/rocksdb'...
	remote: Counting objects: 41223, done.
	remote: Compressing objects: 100% (4/4), done.
	remote: Total 41223 (delta 0), reused 0 (delta 0), pack-reused 41219
	Receiving objects: 100% (41223/41223), 51.05 MiB | 1.85 MiB/s, done.
	Resolving deltas: 100% (30718/30718), done.
	Checking connectivity... done.
	Submodule path 'src/rocksdb': checked out '6797e6ffacd90470140f64cea068970bb3a30aaf'
	...

And still, same error, at the end:
	...
	+ make distdir=ceph-11.0.0-1718-g2202bcc dist
	make  dist-gzip am__post_remove_distdir='@:'
	make[1]: Entering directory '/mnt/sdh/avnerb/ceph-github'
	if test -d "ceph-11.0.0-1718-g2202bcc"; then find "ceph-11.0.0-1718-g2202bcc" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "ceph-11.0.0-1718-g2202bcc" || { sleep 5 && rm -rf "ceph-11.0.0-1718-g2202bcc"; }; else :; fi
	test -d "ceph-11.0.0-1718-g2202bcc" || mkdir "ceph-11.0.0-1718-g2202bcc"
	 (cd src && make  top_distdir=../ceph-11.0.0-1718-g2202bcc distdir=../ceph-11.0.0-1718-g2202bcc/src \
	     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
	make[2]: Entering directory '/mnt/sdh/avnerb/ceph-github/src'
	./make_version -g ./.git_version
	if [ -n "$NO_VERSION" ] ; then \
		./make_version -g ./.git_version -c ./ceph_ver.h -n ; \
	else \
		./make_version -g ./.git_version -c ./ceph_ver.h ; \
	fi
	make[2]: *** No rule to make target 'rocksdb/db/slice.cc', needed by 'distdir'.  Stop.
	make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/src'
	Makefile:976: recipe for target 'distdir' failed
	make[1]: *** [distdir] Error 1
	make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
	Makefile:1078: recipe for target 'dist' failed
	make: *** [dist] Error 2

-----Original Message-----
From: Gregory Farnum 
Sent: Tuesday, August 23, 2016 01:00
To: Avner Ben Hanoch
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'

On Mon, Aug 22, 2016 at 2:00 AM, Avner Ben Hanoch <avnerb@mellanox.com> wrote:
> HI All,
>
> The following lines from make-debs.sh:
>
>         vers=$(git describe --match "v*" | sed s/^v//)
>         ./autogen.sh
>         ./configure --with-rocksdb --with-ocf \
>             --with-nss --with-debug --enable-cephfs-java \
>             --with-lttng --with-babeltrace
>         make distdir=ceph-$vers dist
>
> produces the following error:
>
>         make  dist-gzip am__post_remove_distdir='@:'
>         make[1]: Entering directory '/mnt/sdh/avnerb/ceph-github'
>         if test -d "ceph-11.0.0-1689-g23eeb74"; then find "ceph-11.0.0-1689-g23eeb74" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "ceph-11.0.0-1689-g23eeb74" || { sleep 5 && rm -rf "ceph-11.0.0-1689-g23eeb74"; }; else :; fi
>         test -d "ceph-11.0.0-1689-g23eeb74" || mkdir "ceph-11.0.0-1689-g23eeb74"
>          (cd src && make  top_distdir=../ceph-11.0.0-1689-g23eeb74 distdir=../ceph-11.0.0-1689-g23eeb74/src \
>              am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
>         make[2]: Entering directory '/mnt/sdh/avnerb/ceph-github/src'
>         ./make_version -g ./.git_version
>         if [ -n "$NO_VERSION" ] ; then \
>                 ./make_version -g ./.git_version -c ./ceph_ver.h -n ; \
>         else \
>                 ./make_version -g ./.git_version -c ./ceph_ver.h ; \
>         fi
>         make[2]: *** No rule to make target 'rocksdb/db/slice.cc', needed by 'distdir'.  Stop.
>         make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/src'
>         Makefile:976: recipe for target 'distdir' failed
>         make[1]: *** [distdir] Error 1
>         make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
>         Makefile:1078: recipe for target 'dist' failed
>         make: *** [dist] Error 2

Errors here generally occur if you've got an outdated submodule (or it's just missing). Try deleting it and re-doing the submodule entirely.
-Greg

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

* Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 10:46   ` Avner Ben Hanoch
@ 2016-08-23 11:01     ` Brad Hubbard
  2016-08-23 11:21       ` Brad Hubbard
                         ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Brad Hubbard @ 2016-08-23 11:01 UTC (permalink / raw)
  To: Avner Ben Hanoch; +Cc: Gregory Farnum, Ceph Development

On Tue, Aug 23, 2016 at 8:46 PM, Avner Ben Hanoch <avnerb@mellanox.com> wrote:
> Additional info, if I "git checkout v11.0.0" then ./make-debs.sh works okay.
> Hence, perhaps something was broken after this tag
>
> -----Original Message-----
> From: Avner Ben Hanoch
> Sent: Tuesday, August 23, 2016 11:27
> To: 'Gregory Farnum'
> Cc: Ceph Development <ceph-devel@vger.kernel.org>
> Subject: RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
>
> Thanks Greg,
>
> The same error exists even if start with new clone:
>         git clone https://github.com/ceph/ceph.git ceph-github
>         cd ceph-github
>         ./make-debs.sh
>
> In the output, I can now see many clones of submodules, including:
>         ...
>         Cloning into 'src/rocksdb'...
>         remote: Counting objects: 41223, done.
>         remote: Compressing objects: 100% (4/4), done.
>         remote: Total 41223 (delta 0), reused 0 (delta 0), pack-reused 41219
>         Receiving objects: 100% (41223/41223), 51.05 MiB | 1.85 MiB/s, done.
>         Resolving deltas: 100% (30718/30718), done.
>         Checking connectivity... done.
>         Submodule path 'src/rocksdb': checked out '6797e6ffacd90470140f64cea068970bb3a30aaf'
>         ...
>
> And still, same error, at the end:
>         ...
>         + make distdir=ceph-11.0.0-1718-g2202bcc dist
>         make  dist-gzip am__post_remove_distdir='@:'
>         make[1]: Entering directory '/mnt/sdh/avnerb/ceph-github'
>         if test -d "ceph-11.0.0-1718-g2202bcc"; then find "ceph-11.0.0-1718-g2202bcc" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "ceph-11.0.0-1718-g2202bcc" || { sleep 5 && rm -rf "ceph-11.0.0-1718-g2202bcc"; }; else :; fi
>         test -d "ceph-11.0.0-1718-g2202bcc" || mkdir "ceph-11.0.0-1718-g2202bcc"
>          (cd src && make  top_distdir=../ceph-11.0.0-1718-g2202bcc distdir=../ceph-11.0.0-1718-g2202bcc/src \
>              am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
>         make[2]: Entering directory '/mnt/sdh/avnerb/ceph-github/src'
>         ./make_version -g ./.git_version
>         if [ -n "$NO_VERSION" ] ; then \
>                 ./make_version -g ./.git_version -c ./ceph_ver.h -n ; \
>         else \
>                 ./make_version -g ./.git_version -c ./ceph_ver.h ; \
>         fi
>        
>         make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/src'
>         Makefile:976: recipe for target 'distdir' failed
>         make[1]: *** [distdir] Error 1
>         make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
>         Makefile:1078: recipe for target 'dist' failed
>         make: *** [dist] Error 2

You could try changing to src/rocksdb and running "make clean" and "git clean
-fdx" and retrying the build. It's possible some build artefact was left over in
that submodule's directory structure for that commit. You could also compare the
SHA1 of the src/rocksdb submodule in each case (workingv11.0.0  and not working) and see
what changed between them.

-- 
HTH,
Brad

>
> -----Original Message-----
> From: Gregory Farnum
> Sent: Tuesday, August 23, 2016 01:00
> To: Avner Ben Hanoch
> Cc: Ceph Development <ceph-devel@vger.kernel.org>
> Subject: Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
>
> On Mon, Aug 22, 2016 at 2:00 AM, Avner Ben Hanoch <avnerb@mellanox.com> wrote:
>> HI All,
>>
>> The following lines from make-debs.sh:
>>
>>         vers=$(git describe --match "v*" | sed s/^v//)
>>         ./autogen.sh
>>         ./configure --with-rocksdb --with-ocf \
>>             --with-nss --with-debug --enable-cephfs-java \
>>             --with-lttng --with-babeltrace
>>         make distdir=ceph-$vers dist
>>
>> produces the following error:
>>
>>         make  dist-gzip am__post_remove_distdir='@:'
>>         make[1]: Entering directory '/mnt/sdh/avnerb/ceph-github'
>>         if test -d "ceph-11.0.0-1689-g23eeb74"; then find "ceph-11.0.0-1689-g23eeb74" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "ceph-11.0.0-1689-g23eeb74" || { sleep 5 && rm -rf "ceph-11.0.0-1689-g23eeb74"; }; else :; fi
>>         test -d "ceph-11.0.0-1689-g23eeb74" || mkdir "ceph-11.0.0-1689-g23eeb74"
>>          (cd src && make  top_distdir=../ceph-11.0.0-1689-g23eeb74 distdir=../ceph-11.0.0-1689-g23eeb74/src \
>>              am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
>>         make[2]: Entering directory '/mnt/sdh/avnerb/ceph-github/src'
>>         ./make_version -g ./.git_version
>>         if [ -n "$NO_VERSION" ] ; then \
>>                 ./make_version -g ./.git_version -c ./ceph_ver.h -n ; \
>>         else \
>>                 ./make_version -g ./.git_version -c ./ceph_ver.h ; \
>>         fi
>>         make[2]: *** No rule to make target 'rocksdb/db/slice.cc', needed by 'distdir'.  Stop.
>>         make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/src'
>>         Makefile:976: recipe for target 'distdir' failed
>>         make[1]: *** [distdir] Error 1
>>         make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
>>         Makefile:1078: recipe for target 'dist' failed
>>         make: *** [dist] Error 2
>
> Errors here generally occur if you've got an outdated submodule (or it's just missing). Try deleting it and re-doing the submodule entirely.
> -Greg



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

* Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 11:01     ` Brad Hubbard
@ 2016-08-23 11:21       ` Brad Hubbard
  2016-08-23 11:46         ` Avner Ben Hanoch
  2016-08-23 12:52         ` Nathan Cutler
  2016-08-23 12:12       ` Avner Ben Hanoch
  2016-08-23 13:18       ` Avner Ben Hanoch
  2 siblings, 2 replies; 17+ messages in thread
From: Brad Hubbard @ 2016-08-23 11:21 UTC (permalink / raw)
  To: Avner Ben Hanoch; +Cc: Gregory Farnum, Ceph Development

 On Tue, Aug 23, 2016 at 9:01 PM, Brad Hubbard <bhubbard@redhat.com> wrote:
> On Tue, Aug 23, 2016 at 8:46 PM, Avner Ben Hanoch <avnerb@mellanox.com> wrote:
>> Additional info, if I "git checkout v11.0.0" then ./make-debs.sh works okay.
>> Hence, perhaps something was broken after this tag
>>
>> -----Original Message-----
>> From: Avner Ben Hanoch
>> Sent: Tuesday, August 23, 2016 11:27
>> To: 'Gregory Farnum'
>> Cc: Ceph Development <ceph-devel@vger.kernel.org>
>> Subject: RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
>>
>> Thanks Greg,
>>
>> The same error exists even if start with new clone:
>>         git clone https://github.com/ceph/ceph.git ceph-github
>>         cd ceph-github
>>         ./make-debs.sh
>>
>> In the output, I can now see many clones of submodules, including:
>>         ...
>>         Cloning into 'src/rocksdb'...
>>         remote: Counting objects: 41223, done.
>>         remote: Compressing objects: 100% (4/4), done.
>>         remote: Total 41223 (delta 0), reused 0 (delta 0), pack-reused 41219
>>         Receiving objects: 100% (41223/41223), 51.05 MiB | 1.85 MiB/s, done.
>>         Resolving deltas: 100% (30718/30718), done.
>>         Checking connectivity... done.
>>         Submodule path 'src/rocksdb': checked out '6797e6ffacd90470140f64cea068970bb3a30aaf'
>>         ...
>>
>> And still, same error, at the end:
>>         ...
>>         + make distdir=ceph-11.0.0-1718-g2202bcc dist
>>         make  dist-gzip am__post_remove_distdir='@:'
>>         make[1]: Entering directory '/mnt/sdh/avnerb/ceph-github'
>>         if test -d "ceph-11.0.0-1718-g2202bcc"; then find "ceph-11.0.0-1718-g2202bcc" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "ceph-11.0.0-1718-g2202bcc" || { sleep 5 && rm -rf "ceph-11.0.0-1718-g2202bcc"; }; else :; fi
>>         test -d "ceph-11.0.0-1718-g2202bcc" || mkdir "ceph-11.0.0-1718-g2202bcc"
>>          (cd src && make  top_distdir=../ceph-11.0.0-1718-g2202bcc distdir=../ceph-11.0.0-1718-g2202bcc/src \
>>              am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
>>         make[2]: Entering directory '/mnt/sdh/avnerb/ceph-github/src'
>>         ./make_version -g ./.git_version
>>         if [ -n "$NO_VERSION" ] ; then \
>>                 ./make_version -g ./.git_version -c ./ceph_ver.h -n ; \
>>         else \
>>                 ./make_version -g ./.git_version -c ./ceph_ver.h ; \
>>         fi
>>
>>         make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/src'
>>         Makefile:976: recipe for target 'distdir' failed
>>         make[1]: *** [distdir] Error 1
>>         make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
>>         Makefile:1078: recipe for target 'dist' failed
>>         make: *** [dist] Error 2
>
> You could try changing to src/rocksdb and running "make clean" and "git clean
> -fdx" and retrying the build. It's possible some build artefact was left over in
> that submodule's directory structure for that commit. You could also compare the
> SHA1 of the src/rocksdb submodule in each case (workingv11.0.0  and not working) and see
> what changed between them.
>
> --
> HTH,
> Brad
>
>>
>> -----Original Message-----
>> From: Gregory Farnum
>> Sent: Tuesday, August 23, 2016 01:00
>> To: Avner Ben Hanoch
>> Cc: Ceph Development <ceph-devel@vger.kernel.org>
>> Subject: Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
>>
>> On Mon, Aug 22, 2016 at 2:00 AM, Avner Ben Hanoch <avnerb@mellanox.com> wrote:
>>> HI All,
>>>
>>> The following lines from make-debs.sh:
>>>
>>>         vers=$(git describe --match "v*" | sed s/^v//)
>>>         ./autogen.sh
>>>         ./configure --with-rocksdb --with-ocf \
>>>             --with-nss --with-debug --enable-cephfs-java \
>>>             --with-lttng --with-babeltrace
>>>         make distdir=ceph-$vers dist
>>>
>>> produces the following error:
>>>
>>>         make  dist-gzip am__post_remove_distdir='@:'
>>>         make[1]: Entering directory '/mnt/sdh/avnerb/ceph-github'
>>>         if test -d "ceph-11.0.0-1689-g23eeb74"; then find "ceph-11.0.0-1689-g23eeb74" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "ceph-11.0.0-1689-g23eeb74" || { sleep 5 && rm -rf "ceph-11.0.0-1689-g23eeb74"; }; else :; fi
>>>         test -d "ceph-11.0.0-1689-g23eeb74" || mkdir "ceph-11.0.0-1689-g23eeb74"
>>>          (cd src && make  top_distdir=../ceph-11.0.0-1689-g23eeb74 distdir=../ceph-11.0.0-1689-g23eeb74/src \
>>>              am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
>>>         make[2]: Entering directory '/mnt/sdh/avnerb/ceph-github/src'
>>>         ./make_version -g ./.git_version
>>>         if [ -n "$NO_VERSION" ] ; then \
>>>                 ./make_version -g ./.git_version -c ./ceph_ver.h -n ; \
>>>         else \
>>>                 ./make_version -g ./.git_version -c ./ceph_ver.h ; \
>>>         fi
>>>         make[2]: *** No rule to make target 'rocksdb/db/slice.cc', needed by 'distdir'.  Stop.
>>>         make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/src'
>>>         Makefile:976: recipe for target 'distdir' failed
>>>         make[1]: *** [distdir] Error 1
>>>         make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
>>>         Makefile:1078: recipe for target 'dist' failed
>>>         make: *** [dist] Error 2
>>
>> Errors here generally occur if you've got an outdated submodule (or it's just missing). Try deleting it and re-doing the submodule entirely.
>> -Greg
>
>

There is some discussion in http://tracker.ceph.com/issues/16819 of make-deb.sh
not being "cmake aware". Perhaps this is related in some way?

-- 
Cheers,
Brad

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

* RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 11:21       ` Brad Hubbard
@ 2016-08-23 11:46         ` Avner Ben Hanoch
  2016-08-23 12:52         ` Nathan Cutler
  1 sibling, 0 replies; 17+ messages in thread
From: Avner Ben Hanoch @ 2016-08-23 11:46 UTC (permalink / raw)
  To: Brad Hubbard; +Cc: Gregory Farnum, Ceph Development

Thanks Brad,

I am not sure I encountered same issue:
1st - I don't use cmake
2nd - my error is regardless of "ceph-build-deps", it will be popped immediately with "make dist" even when performing just the following commands (from ./make-debs.sh) on a clean git clone 

	vers=$(git describe --match "v*" | sed s/^v//)
	./autogen.sh
	./configure --with-rocksdb --with-ocf \
	    --with-nss --with-debug --enable-cephfs-java \
	    --with-lttng --with-babeltrace
	make distdir=ceph-$vers dist

-----Original Message-----
From: Brad Hubbard
Sent: Tuesday, August 23, 2016 14:22
To: Avner Ben Hanoch
Cc: Gregory Farnum; Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'

 On Tue, Aug 23, 2016 at 9:01 PM, Brad Hubbard <bhubbard@redhat.com> wrote:
> On Tue, Aug 23, 2016 at 8:46 PM, Avner Ben Hanoch <avnerb@mellanox.com> wrote:
>> Additional info, if I "git checkout v11.0.0" then ./make-debs.sh works okay.
>> Hence, perhaps something was broken after this tag
>>
>> -----Original Message-----
>> From: Avner Ben Hanoch
>> Sent: Tuesday, August 23, 2016 11:27
>> To: 'Gregory Farnum'
>> Cc: Ceph Development <ceph-devel@vger.kernel.org>
>> Subject: RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
>>
>> Thanks Greg,
>>
>> The same error exists even if start with new clone:
>>         git clone https://github.com/ceph/ceph.git ceph-github
>>         cd ceph-github
>>         ./make-debs.sh
>>
>> In the output, I can now see many clones of submodules, including:
>>         ...
>>         Cloning into 'src/rocksdb'...
>>         remote: Counting objects: 41223, done.
>>         remote: Compressing objects: 100% (4/4), done.
>>         remote: Total 41223 (delta 0), reused 0 (delta 0), pack-reused 41219
>>         Receiving objects: 100% (41223/41223), 51.05 MiB | 1.85 MiB/s, done.
>>         Resolving deltas: 100% (30718/30718), done.
>>         Checking connectivity... done.
>>         Submodule path 'src/rocksdb': checked out '6797e6ffacd90470140f64cea068970bb3a30aaf'
>>         ...
>>
>> And still, same error, at the end:
>>         ...
>>         + make distdir=ceph-11.0.0-1718-g2202bcc dist
>>         make  dist-gzip am__post_remove_distdir='@:'
>>         make[1]: Entering directory '/mnt/sdh/avnerb/ceph-github'
>>         if test -d "ceph-11.0.0-1718-g2202bcc"; then find "ceph-11.0.0-1718-g2202bcc" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "ceph-11.0.0-1718-g2202bcc" || { sleep 5 && rm -rf "ceph-11.0.0-1718-g2202bcc"; }; else :; fi
>>         test -d "ceph-11.0.0-1718-g2202bcc" || mkdir "ceph-11.0.0-1718-g2202bcc"
>>          (cd src && make  top_distdir=../ceph-11.0.0-1718-g2202bcc distdir=../ceph-11.0.0-1718-g2202bcc/src \
>>              am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
>>         make[2]: Entering directory '/mnt/sdh/avnerb/ceph-github/src'
>>         ./make_version -g ./.git_version
>>         if [ -n "$NO_VERSION" ] ; then \
>>                 ./make_version -g ./.git_version -c ./ceph_ver.h -n ; \
>>         else \
>>                 ./make_version -g ./.git_version -c ./ceph_ver.h ; \
>>         fi
>>
>>         make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/src'
>>         Makefile:976: recipe for target 'distdir' failed
>>         make[1]: *** [distdir] Error 1
>>         make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
>>         Makefile:1078: recipe for target 'dist' failed
>>         make: *** [dist] Error 2
>
> You could try changing to src/rocksdb and running "make clean" and 
> "git clean -fdx" and retrying the build. It's possible some build 
> artefact was left over in that submodule's directory structure for 
> that commit. You could also compare the
> SHA1 of the src/rocksdb submodule in each case (workingv11.0.0  and 
> not working) and see what changed between them.
>
> --
> HTH,
> Brad
>
>>
>> -----Original Message-----
>> From: Gregory Farnum
>> Sent: Tuesday, August 23, 2016 01:00
>> To: Avner Ben Hanoch
>> Cc: Ceph Development <ceph-devel@vger.kernel.org>
>> Subject: Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
>>
>> On Mon, Aug 22, 2016 at 2:00 AM, Avner Ben Hanoch <avnerb@mellanox.com> wrote:
>>> HI All,
>>>
>>> The following lines from make-debs.sh:
>>>
>>>         vers=$(git describe --match "v*" | sed s/^v//)
>>>         ./autogen.sh
>>>         ./configure --with-rocksdb --with-ocf \
>>>             --with-nss --with-debug --enable-cephfs-java \
>>>             --with-lttng --with-babeltrace
>>>         make distdir=ceph-$vers dist
>>>
>>> produces the following error:
>>>
>>>         make  dist-gzip am__post_remove_distdir='@:'
>>>         make[1]: Entering directory '/mnt/sdh/avnerb/ceph-github'
>>>         if test -d "ceph-11.0.0-1689-g23eeb74"; then find "ceph-11.0.0-1689-g23eeb74" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "ceph-11.0.0-1689-g23eeb74" || { sleep 5 && rm -rf "ceph-11.0.0-1689-g23eeb74"; }; else :; fi
>>>         test -d "ceph-11.0.0-1689-g23eeb74" || mkdir "ceph-11.0.0-1689-g23eeb74"
>>>          (cd src && make  top_distdir=../ceph-11.0.0-1689-g23eeb74 distdir=../ceph-11.0.0-1689-g23eeb74/src \
>>>              am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
>>>         make[2]: Entering directory '/mnt/sdh/avnerb/ceph-github/src'
>>>         ./make_version -g ./.git_version
>>>         if [ -n "$NO_VERSION" ] ; then \
>>>                 ./make_version -g ./.git_version -c ./ceph_ver.h -n ; \
>>>         else \
>>>                 ./make_version -g ./.git_version -c ./ceph_ver.h ; \
>>>         fi
>>>         make[2]: *** No rule to make target 'rocksdb/db/slice.cc', needed by 'distdir'.  Stop.
>>>         make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/src'
>>>         Makefile:976: recipe for target 'distdir' failed
>>>         make[1]: *** [distdir] Error 1
>>>         make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
>>>         Makefile:1078: recipe for target 'dist' failed
>>>         make: *** [dist] Error 2
>>
>> Errors here generally occur if you've got an outdated submodule (or it's just missing). Try deleting it and re-doing the submodule entirely.
>> -Greg
>
>

There is some discussion in http://tracker.ceph.com/issues/16819 of make-deb.sh not being "cmake aware". Perhaps this is related in some way?

--
Cheers,
Brad

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

* RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 11:01     ` Brad Hubbard
  2016-08-23 11:21       ` Brad Hubbard
@ 2016-08-23 12:12       ` Avner Ben Hanoch
  2016-08-23 13:18       ` Avner Ben Hanoch
  2 siblings, 0 replies; 17+ messages in thread
From: Avner Ben Hanoch @ 2016-08-23 12:12 UTC (permalink / raw)
  To: Brad Hubbard; +Cc: Gregory Farnum, Ceph Development

Thanks Brad,

Unfortunately, cleaning doesn't help 
And anyhow the error occurs even with fresh git clone from the HEAD of ceph master (that brings with it fresh submodules)

AFAICU, the SHA1 of src/rocksdb is identical (for both workingv11.0.0  and not working HEAD of master) 
In both cases, I see: SHA1=6797e6f Avoid updating memtable allocated bytes if write_buffer_size is not set
(which is also the latest commit in https://github.com/ceph/rocksdb)

Avner

-----Original Message-----
From: Brad Hubbard 
Sent: Tuesday, August 23, 2016 14:01
To: Avner Ben Hanoch 
Cc: Gregory Farnum; Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'


You could try changing to src/rocksdb and running "make clean" and "git clean -fdx" and retrying the build. It's possible some build artefact was left over in that submodule's directory structure for that commit. You could also compare the
SHA1 of the src/rocksdb submodule in each case (workingv11.0.0  and not working) and see what changed between them.

--
HTH,
Brad


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

* Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 11:21       ` Brad Hubbard
  2016-08-23 11:46         ` Avner Ben Hanoch
@ 2016-08-23 12:52         ` Nathan Cutler
  2016-08-23 12:59           ` Nathan Cutler
  1 sibling, 1 reply; 17+ messages in thread
From: Nathan Cutler @ 2016-08-23 12:52 UTC (permalink / raw)
  To: Brad Hubbard, Avner Ben Hanoch; +Cc: Gregory Farnum, Ceph Development

> There is some discussion in http://tracker.ceph.com/issues/16819 of make-deb.sh
> not being "cmake aware". Perhaps this is related in some way?

That's a different make-deb(s).sh

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

* Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 12:52         ` Nathan Cutler
@ 2016-08-23 12:59           ` Nathan Cutler
  2016-08-23 13:31             ` Avner Ben Hanoch
  2016-08-23 14:08             ` Avner Ben Hanoch
  0 siblings, 2 replies; 17+ messages in thread
From: Nathan Cutler @ 2016-08-23 12:59 UTC (permalink / raw)
  To: Brad Hubbard, Avner Ben Hanoch; +Cc: Gregory Farnum, Ceph Development

> 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] 17+ messages in thread

* RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 11:01     ` Brad Hubbard
  2016-08-23 11:21       ` Brad Hubbard
  2016-08-23 12:12       ` Avner Ben Hanoch
@ 2016-08-23 13:18       ` Avner Ben Hanoch
  2 siblings, 0 replies; 17+ messages in thread
From: Avner Ben Hanoch @ 2016-08-23 13:18 UTC (permalink / raw)
  To: Brad Hubbard; +Cc: Gregory Farnum, Ceph Development

Oops - submodule rocksdb was changed in ceph after v11.0.0:

master - not working:
rocksdb @ 6797e6f	rocksdb: revert the change introduced by dc41731

v11.0.0 - working:
rocksdb @ 5647fa4	rocksdb: pull up to master


and apparently, *the file 'db/slice.cc' was deleted during that change*
hence, this explains why make dist (that is invoked by ./make-debs.sh) complains about it
         make[2]: *** No rule to make target 'rocksdb/db/slice.cc', needed by 'distdir'.  Stop.

Any idea how to fix this?

TIA,
  Avner


-----Original Message-----
From: Avner Ben Hanoch 
Sent: Tuesday, August 23, 2016 15:13
To: 'Brad Hubbard' 
Cc: Gregory Farnum; Ceph Development <ceph-devel@vger.kernel.org>
Subject: RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'

Thanks Brad,

Unfortunately, cleaning doesn't help
And anyhow the error occurs even with fresh git clone from the HEAD of ceph master (that brings with it fresh submodules)

AFAICU, the SHA1 of src/rocksdb is identical (for both workingv11.0.0  and not working HEAD of master) In both cases, I see: SHA1=6797e6f Avoid updating memtable allocated bytes if write_buffer_size is not set (which is also the latest commit in https://github.com/ceph/rocksdb)

Avner

-----Original Message-----
From: Brad Hubbard
Sent: Tuesday, August 23, 2016 14:01
To: Avner Ben Hanoch
Cc: Gregory Farnum; Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'


You could try changing to src/rocksdb and running "make clean" and "git clean -fdx" and retrying the build. It's possible some build artefact was left over in that submodule's directory structure for that commit. You could also compare the
SHA1 of the src/rocksdb submodule in each case (workingv11.0.0  and not working) and see what changed between them.

--
HTH,
Brad


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

* RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 12:59           ` Nathan Cutler
@ 2016-08-23 13:31             ` Avner Ben Hanoch
  2016-08-23 13:33               ` Nathan Cutler
  2016-08-23 14:08             ` Avner Ben Hanoch
  1 sibling, 1 reply; 17+ messages in thread
From: Avner Ben Hanoch @ 2016-08-23 13:31 UTC (permalink / raw)
  To: Nathan Cutler, Brad Hubbard; +Cc: Gregory Farnum, Ceph Development

Thanks for the clarification Nathan,

I am using the updated master branch from https://github.com/ceph/ceph .  Anyhow, I don't think the problem is in the file make-debs.sh itself, but in something that is invoked from it regarding make dist with regard to the file db/slice.cc from rocksdb submodule.

Do you have any idea if someone execute make-debs.sh on the updated ceph master branch?

TIA,
  Avner

-----Original Message-----
From: Nathan Cutler [mailto:ncutler@suse.cz] 
Sent: Tuesday, August 23, 2016 15:59
To: Brad Hubbard; Avner Ben Hanoch 
Cc: Gregory Farnum; Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'

> 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] 17+ messages in thread

* Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 13:31             ` Avner Ben Hanoch
@ 2016-08-23 13:33               ` Nathan Cutler
  2016-08-23 14:09                 ` Avner Ben Hanoch
  0 siblings, 1 reply; 17+ messages in thread
From: Nathan Cutler @ 2016-08-23 13:33 UTC (permalink / raw)
  To: Avner Ben Hanoch, Brad Hubbard; +Cc: Gregory Farnum, Ceph Development

> Thanks for the clarification Nathan,
>
> I am using the updated master branch from https://github.com/ceph/ceph .  Anyhow, I don't think the problem is in the file make-debs.sh itself, but in something that is invoked from it regarding make dist with regard to the file db/slice.cc from rocksdb submodule.
>
> Do you have any idea if someone execute make-debs.sh on the updated ceph master branch?

AFAIK you are the first to try it on master.

Since the script uses autotools (not cmake) to do the build, it is not 
expected to work on master. IMO the script needs to be modified.

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

* RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 12:59           ` Nathan Cutler
  2016-08-23 13:31             ` Avner Ben Hanoch
@ 2016-08-23 14:08             ` Avner Ben Hanoch
  1 sibling, 0 replies; 17+ messages in thread
From: Avner Ben Hanoch @ 2016-08-23 14:08 UTC (permalink / raw)
  To: Nathan Cutler, Brad Hubbard; +Cc: Gregory Farnum, Ceph Development

Thanks.
So, what is the proper way for creating *.deb files

> -----Original Message-----
> From: Nathan Cutler [mailto:ncutler@suse.cz]
> Sent: Tuesday, August 23, 2016 15:59
> To: Brad Hubbard <bhubbard@redhat.com>; Avner Ben Hanoch
> <avnerb@mellanox.com>
> Cc: Gregory Farnum <gfarnum@redhat.com>; Ceph Development <ceph-
> devel@vger.kernel.org>
> Subject: Re: errors in make-debs.sh because "make dist" fails on
> 'rocksdb/db/slice.cc'
> 
> > 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] 17+ messages in thread

* RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 13:33               ` Nathan Cutler
@ 2016-08-23 14:09                 ` Avner Ben Hanoch
  2016-08-23 16:05                   ` kefu chai
  0 siblings, 1 reply; 17+ messages in thread
From: Avner Ben Hanoch @ 2016-08-23 14:09 UTC (permalink / raw)
  To: Nathan Cutler, Brad Hubbard; +Cc: Gregory Farnum, Ceph Development

Thanks.
So, what is the proper way for creating *.deb files

> -----Original Message-----
> From: Nathan Cutler [mailto:ncutler@suse.cz]
> Sent: Tuesday, August 23, 2016 16:34
> To: Avner Ben Hanoch <avnerb@mellanox.com>; Brad Hubbard
> <bhubbard@redhat.com>
> Cc: Gregory Farnum <gfarnum@redhat.com>; Ceph Development <ceph-
> devel@vger.kernel.org>
> Subject: Re: errors in make-debs.sh because "make dist" fails on
> 'rocksdb/db/slice.cc'
> 
> > Thanks for the clarification Nathan,
> >
> > I am using the updated master branch from https://github.com/ceph/ceph .
> Anyhow, I don't think the problem is in the file make-debs.sh itself, but in
> something that is invoked from it regarding make dist with regard to the file
> db/slice.cc from rocksdb submodule.
> >
> > Do you have any idea if someone execute make-debs.sh on the updated
> ceph master branch?
> 
> AFAIK you are the first to try it on master.
> 
> Since the script uses autotools (not cmake) to do the build, it is not expected
> to work on master. IMO the script needs to be modified.

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

* Re: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 14:09                 ` Avner Ben Hanoch
@ 2016-08-23 16:05                   ` kefu chai
  2016-08-25 13:10                     ` Avner Ben Hanoch
  0 siblings, 1 reply; 17+ messages in thread
From: kefu chai @ 2016-08-23 16:05 UTC (permalink / raw)
  To: Avner Ben Hanoch
  Cc: Nathan Cutler, Brad Hubbard, Gregory Farnum, Ceph Development

On Tue, Aug 23, 2016 at 10:09 PM, Avner Ben Hanoch <avnerb@mellanox.com> wrote:
> Thanks.
> So, what is the proper way for creating *.deb files

dpkg-buildpackage -j8 -uc --build=binary

>
>> -----Original Message-----
>> From: Nathan Cutler [mailto:ncutler@suse.cz]
>> Sent: Tuesday, August 23, 2016 16:34
>> To: Avner Ben Hanoch <avnerb@mellanox.com>; Brad Hubbard
>> <bhubbard@redhat.com>
>> Cc: Gregory Farnum <gfarnum@redhat.com>; Ceph Development <ceph-
>> devel@vger.kernel.org>
>> Subject: Re: errors in make-debs.sh because "make dist" fails on
>> 'rocksdb/db/slice.cc'
>>
>> > Thanks for the clarification Nathan,
>> >
>> > I am using the updated master branch from https://github.com/ceph/ceph .
>> Anyhow, I don't think the problem is in the file make-debs.sh itself, but in
>> something that is invoked from it regarding make dist with regard to the file
>> db/slice.cc from rocksdb submodule.
>> >
>> > Do you have any idea if someone execute make-debs.sh on the updated
>> ceph master branch?
>>
>> AFAIK you are the first to try it on master.
>>
>> Since the script uses autotools (not cmake) to do the build, it is not expected
>> to work on master. IMO the script needs to be modified.
> --
> 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



-- 
Regards
Kefu Chai

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

* RE: errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc'
  2016-08-23 16:05                   ` kefu chai
@ 2016-08-25 13:10                     ` Avner Ben Hanoch
  0 siblings, 0 replies; 17+ messages in thread
From: Avner Ben Hanoch @ 2016-08-25 13:10 UTC (permalink / raw)
  To: kefu chai; +Cc: Nathan Cutler, Brad Hubbard, Gregory Farnum, Ceph Development

> -----Original Message-----
> From: kefu chai 
> Sent: Tuesday, August 23, 2016 19:05
> 
> On Tue, Aug 23, 2016 at 10:09 PM, Avner Ben Hanoch
> <avnerb@mellanox.com> wrote:
> > Thanks.
> > So, what is the proper way for creating *.deb files
> 
> dpkg-buildpackage -j8 -uc --build=binary
> 
Thanks kefu,

I tried dpkg-buildpackage -j8 -uc -b (--build=binary was invalid argument)
It run long time till it reached the following error:
	/mnt/sdh/avnerb/ceph-github/src/librados/librados.cc:47:30: fatal error: tracing/librados.h: No such file or directory

All my commands, plus relevant output is below:

# git clone git://github.com/ceph/ceph ceph-github
# cd ceph-github
# git submodule update --init --recursive
#./install-deps.sh
#./do_cmake.sh
# cd build/
# make -j
# cd ..
# dpkg-buildpackage -j -uc -b
...
make -f src/CMakeFiles/librados_api.dir/build.make src/CMakeFiles/librados_api.dir/depend
make[4]: Entering directory '/mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu'
cd /mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /mnt/sdh/avnerb/ceph-github /mnt/sdh/avnerb/ceph-github/src /mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu /mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu/src /mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu/src/CMakeFiles/librados_api.dir/DependInfo.cmake --color=
Scanning dependencies of target librados_api
make[4]: Leaving directory '/mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu'
make -f src/CMakeFiles/librados_api.dir/build.make src/CMakeFiles/librados_api.dir/build
make[4]: Entering directory '/mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu'
[ 17%] Building CXX object src/CMakeFiles/librados_api.dir/common/buffer.cc.o
cd /mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu/src && /usr/bin/x86_64-linux-gnu-g++   -DCEPH_LIBDIR=\"/usr/lib\" -DCEPH_PKGLIBDIR=\"/usr/lib/ceph\" -D__linux__ -I/mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu/src/include -I/mnt/sdh/avnerb/ceph-github/src -I/mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu/include -I/mnt/sdh/avnerb/ceph-github/src/xxHash  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing -fsigned-char -rdynamic -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -ftemplate-depth-1024 -Wno-invalid-offsetof -Wnon-virtual-dtor -Woverloaded-virtual -Wstrict-null-sentinel -fdiagnostics-color=auto -I/usr/include/nss -I/usr/include/nspr -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -fPIC   -DHAVE_CONFIG_H -D__CEPH__ -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -std=c++11 -o CMakeFiles/librados_api.dir/common/buffer.cc.o -c /mnt/sdh/avnerb/ceph-github/src/common/buffer.cc
[ 17%] Building CXX object src/CMakeFiles/librados_api.dir/librados/librados.cc.o
cd /mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu/src && /usr/bin/x86_64-linux-gnu-g++   -DCEPH_LIBDIR=\"/usr/lib\" -DCEPH_PKGLIBDIR=\"/usr/lib/ceph\" -D__linux__ -I/mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu/src/include -I/mnt/sdh/avnerb/ceph-github/src -I/mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu/include -I/mnt/sdh/avnerb/ceph-github/src/xxHash  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing -fsigned-char -rdynamic -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -ftemplate-depth-1024 -Wno-invalid-offsetof -Wnon-virtual-dtor -Woverloaded-virtual -Wstrict-null-sentinel -fdiagnostics-color=auto -I/usr/include/nss -I/usr/include/nspr -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -fPIC   -DHAVE_CONFIG_H -D__CEPH__ -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -std=c++11 -o CMakeFiles/librados_api.dir/librados/librados.cc.o -c /mnt/sdh/avnerb/ceph-github/src/librados/librados.cc
/mnt/sdh/avnerb/ceph-github/src/librados/librados.cc:47:30: fatal error: tracing/librados.h: No such file or directory
compilation terminated.
src/CMakeFiles/librados_api.dir/build.make:89: recipe for target 'src/CMakeFiles/librados_api.dir/librados/librados.cc.o' failed
make[4]: *** [src/CMakeFiles/librados_api.dir/librados/librados.cc.o] Error 1
make[4]: Leaving directory '/mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu'
CMakeFiles/Makefile2:978: recipe for target 'src/CMakeFiles/librados_api.dir/all' failed
make[3]: *** [src/CMakeFiles/librados_api.dir/all] Error 2
make[3]: Leaving directory '/mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu'
Makefile:141: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/mnt/sdh/avnerb/ceph-github/obj-x86_64-linux-gnu'
        cd /mnt/sdh/avnerb/ceph-github
dh_auto_build: make -j1 returned exit code 2
debian/rules:28: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/mnt/sdh/avnerb/ceph-github'
debian/rules:22: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2


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

end of thread, other threads:[~2016-08-25 14:43 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-22  9:00 errors in make-debs.sh because "make dist" fails on 'rocksdb/db/slice.cc' Avner Ben Hanoch
2016-08-22 22:00 ` Gregory Farnum
2016-08-23  8:27   ` Avner Ben Hanoch
2016-08-23 10:46   ` Avner Ben Hanoch
2016-08-23 11:01     ` Brad Hubbard
2016-08-23 11:21       ` Brad Hubbard
2016-08-23 11:46         ` Avner Ben Hanoch
2016-08-23 12:52         ` Nathan Cutler
2016-08-23 12:59           ` Nathan Cutler
2016-08-23 13:31             ` Avner Ben Hanoch
2016-08-23 13:33               ` Nathan Cutler
2016-08-23 14:09                 ` Avner Ben Hanoch
2016-08-23 16:05                   ` kefu chai
2016-08-25 13:10                     ` Avner Ben Hanoch
2016-08-23 14:08             ` Avner Ben Hanoch
2016-08-23 12:12       ` Avner Ben Hanoch
2016-08-23 13:18       ` 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.