Skip to contentSkip to conversation

boost submodule update

DISCUSSION Sage Weil 5 participants 9 messages Sep 29, 2016 – Oct 5, 2016

lore
Share & tools
lore

Sage Weil

author
#0 lore raw

Hi everyone,

Matt has a working boost submodule branch ready; I've pushed it to wip-boost in ceph.git to ensure the gitbuilders are happy and tagged it needs-qa.

Just so there are no surprises:

* This change increases the initial checkout + clone time by about
**three minutes**. Boost is structured as several dozen submodules and it takes a while to clone them all. It's painful on the first checkout, but fine after that. This pain only applies to developers.

* We are using boost 1.61 + a few things. There are still some
outstanding warnings. They appear to be issues in boost 1.61 itself, and do not appear to be significant. (And the warnings are in parts of boost we're not using yet: asio and serialization.)

* There is still the option to use a system boost via a cmake option. I
doubt anyone will opt for this in practice given the distros tend to lag, but they can if they want.

sage

#1 lore raw
Quoted 13 lines · Sage Weil

Hi everyone,

Matt has a working boost submodule branch ready; I've pushed it to wip-boost in ceph.git to ensure the gitbuilders are happy and tagged it needs-qa.

Just so there are no surprises:

* This change increases the initial checkout + clone time by about
**three minutes**. Boost is structured as several dozen submodules and it takes a while to clone them all. It's painful on the first checkout, but fine after that. This pain only applies to developers.

Quoted 8 lines

* We are using boost 1.61 + a few things. There are still some
outstanding warnings. They appear to be issues in boost 1.61 itself, and do not appear to be significant. (And the warnings are in parts of boost we're not using yet: asio and serialization.)

* There is still the option to use a system boost via a cmake option. I
doubt anyone will opt for this in practice given the distros tend to lag, but they can if they want.

What does this mean for actual builds/releases? It seems there is a potential for a disconnect between what a developer expects from the submodule vs. what the distribution may provide.

Or are builds supposed to embed boost and not use the distro-provided version?

Quoted 6 lines

sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw
Quoted 23 lines · Alfredo Deza
Quoted 13 lines · Sage Weil

Hi everyone,

Matt has a working boost submodule branch ready; I've pushed it to wip-boost in ceph.git to ensure the gitbuilders are happy and tagged it needs-qa.

Just so there are no surprises:

* This change increases the initial checkout + clone time by about
**three minutes**. Boost is structured as several dozen submodules and it takes a while to clone them all. It's painful on the first checkout, but fine after that. This pain only applies to developers.

Quoted 8 lines

* We are using boost 1.61 + a few things. There are still some
outstanding warnings. They appear to be issues in boost 1.61 itself, and do not appear to be significant. (And the warnings are in parts of boost we're not using yet: asio and serialization.)

* There is still the option to use a system boost via a cmake option. I
doubt anyone will opt for this in practice given the distros tend to lag, but they can if they want.

Quoted 6 lines

What does this mean for actual builds/releases? It seems there is a potential for a disconnect between what a developer expects from the submodule vs. what the distribution may provide.

Or are builds supposed to embed boost and not use the distro-provided version?

It will link statically by default. In practice almost all of boost is in headers anyway so there's not much point in dynamic linking.

So, no changes are needed on the build end of things.

sage

#3 lore raw
In reply to Sage Weil
Quoted 3 lines · Sage Weil

* There is still the option to use a system boost via a cmake option. I
doubt anyone will opt for this in practice given the distros tend to lag, but they can if they want.

Can we have it automatically enable the system boost if it's > 1.6.1? Otherwise I'm afraid no one will set WITH_SYSTEM_BOOST :)

Fedora 26 or 27 will probably have Boost 1.6.2+
(https://bugzilla.redhat.com/1374088)

- Ken

#4 lore raw

Hi Ken,

I'm doubtful that case will arise in practice?

Matt

----- Original Message -----

Quoted 23 lines

From: "Ken Dreyer" <[email protected]>
To: "Sage Weil" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Sent: Thursday, September 29, 2016 6:42:48 PM
Subject: Re: boost submodule update

Quoted 3 lines · Sage Weil

* There is still the option to use a system boost via a cmake option. I
doubt anyone will opt for this in practice given the distros tend to lag, but they can if they want.

Can we have it automatically enable the system boost if it's > 1.6.1? Otherwise I'm afraid no one will set WITH_SYSTEM_BOOST :)

Fedora 26 or 27 will probably have Boost 1.6.2+
(https://bugzilla.redhat.com/1374088)

- Ken
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 10 lines
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-707-0660
fax.  734-769-8938
cel.  734-216-5309
#5 lore raw

I acknowledge what Sage says about most of boost being header only but I still feel compelled to offer some input here.

https://www.akkadia.org/drepper/no_static_linking.html
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7-Beta/html-single/Developer_Guide/index.html#lib.compatibility.static

I guess we are aware of these pain points and have decided "it's worth it"?

Signature · 2 lines
Cheers,
Brad
Quoted 46 lines · Matt Benjamin

Hi Ken,

I'm doubtful that case will arise in practice?

Matt

----- Original Message -----

Quoted 14 lines

From: "Ken Dreyer" <[email protected]>
To: "Sage Weil" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Sent: Thursday, September 29, 2016 6:42:48 PM
Subject: Re: boost submodule update

Quoted 3 lines · Sage Weil

* There is still the option to use a system boost via a cmake option. I
doubt anyone will opt for this in practice given the distros tend to lag, but they can if they want.

Can we have it automatically enable the system boost if it's > 1.6.1? Otherwise I'm afraid no one will set WITH_SYSTEM_BOOST :)

Quoted 9 lines

Fedora 26 or 27 will probably have Boost 1.6.2+
(https://bugzilla.redhat.com/1374088)

- Ken
--
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

--
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-707-0660
fax.  734-769-8938
cel.  734-216-5309

--
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

author
#6 lore raw
Quoted 7 lines · Brad Hubbard

I acknowledge what Sage says about most of boost being header only but I still feel compelled to offer some input here.

https://www.akkadia.org/drepper/no_static_linking.html
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7-Beta/html-single/Developer_Guide/index.html#lib.compatibility.static

I guess we are aware of these pain points and have decided "it's worth it"?

I don't see anything on those lists that would meaningfully apply to (the small fraction of) boost (that links dynamically). I'm not really the expert here, though... anybody else?

sage

Quoted 60 lines
Signature · 3 lines
-- 
Cheers,
Brad
Quoted 39 lines · Matt Benjamin

Hi Ken,

I'm doubtful that case will arise in practice?

Matt

----- Original Message -----

Quoted 14 lines

From: "Ken Dreyer" <[email protected]>
To: "Sage Weil" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Sent: Thursday, September 29, 2016 6:42:48 PM
Subject: Re: boost submodule update

Quoted 3 lines · Sage Weil

* There is still the option to use a system boost via a cmake option. I
doubt anyone will opt for this in practice given the distros tend to lag, but they can if they want.

Can we have it automatically enable the system boost if it's > 1.6.1? Otherwise I'm afraid no one will set WITH_SYSTEM_BOOST :)

Quoted 9 lines

Fedora 26 or 27 will probably have Boost 1.6.2+
(https://bugzilla.redhat.com/1374088)

- Ken
--
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

--
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

Quoted 7 lines
tel.  734-707-0660
fax.  734-769-8938
cel.  734-216-5309

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To 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

#7 lore raw
In reply to Matt Benjamin

Hi Matt,

I'm not following? You're doubtful that what will arise?

- Ken

Quoted 42 lines · Matt Benjamin

Hi Ken,

I'm doubtful that case will arise in practice?

Matt

----- Original Message -----

Quoted 14 lines

From: "Ken Dreyer" <[email protected]>
To: "Sage Weil" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Sent: Thursday, September 29, 2016 6:42:48 PM
Subject: Re: boost submodule update

Quoted 3 lines · Sage Weil

* There is still the option to use a system boost via a cmake option. I
doubt anyone will opt for this in practice given the distros tend to lag, but they can if they want.

Can we have it automatically enable the system boost if it's > 1.6.1? Otherwise I'm afraid no one will set WITH_SYSTEM_BOOST :)

Quoted 9 lines

Fedora 26 or 27 will probably have Boost 1.6.2+
(https://bugzilla.redhat.com/1374088)

- Ken
--
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

--
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-707-0660
fax.  734-769-8938
cel.  734-216-5309
#8 lore raw

Sorry. The outcome of upstream discussion was to prefer to use the bundled Boost unless overridden. It might make sense to override when we know a platform has a Boost version >= the expected, and the complement of that case I thought likely not to happen.

Matt

----- Original Message -----

Quoted 58 lines

From: "Ken Dreyer" <[email protected]>
To: "Matt Benjamin" <[email protected]>
Cc: "Sage Weil" <[email protected]>, "ceph-devel" <[email protected]>
Sent: Wednesday, October 5, 2016 1:23:20 PM
Subject: Re: boost submodule update

Hi Matt,

I'm not following? You're doubtful that what will arise?

- Ken

Quoted 44 lines · Matt Benjamin

Hi Ken,

I'm doubtful that case will arise in practice?

Matt

----- Original Message -----

Quoted 16 lines

From: "Ken Dreyer" <[email protected]>
To: "Sage Weil" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Sent: Thursday, September 29, 2016 6:42:48 PM
Subject: Re: boost submodule update

Quoted 5 lines · Sage Weil

* There is still the option to use a system boost via a cmake option. I
doubt anyone will opt for this in practice given the distros tend to lag,
but they can if they want.

Can we have it automatically enable the system boost if it's > 1.6.1? Otherwise I'm afraid no one will set WITH_SYSTEM_BOOST :)

Quoted 9 lines

Fedora 26 or 27 will probably have Boost 1.6.2+
(https://bugzilla.redhat.com/1374088)

- Ken
--
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

--
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-707-0660
fax.  734-769-8938
cel.  734-216-5309
Signature · 10 lines
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-707-0660
fax.  734-769-8938
cel.  734-216-5309