Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 593922 - sys-block/thin-provisioning-tools-0.6.1 build failure with gcc-6.2
Summary: sys-block/thin-provisioning-tools-0.6.1 build failure with gcc-6.2
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Robin Johnson
: 597422 (view as bug list)
Depends on:
Reported: 2016-09-16 06:39 UTC by vltg0903
Modified: 2017-01-30 00:11 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---

gcc-6.2 build patch (thin-provisioning-0.6.1_gcc-6.2.0.patch,1.18 KB, patch)
2016-09-16 06:40 UTC, vltg0903
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vltg0903 2016-09-16 06:39:36 UTC
The build breaks off with an error complaining that a boost::optional value can't be implicitly converted to a bool, for which boost::optional presumably has an operator defined. Applying the appended patch fixes this problem by calling the method 'is_initialized()' rather than using the implicit conversion.

Reproducible: Always
Comment 1 vltg0903 2016-09-16 06:40:56 UTC
Created attachment 445878 [details, diff]
gcc-6.2 build patch
Comment 2 vltg0903 2016-09-16 06:49:59 UTC
Boost version is 1.56.0-r1
Comment 3 Toralf Förster gentoo-dev 2016-10-26 07:00:48 UTC
*** Bug 597422 has been marked as a duplicate of this bug. ***
Comment 4 Jonathan Scruggs (RETIRED) gentoo-dev 2016-10-28 21:25:54 UTC
(In reply to Andreas Eckstein from comment #1)
> Created attachment 445878 [details, diff] [details, diff]
> gcc-6.2 build patch

This patch didn't work for me. I'm using boost 1.62 and gcc 6.20
Comment 5 Jonathan Scruggs (RETIRED) gentoo-dev 2016-10-28 22:08:17 UTC
(In reply to Andreas Eckstein from comment #1)
> Created attachment 445878 [details, diff] [details, diff]
> gcc-6.2 build patch

It turns out that your patch wasn't liked very much by euser_patch, so I had to remake it. I also added some things to it and will be uploading that to the new version bug request. The new patch takes care of a lot. :)

Thanks for pointing me in the right direction.
Comment 6 Oleh 2017-01-29 18:39:24 UTC
upstream 0.6.3 seems fine with gcc-6.2, so, probably it just a matter of version bump.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-01-30 00:11:12 UTC
0.6.3 is already in the tree.