Skip to contentSkip to conversation

quick way to rebuild deb packages

DISCUSSION Bartłomiej Święcki 3 participants 4 messages Jul 21, 2015 – Jul 22, 2015

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm currently working on a test environment for ceph where we're using deb files to deploy new version on test cluster. To make this work efficiently I'd have to quckly build deb packages.

I tried dpkg-buildpackages -nc which should keep the results of previous build but it ends up in a linking error:

Quoted 11 lines

...
CXXLD ceph_rgw_jsonparser
./.libs/libglobal.a(json_spirit_reader.o): In function `~thread_specific_ptr':
/usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: 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):/usr/include/boost/thread/tss.hpp:79: more undefined references to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' follow ./.libs/libglobal.a(json_spirit_reader.o): In function call_once<void (*)()>':
...

Any ideas on what could go wrong here ?

Version I'm compiling is v0.94.1 but I've observed same results with 9.0.1.

Signature · 1 line
Bartlomiej Swiecki <[email protected]>
#1 lore raw

Hi,

Did you try https://github.com/ceph/ceph/blob/master/make-debs.sh ? I would recommend running https://github.com/ceph/ceph/blob/master/run-make-check.sh first to make sure you can build and test: this will install the dependencies you're missing at the same time.

Cheers

Quoted 23 lines · Bartłomiej Święcki

Hi all,

I'm currently working on a test environment for ceph where we're using deb files to deploy new version on test cluster. To make this work efficiently I'd have to quckly build deb packages.

I tried dpkg-buildpackages -nc which should keep the results of previous build but it ends up in a linking error:

Quoted 11 lines

...
CXXLD ceph_rgw_jsonparser
./.libs/libglobal.a(json_spirit_reader.o): In function `~thread_specific_ptr':
/usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: 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):/usr/include/boost/thread/tss.hpp:79: more undefined references to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' follow ./.libs/libglobal.a(json_spirit_reader.o): In function call_once<void (*)()>':
...

Any ideas on what could go wrong here ?

Version I'm compiling is v0.94.1 but I've observed same results with 9.0.1.

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#2 lore raw

I'm also using make-debs.sh to generate the binaries for some local deployment. Note that if you need the *tests.deb you'll need to change this scripts a bit.

@@ -58,8 +58,8 @@ tar -C $releasedir -zxf $releasedir/ceph_$vers.orig.tar.gz
#
cp -a debian $releasedir/ceph-$vers/debian
cd $releasedir
-perl -ni -e 'print if(!(/^Package: .*-dbg$/../^$/))' ceph-$vers/debian/control -perl -pi -e 's/--dbg-package.*//' ceph-$vers/debian/rules
+#perl -ni -e 'print if(!(/^Package: .*-dbg$/../^$/))' ceph-$vers/debian/control +#perl -pi -e 's/--dbg-package.*//' ceph-$vers/debian/rules
#

 # always set the debian version to 1 which is ok because the debian
 # directory is included in the sources and the upstream version will 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Loic Dachary
Sent: Wednesday, July 22, 2015 2:32 PM
To: Bartłomiej Święcki; [email protected]
Subject: Re: quick way to rebuild deb packages

Hi,

Did you try https://github.com/ceph/ceph/blob/master/make-debs.sh ? I would recommend running https://github.com/ceph/ceph/blob/master/run-make-check.sh first to make sure you can build and test: this will install the dependencies you're missing at the same time.

Cheers

Quoted 23 lines · Bartłomiej Święcki

Hi all,

I'm currently working on a test environment for ceph where we're using deb files to deploy new version on test cluster. To make this work efficiently I'd have to quckly build deb packages.

I tried dpkg-buildpackages -nc which should keep the results of previous build but it ends up in a linking error:

Quoted 11 lines

...
CXXLD ceph_rgw_jsonparser
./.libs/libglobal.a(json_spirit_reader.o): In function `~thread_specific_ptr':
/usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: 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):/usr/include/boost/thread/tss.hpp:79: more undefined references to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' follow ./.libs/libglobal.a(json_spirit_reader.o): In function call_once<void (*)()>':
...

Any ideas on what could go wrong here ?

Version I'm compiling is v0.94.1 but I've observed same results with 9.0.1.

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#3 lore raw

I'll definitely take a look at make-debs.sh, looks promising. Thanks for the hint.

I can see it's using ccache, let's see how fast it is :) What build times are you experiencing ?

Quoted 56 lines · Yuan

I'm also using make-debs.sh to generate the binaries for some local deployment. Note that if you need the *tests.deb you'll need to change this scripts a bit.

(quoted diff) +2 -3
@@ -58,8 +58,8 @@ tar -C $releasedir -zxf $releasedir/ceph_$vers.orig.tar.gz
 #
 cp -a debian $releasedir/ceph-$vers/debian
 cd $releasedir
-perl -ni -e 'print if(!(/^Package: .*-dbg$/../^$/))' ceph-$vers/debian/control
-perl -pi -e 's/--dbg-package.*//' ceph-$vers/debian/rules
+#perl -ni -e 'print if(!(/^Package: .*-dbg$/../^$/))' ceph-$vers/debian/control
+#perl -pi -e 's/--dbg-package.*//' ceph-$vers/debian/rules
 #
 # always set the debian version to 1 which is ok because the debian
 # directory is included in the sources and the upstream version will 
 
 
 
-----Original Message-----

From: [email protected] [mailto:[email protected]] On Behalf Of Loic Dachary
Sent: Wednesday, July 22, 2015 2:32 PM
To: Bartłomiej Święcki; [email protected]
Subject: Re: quick way to rebuild deb packages

Hi,

Did you try https://github.com/ceph/ceph/blob/master/make-debs.sh ? I would recommend running https://github.com/ceph/ceph/blob/master/run-make-check.sh first to make sure you can build and test: this will install the dependencies you're missing at the same time.

Cheers

Quoted 23 lines · Bartłomiej Święcki

Hi all,

I'm currently working on a test environment for ceph where we're using deb files to deploy new version on test cluster. To make this work efficiently I'd have to quckly build deb packages.

I tried dpkg-buildpackages -nc which should keep the results of previous build but it ends up in a linking error:

Quoted 11 lines

...
CXXLD ceph_rgw_jsonparser
./.libs/libglobal.a(json_spirit_reader.o): In function `~thread_specific_ptr':
/usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: undefined reference to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' /usr/include/boost/thread/tss.hpp:79: 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):/usr/include/boost/thread/tss.hpp:79: more undefined references to boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' follow ./.libs/libglobal.a(json_spirit_reader.o): In function call_once<void (*)()>':
...

Any ideas on what could go wrong here ?

Version I'm compiling is v0.94.1 but I've observed same results with 9.0.1.

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
Signature · 5 lines
Bartlomiej Swiecki <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html