On 02/02/2015 09:35 PM, Gregory Farnum
wrote:
Are you actually using CMake? It's an alternative and incomplete build system right now; the autotools build chain is the canonical one. (I don't think it should be causing your problem, but...who knows?) While CMake was installed, I doubt if it really is used. I am using the make-debs.sh to do the build. And I just made some minor changes to the make-debs.sh script that Loic Dachary has cooked up, so that it doesn't clean up the build dir. And I'm just appending the "-nc" option to dpkg-buildpackage to not clean the environment. I also overrode the clean target in debian/rules. (I've just attached my changes, just in case anyone is interested to look at). But it still fails with the same errors. The first linker error is in: ./.libs/libglobal.a(json_spirit_reader.o): In function `static_': /usr/include/boost/thread/pthread/once_atomic.hpp:153: undefined reference to `boost::thread_detail::rollback_once_region(boost::once_flag&)' collect2: error: ld returned 1 exit status make[4]: *** [ceph_erasure_code_benchmark] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/var/tmp/lxc/release/Ubuntu/WORKDIR/ceph-0.91-1109-g9c40091/src' make[3]: *** [install-recursive] Error 1 make[3]: Leaving directory `/var/tmp/lxc/release/Ubuntu/WORKDIR/ceph-0.91-1109-g9c40091/src' make[2]: *** [install] Error 2 make[2]: Leaving directory `/var/tmp/lxc/release/Ubuntu/WORKDIR/ceph-0.91-1109-g9c40091/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/var/tmp/lxc/release/Ubuntu/WORKDIR/ceph-0.91-1109-g9c40091' make: *** [install] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 real 4m52.485s user 0m51.544s sys 0m17.020s and the second one is: n_policy>, boost::spirit::classic::match_policy, boost::spirit::classic::action_policy> > > >*)': /usr/include/boost/thread/tss.hpp:105: undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' ./.libs/libglobal.a(json_spirit_reader.o): In function `static_': /usr/include/boost/thread/pthread/once_atomic.hpp:153: undefined reference to `boost::thread_detail::rollback_once_region(boost::once_flag&)' ./.libs/librados.so: undefined reference to `lttng_probe_register' ./.libs/librados.so: undefined reference to `lttng_probe_unregister' collect2: error: ld returned 1 exit status make[4]: *** [ceph_rgw_jsonparser] Error 1 copying selected object files to avoid basename conflicts... make[4]: Leaving directory `/var/tmp/lxc/release/Ubuntu/WORKDIR/ceph-0.91-1109-g9c40091/src' make[3]: *** [install-recursive] Error 1 make[3]: Leaving directory `/var/tmp/lxc/release/Ubuntu/WORKDIR/ceph-0.91-1109-g9c40091/src' make[2]: *** [install] Error 2 make[2]: Leaving directory `/var/tmp/lxc/release/Ubuntu/WORKDIR/ceph-0.91-1109-g9c40091/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/var/tmp/lxc/release/Ubuntu/WORKDIR/ceph-0.91-1109-g9c40091' make: *** [install] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 real 1m57.025s user 0m41.364s sys 0m8.068s So honestly, I'm confused what is causing this failure. Given the fact that it works perfectly fine for most of you. -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention." |
From ebd797f0db26e3034a04d7e99f3d379686249d18 Mon Sep 17 00:00:00 2001 From: Ritesh Raj Sarraf <rrs@xxxxxxxxxxxxxx> Date: Mon, 2 Feb 2015 18:21:29 +0530 Subject: [PATCH 1/2] rrs changes to make-debs.sh --- make-debs.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/make-debs.sh b/make-debs.sh index ecb5109..ca12c44 100755 --- a/make-debs.sh +++ b/make-debs.sh @@ -16,16 +16,16 @@ # set -xe -base=${1:-/tmp/release} +base=${1:-/var/tmp/lxc/release} codename=$(lsb_release -sc) releasedir=$base/$(lsb_release -si)/WORKDIR -rm -fr $releasedir +# rrs - rm -fr $releasedir mkdir -p $releasedir # # remove all files not under git so they are not # included in the distribution. # -git clean -dxf +# rrs - git clean -dxf # # git describe provides a version that is # a) human readable @@ -80,7 +80,8 @@ fi # b) do not sign the packages # c) use half of the available processors # -PATH=/usr/lib/ccache:$PATH dpkg-buildpackage -j$(($(nproc) / 2)) -uc -us +# rrs - PATH=/usr/lib/ccache:$PATH dpkg-buildpackage -j$(($(nproc) / 2)) -nc -uc -us +PATH=/usr/lib/ccache:$PATH dpkg-buildpackage -j$(($(nproc) / 2)) -nc -uc -us cd ../.. mkdir -p $codename/conf cat > $codename/conf/distributions <<EOF -- 1.9.1
From 9c400919e6d310eb7243eef74bdc85e331e69740 Mon Sep 17 00:00:00 2001 From: Ritesh Raj Sarraf <rrs@xxxxxxxxxxxxxx> Date: Mon, 2 Feb 2015 18:23:42 +0530 Subject: [PATCH 2/2] Skip the clean completely --- debian/rules | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/debian/rules b/debian/rules index 34f6939..544a3fc 100755 --- a/debian/rules +++ b/debian/rules @@ -65,18 +65,21 @@ build-stamp: configure-stamp touch $@ clean: - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp + # Don't clean + touch $@ + + #dh_testdir + #dh_testroot + #rm -f build-stamp configure-stamp - [ ! -f Makefile ] || $(MAKE) distclean - rm -f aclocal.m4 compile config.sub config.guess depcomp install-sh \ + #[ ! -f Makefile ] || $(MAKE) distclean + #rm -f aclocal.m4 compile config.sub config.guess depcomp install-sh \ ltmain.sh missing - rm -f configure Makefile.in man/Makefile.in src/Makefile.in - rm -f src/acconfig.h.in - rm -f debian/ceph.init debian/radosgw.init debian/ceph.logrotate debian/radosgw.logrotate + #rm -f configure Makefile.in man/Makefile.in src/Makefile.in + #rm -f src/acconfig.h.in + #rm -f debian/ceph.init debian/radosgw.init debian/ceph.logrotate debian/radosgw.logrotate - dh_clean + #dh_clean install: build dh_testdir -- 1.9.1
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com